Q.1

import java.awt.Button;
class CompareReference 
{
    public static void main(String [] args) 
    {
        float f = 42.0f;
        float [] f1 = new float[2];
        float [] f2 = new float[2];
        float [] f3 = f        long x =        f1[= 42.0f;
    }
}
which three statements are true?
  1. f1 == f2
  2. f1 == f3
  3. f2 == f1[1]
  4. x == f1[0]
  5. f == f1[0]
  • 1, 2 and 3
  • 2, 4 and 5
  • 3, 4 and 5
  • 1, 4 and 5
0 h : 0 m : 1 s