How do you create a null object?



How do you create a null object?..

Answer / Srish Kumar

In Java, you cannot create a null object explicitly. However, you can assign a variable or an instance to null.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Is java code slower than native code?

1 Answers  


Is zero a positive integer?

1 Answers  


Is it compulsory to have atleast one abstract method in abstract class?

10 Answers  


Can inner class final?

1 Answers  


How can you add and remove nodes in jtree?

1 Answers  


What is application tier?

1 Answers  


What is variable and its types?

1 Answers  


Can we define package statement after import statement in java?

1 Answers  


Explain notifyall() method of object class ?

1 Answers  


how to call a method in different package?

4 Answers  


Can an abstract class have a constructor?

1 Answers   RBS, Wipro,


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

1 Answers  


Categories