File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
null instanceof aclass
Joined: Apr 20, 2003
Dec 09, 2003 16:50:00
I know I should remember this but I need to use it now and can you guys confirm to me if
null always evaluate true if we do an
null instanceof ClassWhatever ?
Giselle Dazzi<br />SCJP 1.4
author and iconoclast
Joined: Jul 08, 2003
Dec 09, 2003 17:17:00
It always evaluates to
not to true.
[Jess in Action]
I agree. Here's the link:
subject: null instanceof aclass
Casting a null object...
cast & instanceof
Clean way of checking if object type is primitive or String
instanceof problem...scjp book page no.285
null instanceof an Object ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015