+ 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
5 Réponses
+ 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//
}
}
+ 2
using // characters at the beginning of a line, like this:
// This is a Java comment...
https://www.sololearn.com/learn/Java/2138/
+ 2
Thanks for clearing my doubt😊
+ 1
// character at the beginning of the comment line make sence . It doesn't make sence at the end of comment
- 1
Thxs