Q. Single line comment starts with _________ in Java.

  • (A) /**
  • (B) //
  • (C) /*
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) //
Explanation: Single-line comments start with two forward slashes ( // ). Any text between // and the end of the line is ignored by Java
Explanation by: Yatendra Sir
Single-line comments start with two forward slashes ( // ). Any text between // and the end of the line is ignored by Java

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
303
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Yatendra Sir
Publisher
πŸ“ˆ
98%
Success Rate