• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we explicitly unload any Class?  RSS feed

 
Rohan Kayan
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was bit curious that , can we unload any Java class explicitly from Memory ?



Thanks in advance.
 
Devaka Cooray
Marshal
Posts: 5649
765
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to use Java Reflection for that purpose. This is not related to SCJP.
Moving to JiG
 
Rob Spoor
Sheriff
Posts: 21133
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only by unloading its class loader, and that's going to be hard (if possible at all) with the system class loader.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!