7/12


#1

public class Comments {
public static void main(String[] args) {
/* wow
i
can
code*\
// System.out.println("Noise!");

}

}
it wont compile


#2

/* wow
i
can
code*\

you have to use / ( forward slash) for closing comment but you used \( backslash )

see here both are forward slash

/*

Hello, 
Java! 

*/

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.