+ 2
Why is the print command executed although it is a comment?
public class Comment { public static void main() { // \u000d System.out.println("comment executed"); } }
3 Antworten
+ 4
Because \u000d is a unicode escape that is a carriage return, it is processed before compilation so it's Like there are 2 rows, one with just // and below the println, as it is not commented, it's executed
+ 3
try to remove
\u000d
- 1
What is //\u000d mean?