adplus-dvertising
frame-decoration

Question

What will this code print?
int arr[] = new int [5];
System.out.print(arr);

a.

0

b.

value stored in arr[0].

c.

00000

d.

Garbage value

Posted under Java Programming

Answer: (d).Garbage value

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will this code print?