Computer Science, asked by chrislinrose311, 5 months ago

write a java program to show the usage of instance and local variable

Answers

Answered by Shahyashvi535
0

Instance variable in Java is used by Objects to store their states. Variables that are defined without the STATIC keyword and are Outside any method declaration are Object-specific and are known as instance variables. They are called so because their values are instance specific and are not shared among instances.

Hey Mate!!!! I hope this was helpful if yes please mark me brainliest.

Similar questions