Minor GC vs Major GC vs Full GC
The Garbage Collection events cleaning out different parts inside heap memory are often called Minor, Major, and Full GC events. In this section, we cover the differences between these events.…
The Garbage Collection events cleaning out different parts inside heap memory are often called Minor, Major, and Full GC events. In this section, we cover the differences between these events.…
Now that you understand why the heap is separted into different generations, it is time to look at how exactly these spaces interact. The pictures that follow walks through the…
Automatic garbage collection is the process of looking at heap memory, identifying which objects are in use and which are not, and deleting the unused objects. An in use object,…
A class that is declared using “abstract” keyword is known as abstract class. It can have abstract methods(methods without body) as well as concrete methods (regular methods with body). A…
What is an interface in Java? Interface looks like a class but it is not a class. An interface can have methods and variables just like the class but the…
The keyword super refers to the superclass and can be used to invoke the superclass’s methods and constructors. A subclass inherits accessible data fields and methods from its superclass. Does…
Overloading means to define multiple methods with the same name but different signatures. Overriding means to provide a new implementation for a method in the subclass. Let us use an…
Object Oriented Programming features These four features are the main OOPs Concepts that you must learn to understand the Object Oriented Programming in Java Abstraction Abstraction is a process where…
Java Object Reference Variable In this chapter you will learn: Assigning Object Reference Variables Example - Java Object Reference Variable Description Object reference variables act differently when an assignment takes…
Immutable Objects and Classes You can define immutable classes to create immutable objects. The contents of immutable objects cannot be changed. Normally, you create an object and allow its contents…