This is for all who are still prepareing for
SCJP :
We all know that integer literals that include comma won't compile in
java, but look at the following code.
class
Test {
public static void main(
String[] args) {
int f = 0x20,df;
System.out.println(f);
}
}
It WILL compile.
You know why?? Because, first the literal is a hexadecimal one, which is valid. Second d and f are also valid in hexadecimal. BUT, and this is the tricky one, here df is another variable and not a constant (which can go along with 0x20 as 0x20df). Got it. I guess so.