|
Q7
|
public class Test7{
Test7(int i, int j){
System.out.println("Int");
}
Test7(short i, short j){
System.out.println("Short");
}
Test7(byte i, byte j){
System.out.println("Byte");
}
public static void main(String args[]){
byte b1 = 1;
byte b2 = 2;
Test7 t1 = new
Test7(b1,b1);
Test7 t2 = new
Test7(b1*1,b1*2);
Test7 t3 = new
Test7(b1*b1,b1*b2);
}
}
what will be the output?
|