What is a Null object?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes is a string in java?

711


Can a serialized object be transferred via network?

697


Can we override the private methods?

722


When is finally block not called?

812


What is the size of string?

757


What is communist flag?

767


What is boolean example?

729


How are this() and super() used with constructors in java programming?

754


what are Hostile Applets?

1794


Is java map thread safe?

699


what is optional in java 8?

808


Can we use this () and super () in a method?

720


What are static variables and functions?

821


What is the benefit of inner / nested classes ?

718


What is binary search in java?

782