Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

indexOf

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic