They're not always listed after you wrote the question - I think this might be a bug in the quiz module for drupal, but they're definitely evaluated.
To give you an example of one of the traps:
Code:
What does this output?
long num = 6l;
System.out.println(num);
The right hand digit is in fact not a 1, but an L. (It's less obvious using some fonts than others.) Judging by the date / time of the reports I've got and the date / time of your posts, it looks like Joga put 61, mistakenly thinking the lower case L was a 1 (that's the most common trap!) and j03 put error, picking up that it was an L but assuming the compiler would complain (second most common trap.)
In fact, putting an L after a number in Java denotes that this number is of type long, not of type integer. If you type:
long num = 2147483649;
...then you'll get an error, because Java evaluates the thing on the right as an int rather than a long, and complains it's too big. You'd need:
long num = 2147483649L;
...before it'd work. Of course in practice you should always use an upper case L for clarity if you need to specify long numbers, but the compiler will still let through a lower case l with the same functionality.
Again, with the:
int num = 0123;
question, it seems you both put 0123 or 123 - but actually, when you start an integer with 0 this tells Java you're writing it in octal, not in decimal... ;-)
See where this quiz is going now?