We help IT Professionals succeed at work.

what is nullpointerexception in java

Shridhar Katkati
on
86 Views
Last Modified: 2017-04-01
what is null pointer exception in Java
Comment
Watch Question

Information Technology Specialist
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT

Commented:
Course, if you do this :

Object x = null ;
System.out.println(x instanceof Object) ;

Open in new window


you wouldn't get a NPE. Perish the thought.
CERTIFIED EXPERT

Commented:
Asked and answered.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.