In java 6, classes used to be load under perm gen space and once they are loaded they will not be removed(or Garbage collected) from permgen space either they are still in use or not at the time of GC. Right ?
But in java 8, permgen area is completely removed and classes deifinition are loaded in heap. My question is will class definition will reside in heap forever(till jvm is killed) whether they are in use or not like in java 6 or it will be garbage collected like any other object ?