About Question enthuware.ocajp.i.v7.2.1186 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
tfraser
Posts: 3
Joined: Wed Feb 12, 2014 11:52 am
Contact:

About Question enthuware.ocajp.i.v7.2.1186 :

Post by tfraser »

I got this question wrong because I didn't know that the append method does not exist in the String class. It seems like the only way to prepare for a question like this is to memorise all the methods for the String class so I can recognise a false one. And there are a lot of methods in the String class (http://docs.oracle.com/javase/7/docs/ap ... tring.html)

Are there really questions like this on the exam? Am I missing something? This question is marked as 'Very Easy'.

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1186 :

Post by admin »

Yes, there are questions in the exam that need you to know a few important methods of String class. You don't have to memorize all the methods. Please see this: viewtopic.php?f=2&t=1213

tfraser
Posts: 3
Joined: Wed Feb 12, 2014 11:52 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1186 :

Post by tfraser »

So is it safe to assume, for the purpose of the exam, that if a presented String method is not in the list you linked to, that it is a 'trick' method and the example code will not compile?

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1186 :

Post by admin »

No one can guarantee that 100% but yes, it is safe to assume so.

tfraser
Posts: 3
Joined: Wed Feb 12, 2014 11:52 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1186 :

Post by tfraser »

Well, I guess I don't need to get 100%. Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests