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. Correct statement about local variable?

 
 
 
 

2. What is variable?

 
 
 
 

3. How to access static variable ?

 
 
 
 

4. How to access local variable ?

 
 
 
 

5. How to access static variable from non static area ?

 
 
 
 

6. How to access static variable from static area ?

 
 
 
 

7. How to access non static variable from static area?

 
 
 
 

8. How to access non static variable from non static area?

 
 
 
 

9. What is the default value of float variable?

 
 
 
 

10. What is the default value of Reference(pointer) type variable?

 
 
 
 

Question 1 of 10

Share this