Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

OCA Coding Exercises  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just recently took and failed (61%) the OCA 7. I took this first attempt pretty much blind after only having read the K&B books cover to cover. I was scoring in the high 80's with the practice exams in the book. One area that I would like to really focus on is getting some practical experience coding problems that I would see on the test. The areas that I failed most on were loop constructs and exception handling. Can anyone recommend any coding exercises that I could do to help reinforce the material I am going over?
 
Sheriff
Posts: 11338
177
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeremy Rottman,

First of all, a warm welcome to CodeRanch!

Jeremy Rottman wrote:I just recently took and failed (61%) the OCA 7.


Sorry to hear you have failed the exam!

Jeremy Rottman wrote:One area that I would like to really focus on is getting some practical experience coding problems that I would see on the test. The areas that I failed most on were loop constructs and exception handling. Can anyone recommend any coding exercises that I could do to help reinforce the material I am going over?


Every mock question, code snippet, code exercise,... you encounter is an excellent starting point for a experimenting and twiddling (change access modifiers, make it final, make it static,...). The more you'll practice (experiment), the easier it will get to analyze code and spot (compiler) errors and/or runtime exceptions. So the first step is of course trying to understand the explanation, but that's definitely not the only thing you should do with these exercises. Each code snippet offers a gazillion possibilities which just a few small adjustments (as illustrated in this topic).
I'm a strong believer of using your favourite text editor and javac/java to write, compile and run these little code snippets. Don't use an IDE, certainly not if you are a Java beginner! The IDE will spot compiler errors for you, but on the actual exam you don't have a compiler to point you at the errors, you have to do this all by yourself! And that's the crucial part of the experimenting and twiddling with the code snippets: you make a small change to the code and you have to explain yourself what the result of this change will be (compiler error, runtime exception, same/other output). Then you compile (and run) the program and see if you were correct or not . This is something I try to encourage here in these forums as well: you'll find plenty of threads where someone asks a question or has some doubts, I (try to) answer the question or clear the doubts and then I add the same code snippet (as in the original post) but with 1 (or 2) small adjustment(s).

In the OcajpFaq (besides other very useful information) and this thread you'll find an overview of all available (free and commercial) resources (study guides, mock exams, video courses,...) to thorougly prepare yourself for the certification exam. And 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).

If you use the search function, you'll find plenty of topics with advice to prepare (and ace) the OCA exam. Here are a few:
  • Studying so hard just to fail(1z0-808)
  • Failing Java SE 8 Programmer I
  • Bad Experience with OCA 7 exams
  • Any tricks about how to manage the 120 min for so many question?
  • second failed OCAJP
  • Need some advice after failing the exam
  • A humble request for your process


  • Hope it helps!
    Kind regards,
    Roel
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!