+ 3

Does java supports comments before a code?

1st Dec 2015, 9:54 PM
Vempalli Gowtham theja
14 ответов
+ 6
Yes, Java supports comments before a code. Java supports both single and multi line comments as well.
5th Jan 2016, 12:20 PM
Preeti Yadav
Preeti Yadav - avatar
+ 4
Yes it does, //single line comment /* Multiple line comment */
22nd Apr 2016, 3:05 PM
Zahid Ali
Zahid Ali - avatar
+ 1
absolutely yes.
20th Jan 2016, 3:12 PM
Tuan Zaidi
Tuan Zaidi - avatar
+ 1
Java support lines comments after and before codes!
21st Feb 2016, 5:44 AM
José Alvaro Ruiz Marroquin
José Alvaro Ruiz Marroquin - avatar
+ 1
yes.. you can di it.
5th Jul 2016, 7:22 AM
Raja Parsaulian B
Raja Parsaulian B - avatar
+ 1
yeah
17th Jul 2016, 8:05 AM
AMITKUMAR PRAJAPATI
AMITKUMAR PRAJAPATI - avatar
+ 1
yes
17th Jul 2016, 9:05 AM
Tuan Zaidi
Tuan Zaidi - avatar
+ 1
yes
19th Jul 2016, 12:41 PM
sameer yadav
sameer yadav - avatar
+ 1
yes
18th Aug 2016, 5:28 PM
Ashish Yadav
Ashish Yadav - avatar
+ 1
Sure,you can add comments in your code anywhere.
30th Aug 2016, 11:28 PM
th0o0
+ 1
Yes indeed use // for single line comments ( before the line to be commented ) /* ......*/ for multiline ( insert desired line in b/w ) && /** ...…...**/ for documentational
4th Sep 2016, 3:18 AM
Harsh
+ 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
17th Nov 2016, 4:54 PM
Prarabdh Garg
Prarabdh Garg - avatar
+ 1
Yes, Java do supports comments before a code you can use single line comment and multi line comment
28th Jul 2017, 6:51 AM
Chennuri Gourish
Chennuri Gourish - avatar
0
yeah
17th Jul 2016, 8:05 AM
AMITKUMAR PRAJAPATI
AMITKUMAR PRAJAPATI - avatar