Getting error on commented line
java
Solution
Unicode characters are parsed very early in the Java compilation, anyway `\u000d` isn't a valid character.
// The other style comments work.
/*('\u000d'); */
Edit
\u000d is converted into a newline, which ends your comment...
//('\u000d');
gets converted into
//('
') // <-- bare line with ')
which isn't a valid character constant.
Problem
``` class k{ public static void main(String[] args) { //('\u000d'); } } ``` In class k after main i have commented out line number 3 but still getting error unclosed character literal ,what could be the reason for it?