In this blog, we will take a look inside JVM object creation and “this” object reference.
public class Rectangle { int width; int height; public…