πŸ“Š JAVA
Q. Output of following Java program
Code:
class Main {
 public static void main(String args[]){
   final int i;
   i = 20;
   System.out.println(i);
 }
}
  • (A) 0
  • (B) 20
  • (C) Compiler Error
  • (D) Garbage value
πŸ’¬ Discuss
βœ… Correct Answer: (B) 20

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
319
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
80%
Success Rate