Category: Classloading

How to analyze permgen space 0

How to analyze permgen space

Almost every JVM nowadays uses separate region of memory, called Permanent Generation (or PermGen for short), to hold internal representations of java classes. The root cause of java.lang.OutOfMemoryError: PermGen space is exactly the same:...

What is Difference between  NoClassDefFoundError and ClassNotFoundException 0

What is Difference between NoClassDefFoundError and ClassNotFoundException

Both ClassNotFoundException and NoClassDefFoundError errors occur when a particular class file is not found at runtime. However both occur at different scenarios. ClassNotFoundException error occur when you try to load a class at runtime...

What is difference between Minor, Major and Full Garbage collection? 0

What is difference between Minor, Major and Full Garbage collection?

As we know life of objects move from young generation to survivor 1 space to survivor 2 space to old generation. GC takes place multiple times. So here are 3 types of GC :...

What is the reason for having 3 Class loaders in Java 0

What is the reason for having 3 Class loaders in Java

Current classloader structure Java has 3 class loaders: • BootStrap, • Extension and • Application Each of them have only one role;to load classes from different locations. Bootstrap loads java’s core classes like the...