This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
[code] Which methods can be legally applied to a string object? a.equals(String) b.equals(Object) c.trim() d.round() e.toString() the answer is a b c d e my question is focus on a. because i have viewd the api for jdk1.3 and i merely find the method of equals(Object obj) at the the class of String.So i think the answer shouldn't include a. my english is poor so i don't know if i explain clearly.
Scott Appleton
Ranch Hand
Joined: May 07, 2001
Posts: 195
posted
0
A String "is an" Object and is therefore a legal argument to any method which takes an Object as a parameter.