What is a Null object?



What is a Null object?..

Answer / subham chaudhary

It is an object of some class whose purpose is to indicate that a real object of that class does not exist. One common use for a null object is a return value from a member function that is supposed to return an object with some specified properties but cannot find such an object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is serializable interface?

13 Answers   Infosys, Probity Soft, Seed Infotech,


how many ways we can serialize the java object?

2 Answers   Satyam,


what is features of jdk 1.5?

2 Answers   Accenture, Satyam, TCS,


Can we initialize the final blank variable?

0 Answers  


Why do we need hashset in java?

0 Answers  






What is the argument in java?

0 Answers  


Why main function is static?

0 Answers   MCN Solutions,


What is a double?

0 Answers  


How to change value in arraylist java?

0 Answers  


What is the main purpose of serialization in java?

0 Answers  


Iterator in the HashMap is fail-safe means what?

9 Answers   CTS, IBM, Subex,


What is nullpointerexception?

0 Answers  


Categories