+ 3
Does java supports comments before a code?
14 ответов
+ 6
Yes, Java supports comments before a code. Java supports both single and multi line comments as well.
+ 4
Yes it does,
//single line comment
/* Multiple
line
comment */
+ 1
absolutely yes.
+ 1
Java support lines comments after and before codes!
+ 1
yes.. you can di it.
+ 1
yeah
+ 1
yes
+ 1
yes
+ 1
yes
+ 1
Sure,you can add comments in your code anywhere.
+ 1
Yes indeed
use // for single line comments ( before the line to be commented )
/* ......*/ for multiline ( insert desired line in b/w )
&& /** ...…...**/ for documentational
+ 1
Comments are just like hidden statements for the compiler. It just ignores them, and so there are no specific rules or restrictions while writing comments. The only thing is that the must begin with a proper symbols, like // for single line comments
+ 1
Yes, Java do supports comments before a code
you can use single line comment and multi line comment
0
yeah