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 Mock Exam Errata and the fly likes John Hunt Q3 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 » Mock Exam Errata
Bookmark "John Hunt Q3" Watch "John Hunt Q3" New topic
Author

John Hunt Q3

Han Shu
Greenhorn

Joined: Sep 03, 2001
Posts: 9
Q. 3
Which methods can be legally applied to a string object?
A.equals(String)
B.equals(Object)
C.trim()
D.round()
E.toString()
Select all correct answers.
The answer is B,C,E. I wonder why B is right and A is not. Thank you for helping?
Han Shu
Greenhorn

Joined: Sep 03, 2001
Posts: 9
Sorry, I just made a mistake,the answer is A B C E, so that's no problem.
Percy Densmore
Ranch Hand

Joined: Mar 06, 2001
Posts: 214
No problem, glad you found it

------------------
Percy Densmore
-SCJP2 Die Hard Student
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: John Hunt Q3
 
Similar Threads
When are String Literals Garbage Collected?
String & StringBuffer -- Difference
Object References - why are Strings different?
String creation question
explain this string method..