Nullpointer exception is a very common exception. Why is it
not made as a checked exception?
Answer Posted / ravi jain
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 |
Post New Answer View All Answers
what is the difference between yielding and sleeping? : Java thread
How to create packages in java?
Can we define private and protected modifiers for variables in interfaces?
Is java based on c?
What is array pointers ?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
In which language java is written?
What is broken and continue statement?
Which software is used for java programming?
Wha is the output from system.out.println(“hello”+null); ?
What is function and method in java?
Tell me how many ways are there to initialise an integer with a constant.
What is collection api?
What is difference between string and stringbuffer?
What is the static method?