• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Failed my OCA exam on the first try

 
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:
Hey guys, I just wanted to first say that Coderanch is one of the more positive websites that I've looked at for assistance during my programming voyage, so I'm posting this on here seeking some help.
I've been programming since high school, but I haven't been very invested in hardcore coding and competitive programming, which I've started only recently on some websites like Codeforces and Leetcode, and I've been using Java (SE 8) as my main language to solve problems.
I'm gonna be starting my third year in college and my internship drives are coming up, so I thought I'd give the OCA exam to have some "proof" with me that I know a decent bit about Java and its basics.
I gave the exam today and ended up getting a frustrating 64%.

I practiced using Whizlabs mainly, and used to score around 75-85% on the mock tests there. I found that the OCA exam was slightly tougher (and lengthier!) than the questions they have to offer.
I never extensively "studied" Java from any books or reading/reference materials, so most of my knowledge comes from writing programs and solving problems myself and that's where I think I went wrong.
It feels like if I were to give the exam again soon, I'd pass, but I don't wanna risk the chance of me failing again.
I'm a bit bad at time management as well, and end up panicking if I'm not able to solve a question in the given slot of time (70 questions in 2:30 hours = ~2 min per question).

Could I get some advice on how to improve my score and knowledge in Java particularly for the exam?
 
Bartender
Posts: 1737
63
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:
There's plenty of questions where you need to know what is and what is not legal Java involving all sorts of rules that might not ever come up when you code, because you know various things that are legal and never write code containing those mistakes.

If you overlook those errors on the code in the exam questions you will get enough questions wrong on the exam even if someone just asked you to "write code that does this" that you would be able to do so.

Someone could say "This is stupid and pointless" if they all resulted in compile failures, but there are plenty of things you could do wrong that would just result in logic bombs in your code, so I would argue that it isn't as pointless as it seems.

Material targeted towards exam preparation highlights many of these annoying little things.

Random ones I can think of:

public static void main() { } // will this compile?  What will be the result of your run if that is the only main() method in your class?

Many things around "operator precedence" which would never come up if you just broke your computations up into more intermediate results or liberally used parentheses, but you have to say what the code will do as written.

Weird ways of writing array declarations...

Lots of tricky things about overloading versus overriding and some rules about both.

If a code snippet is numbered and starts with a line number higher than one you should presume there were some lines omitted before that, if it starts at one you can presume they aren't leaving anything out from above...

Confusion about which mistakes will result in failed compiles and which will just result in infinite loops or runtime exceptions for certain data.

There's a lot of things, if you have some sense which things you lost a lot of points on it would help.

Also, if you look at exam prep materials and start seeing lots of stupid weird rules showing that code you would never naturally write are either actually illegal or legal that alone could get you more than enough "new" points to pass.

I am overly obsessed with those things in any other context, but when trying to ensure you pass one of these exams, you can't possibly remember too many "dumb rules about whether doing some weird thing is legal and just a bad idea or illegal and won't compile" I would say.

I will second the "Don't give up!!" message, because it seems like if you found just a few "Exam Tricks" you were missing, or a few "Stupid Java Rules" you were unaware of and ignoring, you'd get more than enough points to pass next time.  There are skills that are needed that just don't get exercised when you write code "the way you always write it" and don't see the problems that you would actually see all the time if you did many code reviews at work, taught classes, or tried to answer questions in these forums.
 
Rahi Krishna
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:

Jesse Silverman wrote:
I am overly obsessed with those things in any other context, but when trying to ensure you pass one of these exams, you can't possibly remember too many "dumb rules about whether doing some weird thing is legal and just a bad idea or illegal and won't compile" I would say.
I will second the "Don't give up!!" message, because it seems like if you found just a few "Exam Tricks" you were missing, or a few "Stupid Java Rules" you were unaware of and ignoring, you'd get more than enough points to pass next time.  There are skills that are needed that just don't get exercised when you write code "the way you always write it" and don't see the problems that you would actually see all the time if you did many code reviews at work, taught classes, or tried to answer questions in these forums.



Yeah.. that's exactly what I felt while practicing for the exam as well. There were ostensibly many seemingly redundant and too far "in-depth" rules that I never ever heard of, and surely didn't need while programming and was introduced to them in the mock tests.
Would you recommend other mock tests such as Enthuware so I could practice different sorts of questions hidden in the nooks and crannies of Java and its rules, or should I go through some books to improve my knowledge firsthand?

Thanks for the quick reply though Jesse. Really appreciate it.
 
Jesse Silverman
Bartender
Posts: 1737
63
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:
I haven't purchased any of the Enthuware Mock Tests, I did read a book by Hanumant Deshmukh from there, and I have heard nothing but great things about their mock exams -- they have been at this for many years.  Additionally, I believe they are fairly reasonably priced.  Actually, considering how much practicing with their stuff reduces the likelihood of someone failing the exam and wasting the money, and how much less they cost than the exam...do the math.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic
vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |