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

How do you create an array in java?

522


Write a program to print all permutations of string?

671


What is unicode in java?

496


What do you mean by scope of variable?

477


Explain the difference between throw and throws in java?

540






What is the difference between yielding and sleeping in java programming?

578


how to create multithreaded program? Explain different ways of using thread? : Java thread

523


What is composition in java?

715


How to access arraylist elements in java?

484


How do you decide when to use arraylist and linkedlist?

526


How does callback work in java?

597


what do you understand by the term string with respect to java?

520


Is the milky way in a void?

536


Can you add null to a list java?

575


What is the class in java?

550