MCQOPTIONS
Saved Bookmarks
| 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 = f1; long x = 42; f1[0] = 42.0f; } } which three statements are true? f1 == f2 f1 == f3 f2 == f1[1] x == f1[0] f == f1[0] |
| A. | 1, 2 and 3 |
| B. | 2, 4 and 5 |
| C. | 3, 4 and 5 |
| D. | 1, 4 and 5 |
| Answer» C. 3, 4 and 5 | |