Core Java Interview questions


Total available count: 646
Subject - Java Technologies
Subsubject - Core Java

What is instance variable in java?

Instance variables are used by objects to store their states.Variables which are defined without the STATIC keyword and are outside any method declaration are object specific and are known as Instance Variables.Such variables are called instance variables because their values are instance specific and values of these variables are not shared among instances.




Next 5 interview question(s)

1

How many type of variables available in java,mention them?

2

What is the difference between protected and default(no specifier) access modifier?

3

What is visibility of default(no specifier) access modifier?

4

What is visibility of protected access modifier?

5

What is the visibility of public access modifier?