I am absolute beginner in Java, I want to study it and pass OCA SE7 exam, Which book should i refer?
How should i start? which topics should i focus on? I am studying Java but I dont know whether it is right way.... please guide me!
You should make choose what version of java OCA you want.
Because you new - i recommend choose Java 8 (most actual for now)
for it there are books to study already
OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808 (also you can check some reported Errata when read it: http://www.selikoff.net/java-oca-8-programmer-i-study-guide/ many study book has mistakes don`t worry)
more you can find here OCA 7/8 study materials read it from begin to end several time, try code from it. (Some people recommend use notepad without syntactics highlighting - this will help to you see minor mistake in code that lead to compilation error, and you will not forget to do import in right place)
next good thing is mock test there are several of it, but i like
JA+ V8 for Oracle Certified Associate - Java SE8 Programmer I because it cheap and good to train
when you use it don`t hurry up:
when you pass one test:
1. Read whole test for explanation (because you can make mistake and answer right - you must understand every concepts of every question)
2. Make conspectus where you was wrong.
3. Reread chapter that for this topic (if need make conspectus)
4. Before trying nest text repeat refresher from book and this conspectus.
on the OcajpWallOfFame you'll find plenty of (links to) experiences from other ranchers (including resources they have used). So it can be useful to determine which resources are useful (and which are not).
Write lots of code! Learning a programming language is like driving a car: you don't learn to drive a car by just reading a book, you need to get your hands dirty and write code, lots of code.
When you use the search function on this forum, you'll find plenty of topics about people asking for advice because they failed mock (and/or actual) exams (e.g. here, here and here). These topics definitely contain very useful information as well about your preparation, exam taking techniques,... so read them carefully.
There are, as has been illustrated, many books, (and my video series too ) I feel that you must decide for yourself what style you like. I doubt very much that any of the published materials on the exam is "wrong", but the presentation style varies, and some will match your learning style better than others. Browse them and see which you feel you like.
Obviously, this site has great resources in it's members. Roel has pointed you at those.
I'd like to second his point about writing code. Definitely write _lots_ of code. But, don't just write simple, obvious stuff, write it deliberately, to test whether you understand a topic or not. Try the corners of the language and see if it behaves the way you think it will.