What is the default value of an object reference declared as an instance variable?



What is the default value of an object reference declared as an instance variable?..

Answer / Siddh Nath

The default value of an object reference is null. If no explicit constructor is called, an object will not be created and the reference will remain null.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the use of optional ?

1 Answers  


What happens when a thrown exception is not handled?

1 Answers   Wipro,


What is the difference between access specifiers and access modifiers in java? 16

1 Answers  


What is the basically use of finally while we know it is always executed but why?

5 Answers   Oracle, TCS,


What is java jit compilers?

1 Answers  


Is java same as core java?

1 Answers  


How to read and write image from a file ?

1 Answers  


What is difference between path and classpath?

1 Answers  


What is System class and its purpose?

2 Answers  


Why string objects are immutable in java?

1 Answers  


Does unicode support all languages?

1 Answers  


What is a class variable?

1 Answers  


Categories