Question:
Can we expect tricky questions on the
SCJP exam?
While taking the mocks i found lots of tricky ones. And i admit i was very disappointed. Trying to found out what a code do, the real problem was a tricky one hidden somewhare in the code....
example 1:
public class A{ /*lots of code*/}
public class B{ /*lots of code*/}
/// two public classes in same source file :-(
--------
example 2:
.....
if(false);
{
......
}
.....
// the code between the brackets will always get evaluated ... :-(. Didnt see the semicolon.
example 3:
private class A{ /*lots of code*/}
// didn't see the "private"
etc.etc.
atanas