This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Object destory

 
Kalaiselvan Selvamani
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii everyone,
I really need to destroy an object end of my program. But i dont know how to destroy a java object..
Editor editor = new Editor();
i want to destroy or kill this editor object end of my program.
How it is possible???
Thanx in Advance,
KalaiSelvan
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlike C++, the JVM performs most of your memory management, including garbage collection. There is no need to explicitly free the heap memory taken by your objects.
 
Kalaiselvan Selvamani
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because of my need is,
I have created an entity bean.
Here have did some db process. In this mean time some outside sources updates or deletes some of my table in my DB. But the reflection is not affected in my Entity Bean. That's y i need to know how to destory the entity bean explicitly in my program..
Is there any possibilites. Let me know.
Thanx in Advance
Kalaiselvan
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the reference to null
editor = null;
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic