Hello Goutham Harsha,
Welcome to CodeRanch!
Goutham Harsha wrote:1) What is the difference between OCJP and OCPJP ?
Technically, there is no such exam as 'OCJP' (at least not by Oracle - I don't know if some other exam by some other vendor could be abbreviated to OCJP). The actual abbreviation is OCPJP.
Goutham Harsha wrote:2) I've got a job offer for the role of a Rails developer. If I want to shift fields to Java a year or two down the line, will OCPJP be useful ?
Frankly, why are you looking for a Rails job - if you are interested in Java? Yes, the certification does help (I myself have switched technologies and SCJP proved to be quite useful then), but remember that it is not very smooth transition. Always keep in mind that theoretically, for a Java project (or Java opening), a candidate having 2 years of experience in Java is more preferred than candidate having 2 years of experience in Rails (even if you get very good amount of Java knowledge, firstly you have to clear cut-off criteria to appear of the interview). I'm not saying it is impossible (again, I've done it
), but it is not easy, and if possible, I would highly recommend to look for a Java job right away. The more time you spend in one technology, more difficult it becomes to switch technologies. Your OCPJP preparation would come quite handy for technical interviews in Java.
Goutham Harsha wrote:3) I won't say I'm very good at Java, but I'm conversant with most of the concepts. I have read the book "Head First Java" by Sierra and Bates (lovely book !), and I've developed a couple of small scale applications like a Library Manager and a Budget Manager.
If I start preparing right now for the certification exam, how much time will it take for the preparation (approximately, I can put in 4 hours per day).
As gurpeet singh said, I guess 6-8 weeks should be fine.
Goutham Harsha wrote:4) Also the book I'd be using for OCPJP preparation is: SCJP for Java 6 Study Guide from Sierra and Bates. Is there any other book you'd suggest ?
Sierra & Bates' book is a descent one. It contains everything required for OCPJP, and most importantly, it is very exam oriented. I would suggest to focus only on one book (unless you have to refer some extra material) - try to avoid studying same text from more than two sources(this holds true only for certification preparation
)
I hope this helps.
All the best!