Untitled
package package1; public class Static_Method_Test { private static void student1 () { System.out.println("Static 1"); } protected static void student2 () { System.out.println("Static 2"); } public static void student3 () { System.out.println("Static 3"); } public static void main(String[] args) { student1(); student2(); student3(); } }
Leave a Comment