Java allows URL’s directly in code. What other surprising or interesting features do you know in the Java language or a library?
6
12
98
24K
24
Download Image
@RedHatJava Bit late for April fools jokes isn't it? 😂 This is nothing more than a label ("https") followed by a comment ("//developers.redhat.com/java")
@RedHatJava Yes. Java supports labeled statements. You can put a label before a for statement and use the break/continue controls to jump to that label. ☝️
@RedHatJava Similar to SQLJ? Embedded SQL in Java? Actually pity that this standard didn’t go any further 😟 en.wikipedia.org/wiki/SQLJ
@RedHatJava While(true) would be nicer to read :)
@RedHatJava Amazing..but what if we have multiple urls?