MCQs>IT & Programming>Java>Output of the following code? class San { public void m1 (int i,float f) { System.out.println(' int float method'); } public void m1(float f,int i); { System.out.println('float int method'); } public static void main(String[]args) { San s=new San(); s.m1(20,20); } }
Java MCQs
What is the output of the following code?
class San { public void m1 (int i,float f) { System.out.println(" int float method"); }
public void m1(float f,int i); { System.out.println("float int method"); }
public static void main(String[]args) { San s=new San(); s.m1(20,20); } }
Answer
Correct Answer: compile time error
Explanation:
Note: This Question is unanswered, help us to find answer for this one