Given: What is the result?
A.
String main 1
B.
Compilation fails
C.
Object main 1
D.
int main 1
E.
An exception is thrown at runtime
Given: What is the result?
A.
String main 1
B.
Compilation fails
C.
Object main 1
D.
int main 1
E.
An exception is thrown at runtime
Correct Answer A.
A.
String main 1
??
a tested
A
the overloading of main method is possible
which can be call by MainTest.main();
Main method has been overloaded but, hasn’t been called from public static void main(String [] agrs)
{
}
Hence correct answer is A i.e: String main 1