+ 1

Single line comments are created using // characters at the beginning of line or // characters at the end of line ??

a question has confused me please help

1st Aug 2019, 2:56 PM
Khushi Puri
Khushi Puri - avatar
5 ответов
+ 3
Single line comment only work if you have // at the start of the line. ex. public class Program { public static void main(String[] args) { //works doesnt work// } }
1st Aug 2019, 3:08 PM
Ole113
Ole113 - avatar
+ 2
using // characters at the beginning of a line, like this: // This is a Java comment... https://www.sololearn.com/learn/Java/2138/
1st Aug 2019, 3:09 PM
voja
voja - avatar
+ 2
Thanks for clearing my doubt😊
1st Aug 2019, 3:14 PM
Khushi Puri
Khushi Puri - avatar
+ 1
// character at the beginning of the comment line make sence . It doesn't make sence at the end of comment
9th Aug 2019, 6:18 AM
Sourabh kourav
- 1
Thxs
8th Aug 2019, 6:55 PM
Eunice Lozaique