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 mnemonic in assembly language?

0 Answers  


What is the use of anonymous inner classes ?

12 Answers   DELL, HCL,


Why is serialization required?

0 Answers  


what is diff bet iterator and enumeration?

4 Answers  


What data structures are used to perform recursion?

0 Answers   Akamai Technologies,






What are triggers in DB? Explain their types. How do they work?

0 Answers   Amdocs,


Can I extend singleton class in java?

0 Answers  


Is string a datatype?

0 Answers  


What is the role of the java.rmi.naming class?

0 Answers  


Do you need to import math in java?

0 Answers  


What is a java list?

0 Answers  


What is null mean in java?

0 Answers  


Categories