Q. What is the output of the below Java program?
Code:class Road
{
static void show()
{
System.out.println("Inside static method.");
}
}
public class TestingMethods10
{
public static void main(String[] args)
{
Road.show();
}
}
β
Correct Answer: (A)
Inside static method.