Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conversions

 
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;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic