Question Solved: JAVA!!!! What will be the output of the program?

$30.00

Category:

Description

Question Solved: JAVA!!!! What will be the output of the program?

JAVA!!!! What will be the output of the program?

class A { static void staticMethod() { System.out.println(“Class A”); } } class B extends A { static void staticMethod() { System.out.println(“Class B”); } } public class MainClass { public static void main(String[] args) { B.staticMethod(); } }


error: Content is protected !!