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

What modifiers are allowed for methods in an interface?

747


What is an error in java?

726


How can we make a class singleton?

688


What is the difference between throw and throws in java?

643


How do you use wildcards?

618






What are variable arguments or varargs?

670


What is java used for on a computer?

612


Explain about wait() method?

669


List implementations of list interface?

666


What is java and its types?

644


Explain the pointers in Java?

690


What is singleton math?

680


Why string is immutable with example?

624


How java enabled high performance?

689


What are the problems faced by java programmers who don't use layout managers?

636