Variables in Java – Objective

This “Core Java Practice Test on Variables in Java” providing set of objective type questions on java Variables to test your theoretical skills and technical skills.


1. What is non static variable?

 
 
 
 
 

2. What is the memory location of static variable?

 
 
 
 

3. Non static variable memory location?

 
 
 
 

4. Can we define static variable and non static variable with the same name ?

 
 
 
 

5. How to initialize non static variable ?

 
 
 
 

6. Arguments of Method or Constructor working like ?

 
 
 
 

7. Local variable memory location?

 
 
 
 

8. What type of information, a non static variable holds?

 
 
 
 

9. What type of data, a static variable holds?

 
 
 
 

10. Can we define static variable inside block or method?

 
 
 
 

Question 1 of 10

Share this