Kizspy | Question: 29
(Choose 1 answer)
What is the output following the code snippet?
public class Main {
void m1(String x) {
System.out.print("One ");
} protected void m1(String x, String y) { System.out.println("Two");}
public static void main(String[] args) {
Main obj = new Main();
obj.m1("ABC");obj.m1("PQR", "XYZ");
}
FUOVER
}
A. One Two
B. Two One
C. Two Two
D. One One