retagged by
1,048 views

1 Answer

0 votes
0 votes

No , null is not an object.It is a reference type and its value does not refer to any object and so there is no representation of null in memory

Almost all the programming languages are bonded with null. There is hardly a programmer, who is not troubled by null.
In Java, null is associated java.lang.NullPointerException. As it is a class in java.lang package, it is called when we try to perform some operations with or without null and sometimes we don’t even know where it has happened.

 

 Null is literal in Java and because keywords are case-sensitive in java, we can’t write NULL or 0 as in C language.

Unlike common misconception, null is not Object or neither a type. It’s just a special value, which can be assigned to any reference type and you can type cast null to any type

References:-https://www.geeksforgeeks.org/interesting-facts-about-null-in-java/

 

Answer:

Related questions

1.5k
views
1 answers
0 votes
admin asked Apr 1, 2020
1,483 views
If the objects focus on the problem domain, then we are concerned withObject Oriented AnalysisObject Oriented DesignObject Oriented Analysis and DesignNone of the above
4.0k
views
1 answers
0 votes
admin asked Apr 1, 2020
3,965 views
Which of these events will be generated if we close an applet’s window?ActionEventComponentEventAdjustmentEventWindowEvent
899
views
1 answers
0 votes
admin asked Apr 1, 2020
899 views
Which of the following object types are generally autonomous, meaning that they can exhibit some behavior without being operated upon by another object.PassiveActiveBoth (A) and (B)None of the mentioned
9.6k
views
1 answers
0 votes
admin asked Apr 1, 2020
9,550 views
What is ‘Basis of Encapsulation’?objectclassmethodall of the mentioned