Q. Choose the correct syntax of an Enhanced FOR loop in Java below.

  • (A) for(Type variable: Collection) { //statements }
  • (B) for(Type variable; Collection) { //statements }
  • (C) for(Collection: Type variable) { //statements }
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (A) for(Type variable: Collection) { //statements }

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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