COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What will be the output of the following Java code?int a[] = new int [5];System.out.print(a);
A
0 0 0 0 0
B
0
C
value stored in a[0]
D
Class name@ hashcode in hexadecimal form
Explanation: 

Detailed explanation-1: -Explanation: An array can be of any data type, primitive or Object type.

Detailed explanation-2: -Which one of the following will declare an array and initialize it with five numbers? Explanation: Option B is the legal way to declare and initialize an array with five elements.

There is 1 question to complete.