Nullpointer exception is a very common exception. Why is it
not made as a checked exception?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are loops in java? What are three types of loops?

551


What is r in java?

595


What is an inner class in java?

525


How many digits is int32?

538


How do weakhashmap works?

593






How to handle a web browser resize operation?

545


What is :: operator in java?

511


What are the advantages of autoboxing?

539


What are the methods of object class ?

563


Explain what access modifiers can be used for variables?

593


What is the difference between hashset and treeset in java?

542


Can we change the value of static variable?

502


What are use cases?

561


How does a for loop work?

508


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

612