What is instance variable in Java?

Ads
 

What is instance variable in Java?

Hi,

What is instance variable in Java?

What is the use of instance variable?

Thanks

View Answers

April 16, 2017 at 10:48 PM

Hi,

In Java programming classes are used as base of Object oriented programming. Any variable which is defined in a class is know as instance variable. This is also know as a member variable.

If you create 10 instance of the class then each instance will have their own separate copy of data.

Check example at Example of a instance variable.

Thanks

Ads









Related Tutorials/Questions & Answers:
What is instance variable in Java?
difference between java5 and java6 - Java Beginners
Advertisements
what is instance
what is instance
what is instance
what is instance
what is instance
add a property to instance variable
Java2
Javah
Instance variable in java
What are instance variables?
instance
What is the importance of static variable?
What is use of a abstract variable?
What is use of a abstract variable?
about java1
What is a transient variable?
Javah -  Header File Generator
What is a local, member and a class variable?
What is the purpose of declaring a variable as final?
About Java2
Example of a instance variable
what is jvm instance, how is it created, how is related to thread?
please tell me the difference between local variable, staitic variables, and instance variables....
javaa swings - IDE Questions
Javap Tool application
INSTANCE
Javah - Header File Generator
Javah - Header File Generator
instance varaiable

Ads