Java puzzle 2: Extra long Unicode literals

Another simple Java puzzle. Does the following code compile? If so, what does it do when you run it?


public class Unicode {
	public static void main(String[] args) {
		System.out.println("\uuuuuuuuuuuuuuuu0055");
	}
}

Answer:
Show ▼

Leave a Reply

Your email address will not be published. Required fields are marked *