Q. What will be the output?

Code:
int[] arr = new int[3];
System.out.println(arr[0]);
  • (A) 0
  • (B) null
  • (C) undefined
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) 0
Explanation: Default value of int array elements is 0.
Explanation by: Roshan
Default value of int array elements is 0.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
17
Total Visits
πŸ“½οΈ
4 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
89%
Success Rate