MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the program? public class Test { private static float[] f = new float[2]; public static void main (String[] args) { System.out.println("f[0] = " + f[0]); } } |
| A. | f[0] = 0 |
| B. | f[0] = 0.0 |
| C. | Compile Error |
| D. | Runtime Exception |
| Answer» C. Compile Error | |