Menu
Question Index
...

public class Network {
    public static void main(String[] args)     {
        float f = 42.0f;
        float[] f1 = new float[2];
        float[] f2 = new float[2];
        float[] f3 = f1;
        long x = 42;
        f1[0] = 42.0f;
    }
}
Which of the following statement(s) is/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
1, 3 and 5
4 and 5
4 only
None of the above

Doubts

Problems

Topic: Learn Arrays And Loops

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App