This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes java.lang package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "java.lang package" Watch "java.lang package" New topic

java.lang package

Ambapali Pal
Ranch Hand

Joined: Dec 17, 2002
Posts: 47
Can anybody suggect me how much of the API I have remember .
Java Programmer 1.4 Exam objectives 8.X mentions about the methods of Math and Wrapper classes but does not mention the method of the String and StringBuffer class.
Does the exam expects to memorise all the methods of the String and StringBuffer class ?
It is sufficient to read only the mentioned methods of the Math and Wrapper classes ?
Thanks in advance.
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Honestly, if you've done much studying, I'm sure you've found that you know many of the methods available in String and StringBuffer.
String and StringBuffer are definitely fair game as far as exam questions go. However, I wouldn't go as far as trying to memorize every method signature. Granted, I had at least one question on the exam that required me to know the method signature of a given method, but that was just one question. One question should not make or break your exam.
If you have a good grasp of Java, you almost certainly have a good grasp of the methods available in the java.lang classes.
In short, I wouldn't waste a whole lot of time memorizing method signatures - there are more important things to study.

SCJP Tipline, etc.
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
I would limit the memorization of method signatures to only those specifically mentioned in the objectives. You will also need to know what you can pass to the constructors of the wrapper classes.
A typical exam question on wrappers will be designed to determine if you know what you can pass into a method and what is returned by the method. For example, does the wrapper method return an object or a primitive?
A typical question for the math class will verify that you know that the trigonometric methods accept radian values as arguments but not degrees.
A typical String question will try to invoke a StringBuffer method on a String object so you need to know which methods go with which class. Of course, there will be questions that test your understanding of the immutability of String objects.

Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="" target="_blank" rel="nofollow">Try my mock exam.</a>
Dan Culache
Ranch Hand

Joined: Jan 24, 2003
Posts: 70
What about containers and their methods?
Ambapali Pal
Ranch Hand

Joined: Dec 17, 2002
Posts: 47
Thanks Corey and Dan Chisholm for your suggestion.
About yoour question Dan Culache , are you really talking about containers. Thay are not there in 1.4 exam. If you are preparing for 1.2, then I will say that I donot know.
But if you are talking about collection classes. It is just enough to read basic type of collection interfaces and classes as a point of selecting them in different situation. The methods are not important. Collections are very good in Kathy's book, if you have one.
Bye the way, I just gave the 1.4 exam (passed with 95%) and did not get any tough/rare question on API.
Dan Culache
Ranch Hand

Joined: Jan 24, 2003
Posts: 70
Thanks Ambapali. Yes, I was talking about collections. For how long did you study?
I agree. Here's the link:
subject: java.lang package
Similar Threads
Guidelines for Packacges
which methods to study...
Should I remember all the menthods of classes?
Passed SCJP 1.4 with 93%