public class Test { static int a; int b; static int c; public int aMethod() { a++; return a; } public int bMethod() { b++; return b; } public static int cMethod() { c++; return c; } public static void main(String args[]) { Test test1 = new Test(); test1.aMethod(); System.out.println(test1.aMethod()); Test test2 = new Test(); test2.bMethod(); System.out.println(test2.bMethod()); Test test3 = new Test(); test3.cMethod(); System.out.println(test3.cMethod()); } }