The following blocks will help to understand the reference variable and de-referencing using java. We have created Ball class with constructor and then created object with this class to understand the reference variables. class Ball {private String color;public Ball(String color) {this.color = color;}} public class Main { public static void main(String[] args)Ball blueBall = new…