Q. What is the output of the below Java program with an empty return statement?
Code:
public class TestingMethods2
{
void show()
{
System.out.println("SHOW Method..");
return;
}
public static void main(String[] args)
{
TestingMethods2 t2 = new TestingMethods2();
t2.show();
}
}
β
Correct Answer: (A)
SHOW Method..