wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes which methods to study... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "which methods to study..." Watch "which methods to study..." New topic
Author

which methods to study...

Pal Sudarshan
Ranch Hand

Joined: Jun 10, 2004
Posts: 52
Hello All,

I had posted this very question long time ago, but I wasn't clear with my
question. Well, I wanted to know which methods I ought to study from the
String, StringBuffer, Thread, and the Collections Framework. Sun is very clear about which methods I need to know from the Math and Wrapper classes but does not state much for the classes String, StringBuffer, and Thread. There are a lot of methods from these classes which I have never used. Which methods should I study from the three classes I mentioned and the collections framework?

Thanks.
Joe Borderi
Ranch Hand

Joined: Oct 23, 2004
Posts: 151
"Which methods should I study from the three classes I mentioned and the collections framework?"

The easy answer is all of them.

Here's the practical answer that will cover most of the questions:

For collections know how each collection is used and which is best for a given situation.

For StringBuffer, know that this class does not ovveride equals() and that class methods that alter this StringBuffer and return StringBuffer return and alter itself.

For String, know that equals() lexicographically compares two strings and that class methods that seem to change strings leave the invoking String unchanged and return a new String; in short, internalize that Strings are immutable.

(To illustrate an important difference between the StringBuffer and String methods, understand what is going on with, e.g., StringBuffer.append(StringBuffer sb) and String.concat(String str).)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: which methods to study...
 
Similar Threads
"Top Ten Topics that Everyone Thinks are on the SCJP Exam, but Aren't "- Bert Bates
Any good book for SCJP threads section
Passed with 95% in SCJP 1.4 today
what API's can I expect questions on
Should we read API for SCJP 5.0