1.

What is the output of the following code? class Compscibits { 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) { Compscibits c=new Compscibits(); c.m1(20,20); } }

A. Int float method
B. Float int method
C. Compile time error
D. Run time error
Answer» D. Run time error


Discussion

No Comment Found