views:

109

answers:

2

Hello everyone:

As I am preparing for, and planning to take the SCJP exam probably in next year, I am wondering if any Java programmer would like to share their "gotcha" question here, something simple but very helpful as a reminder to refresh your Java knowledge and skills.

For example, my favourite one is like this:

System.out.println(-13/4 + "");

I always wish I could open the terminal to test the result with this sort of tricky question :(

+2  A: 

You can open a terminal, while preparing :) Also sharing the actual test questions somewhat defies the purpose of the test. There are plenty of test preparation suites available on the net.

When I took it, they asked quite a bit about how threads work. That is probably updated with Executors these days.

Thorbjørn Ravn Andersen
@Thorbjørn Ravn Andersen: Agreed, there are a lot of resources for preparing the exam, and also a lot "exam killer" packages online that I can purchase. I just find most of them are too complex, I mean, often combine multiple errors within one question. Not a bad thing, though, just hoping something atomic with one error or one good pint like the question I posted :)
Michael Mao
+2  A: 

You can find lot of books/sites/mock tests online for your preparation.

I still many times use JavaRanch. check roundup game. This are questions related to SCJP.

Lot of SCJP related questions are shared here on forum :

http://www.coderanch.com/forums/f-24/java-programmer-SCJP

Also find links for SCJP Mock tests here :

http://faq.javaranch.com/java/ScjpMockTests

I hope these should be helpful.

YoK
@YoK : definitely! I just brought a book last month, cost me 100 AUD, and gosh... haven't finished even the String part :(
Michael Mao
Sounds like you already have a good resource at hand. Why not use that?
Thorbjørn Ravn Andersen
The ScjpMockTests link look quite promising. They got me on the negative argument to thread priority:)
Thorbjørn Ravn Andersen
I didn't get you ? They got me on the negative argument to thread priority
YoK