File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes code samples to practice on Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "code samples to practice on" Watch "code samples to practice on" New topic

code samples to practice on

hema malneedi

Joined: Feb 17, 2007
Posts: 7
i am a beginner in Java and dont have any work experience. i want to give the SCJP exam to enhance my resume. i have gone thru the k&b book atleast 5 times now and am confident about the theory aspects of the book, but i feel i need to practice coding in java in order to gain confidence for the exam. at the moment i am not doing very well in the mock exams. where can i find simple programming exercises that i can code and practice on? are there any such websites available? i found two in my search:,
any suggestions or advice??? please help!
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1710
Hi Hema,

I am too going for SCJP 5.0, next month first week. I refer "Ivor Horton Begining Java" too except K&B.

One should write small program considering what he wants to check, wants to know and expect to see. Going deep inside into code is a must to do thing as I think for SCJP. Most of the time as I feel, we should have clear vision of the code, what is happening there, what is missing there, what could make code running well. It should be jet clear for us, no doubt at all.


Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 355

Hey Hema!
Did you try the KB code? If not do that first! It will surely help you.
Sometimes, you will see the code without main() and I guess, you can do it yourself.
PS: Now that you've already read KB for 5 times, I don't suggest you to go for another book. Just stick to KB. Put your brain in trying the code present in that book. You'll learn a lot! I'm sure, if you go and buy another book, you'll waste lot of time.
hema malneedi

Joined: Feb 17, 2007
Posts: 7
thank you Chandra and Faisal. i am trying the code in KB, but feel the need for more practice as i am new to Java. but hope to get there in the end!
I agree. Here's the link:
subject: code samples to practice on
It's not a secret anymore!