This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
3 4 5 6 The program does not compile because of the statement if(i=2)
i answered 4,but the correct ans is the last option.
i have come across eg, where there is a variable assignment in the if loop. one of the major questions which r a little tricky. in this eg, also, the variable is assigned 2 which now returns true and hence i answered 4.
anybody plz explain?
SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.