Q. What is the output of the below Java program with a void method?
Code:
public class TestingMethods3
{
void show2()
{
System.out.println("SHOW Method 2");
}
public static void main(String[] args)
{
TestingMethods3 t3 = new TestingMethods3();
t3.show2();
}
}
β
Correct Answer: (A)
SHOW Method 2