Home » Java Programming » Declarations and Access Control

What will be the output of the program? public class ArrayTest { public static void main(String[ ] args) { float f1[ ], f2[ ]; f1 = new float[10]; f2 = f1; System.out.println("f2[0] = " + f2[0]); } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!