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

Is there any tag in htm to upload and download files?

0 Answers  


what is the need to set path in java? how many ways to set path in java? Explain breif?

5 Answers  


What do you mean by boolean?

0 Answers  


What is the function of compareto in java?

0 Answers  


What is generic type?

0 Answers  






Is stringwriter thread safe?

0 Answers  


Explain about assignment statement?

0 Answers  


ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ System.out.println("integer"); } public static void JavaHungry(Exception e){ System.out.println("string"); } public static void JavaHungry(ArithmeticException ae){ System.out.println("object"); } public static void main(String[] args) { JavaHungry(null); }

1 Answers  


Why method overriding is used?

0 Answers  


Difference between an argument and a parameter?

10 Answers   Accounting, HCL, IBM, Quinnox,


How is Garbage collection done in Java?

3 Answers   T3 Softwares,


What does a za z0 9 mean?

0 Answers  


Categories