Hello, I was just wondering if the method indexOf will be on the test. I could not find any reference to it in the Java 2 book by Kathy Sierra and Bert Bates, but can find it in multiple mock exams. Not a problem if it is on the test, seems pretty easy to learn. I was just wondering why it didn't show up in the book and if I should waste my time studying it.
The exam objectives state only the following in reference to the String class. "Describe the significance of the immutability of String objects." Of course, the real exam covers a lot more String topics than that. I covered the String.indexOf method in my mock exam because I think of it as a frequently used method. I don't know of the authors of the real exam have a different opinion of it. The exam objectives state which methods of the java.lang.Math class are covered on the real exam. The same is true for the wrapper classes. It sure would be nice if the next version of the objectives make a similar statement concerning the java.lang.String class.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Howdy, Here's my answer... the indexOf() method would fit within the (vague) objectives for String, and Dan is correct in covering it. (Dan, I agree with you about making that explicit in the objectives. Probably with the next revision, we'll try to do that). On the other hand, if I were you, I'd spend my time on other things cheers, Kathy