OneCompiler

instance.java

171

package com.company;
import java.util.*;

public class Size{
int height=6; //examle of instance variable...

public static void main(String [] args){

/*now making object of that Size class
to execute the INSTANCE VARIABLE */

Size obj=new Size();
System.out.println(obj.height);

}
}