hi
can any one explain this program this is from k & B book form chapter operators self
test class Comp2
{
public static void main(
String[] args)
{
float f 1 = 2.3 f;
float [] [] f2 = {{42.0f} , {1.7f,2.3 f},{2.6f,2.7f}};
float [] f3 ={2.7 f};
Long x = 42 L;
// insert code here
System.out.println("true");
}
}
And the following five code fragments :
F1. if(f1==f2)
F2. if(f1==f2[2][1])
F3. if(x==f2[0][0])
F4. if(f1==f2[1,1])
F5 if(f3==f2[2])
o/p
Threeof them will compile , only one will be true
thanks in advance