πŸ“Š JAVA
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

πŸ‘οΈ
1
Total Visits
πŸ“½οΈ
6 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
85%
Success Rate