I want to know where the ClassLoader instance is saving, in which memory. Is it saving in heap or in permgen? And if I have a custom ClassLoader( for example JasperReports loads his own ClassLoader which calls JRClassLoader ), instance of it is also saving in heap memory or in permgen?
Classloader is not an exception from the rules, so:
ClassLoader
instance is created on heap,ClassLoader
class is like any other class it is created on permgen (till Java 7)