Execute COMMENTS in #Java | Unicode



Execute COMMENTS in #Java | Unicode

Execute COMMENTS in #Java | Unicode

Executing Comments: Many developers think comments are never executed in a program and are only used for understanding code easier. But, in fact, they are executed. #shorts

Comments are executed because of the Unicode character “u000d”. Java compiler parses this Unicode character as a new line because Java allows using Unicode characters without encoding.

Java Program Example:
public class Main {
public static void main(String[] args)
{

// u000d System.out.println(“Subscribe!”);

}
}

Timestamps:
0:00 – Intro
0:17 – Explanation

Please SUBSCRIBE, LIKE, & SHARE for more videos and to stay updated with the latest essential videos: https://www.youtube.com/c/CloudDataScience?sub_confirmation=1

Comments are closed.