This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conversions  RSS feed

 
Vineela Devi
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is mentioned in java fundamentals that conversion from any class, interface or array type to a null reference is possible.Please explain this statement with an example
 
himanshu patel
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would recommend you to read java certification book,
A Programmer's Guide to Java� Certification,
A Comprehensive Primer BY
Khalid A. Mughal & Rolf W. Rasmussen
All your JAVA doubts/concepts will be cleared once you go through this book.It is really a very helpful book.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is mentioned in java fundamentals that conversion from any class, interface or array type to a null reference is possible.Please explain this statement with an example
I'm not completely sure what the author of that statement means, but I'd guess they're trying to explain that any reference in Java could possible refer to null.
MyObject o = null;
MyInterface i = null;
MyObject[] a = null;
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!