What would happen on trying to compile and run the following code?
public class MainCls
{
public static void main(String argv)
{
System.out.println("My Text");
}
}
Correct Answer: The code will compile. A runtime error will occur because 'main' is not properly defined
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions