A member variable is created when a class instance is created, and it is destroyed when the object is destroyed. public class MainClass { private int fieldVariable; public static void main(String[] argv) { System.out.println(); } }