(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

Views 13

Answer:

This code will print garbage value

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.