File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abt Cast

 
Rohit Kumar
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i cast any object to other class at that time in memory whether one object is created or two?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Yogesh G",

Please check your private messages.
 
Peter Chase
Ranch Hand
Posts: 1970
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Yogesh G:
When i cast any object to other class at that time in memory whether one object is created or two?


You cannot cast an object. You can cast an object reference. Casting does not create any objects at all. Neither does it change any objects at all.

While I'm here, "abt" isn't a word. Please UseRealWords.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic