πŸ“Š JAVA
Q. Find the output of the following code.
Code:
Public class Solution{
         Public static void main(String args[]){
                 Int i;
                 for(i = 1; i < 6; i++){ 
                     if(i > 3) continue;
                 }
                 System.out.println(i);
          }
}
  • (A) 3
  • (B) 4
  • (C) 5
  • (D) 6
πŸ’¬ Discuss
βœ… Correct Answer: (D) 6

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
240
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mahesh Chandra
Publisher
πŸ“ˆ
97%
Success Rate