Hi Friends,
Consider the following code below and execute it.It prints 3.I cant understand how and why plz help me
thank u
************************************
class
Test {
public static void main(
String[] args) {
Test t = new Test();
t.test(1.0, 2L, 3);
}
void test(double a, double b, short c) {
System.out.println("1");
}
void test(float a, byte b, byte c) {
System.out.println("2");
}
void test(double a, double b, double c) {
System.out.println("3");
}
void test(int a, long b, int c) {
System.out.println("4");
}
void test(long a, long b, long c) {
System.out.println("5");
}
void test(float a, long b, int c) {
System.out.println("6");
}
}
***************************************************
It prints Output as 3 plz help me friends in understanding
with regards
prasath