I am prepared for the exam and loginto
http://www.danchisholm.net/july21/mybook/chapter3/exam1.html to do some mock exam.
1. I want to know if I need to learn how to convert to binary for SCJP1.4?
2. This block of code giving the answer of 3,0,3. Please anyone can explain how to get it, I compile and run it gave me the answer
Thnks for your help
class EBH020 {
public static void main (
String[] args) {
int a = 1 | 2 ^ 3 & 5;
int b = ((1 | 2) ^ 3) & 5;
int c = 1 | (2 ^ (3 & 5));
System.out.print(a + "," + b + "," + c);
}}