Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inner class objects on heap?

 
Sriram Chintapalli
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all are all objects instantiated in inner classes and all objects of inner classes placed on the (garbage collectible) heap?
thanks,
sriram
 
Sandeep Achar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sriram,
Objects in Java are always placed on the garbage collectible heap no matter where they are declared.
Regards,
Sandeep
(SCJP 1.4)
 
Sriram Chintapalli
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks sandeep. guess a lot of us are confused by heap and garbage collectible heap.hehe
-sriram
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic