Page 1 of 1

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

Posted: Thu Feb 13, 2014 5:32 am
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'.

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

Posted: Thu Feb 13, 2014 7:42 am
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

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

Posted: Thu Feb 13, 2014 10:20 am
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?

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

Posted: Thu Feb 13, 2014 11:19 am
by admin
No one can guarantee that 100% but yes, it is safe to assume so.

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

Posted: Thu Feb 13, 2014 11:35 am
by tfraser
Well, I guess I don't need to get 100%. Thanks!