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'.
About Question enthuware.ocajp.i.v7.2.1186 :
Moderator: admin
-
- Posts: 3
- Joined: Wed Feb 12, 2014 11:52 am
- Contact:
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1186 :
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
-
- Posts: 3
- Joined: Wed Feb 12, 2014 11:52 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1186 :
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?
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1186 :
No one can guarantee that 100% but yes, it is safe to assume so.
-
- Posts: 3
- Joined: Wed Feb 12, 2014 11:52 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1186 :
Well, I guess I don't need to get 100%. Thanks!
Who is online
Users browsing this forum: No registered users and 7 guests