Nullpointer exception is a very common exception. Why is it
not made as a checked exception?
Answers were Sorted based on User's Feedback
when some operation is done with an object which is not
initialized i.e. object is "null" than NullPointerException
occurs.
This exception is in category of unchecked exceptions because
instance are not available at compile time so how complier checks whether object is null or instantiated, so it is
treated as unchecked exception.
| Is This Answer Correct ? | 18 Yes | 0 No |
Answer / ajay kumar sharma
When a null value is passed to a method or a method
receieve null(nothing) value either a run time or vice-
versa, JRE or method will throw a nullpointer exception.
It is java's buit-in exception thrown at relevant time.
| Is This Answer Correct ? | 0 Yes | 8 No |
What is implicit object in java?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
What are thread priorities and importance of thread priorities in java?
write a code, we have two thread, one is printing even no and other print the odd no.
What is the reflection?
What is the role of the java.rmi.naming class?
What one should take care of, while serializing the object?
How do I get a substring?
Give a briefing on the life cycle of a thread.
Which list is sorted in java?
Mention the default values of all the elements of an array defined as an instance variable.
What are bind parameters?