A
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();
}
}
{
static void show()
{
System.out.println("Inside static method.");
}
}
public class TestingMethods10
{
public static void main(String[] args)
{
Road.show();
}
}
- Correct Answer - Option(A)
- Views: 2
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.