Home / Questions / (i) What will this code print ? int arr[]=new int[5]; System.out.println(arr); 0 value stored in arr[0] 0000 garbage value
Explanatory Question

(i) What will this code print ?


int arr[]=new int[5];
System.out.println(arr);
  1. 0
  2. value stored in arr[0]
  3. 0000
  4. garbage value

👁 84 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

This code will print garbage value