Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

John Hunt Q3

 
Han Shu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I just made a mistake,the answer is A B C E, so that's no problem.
 
Percy Densmore
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem, glad you found it

------------------
Percy Densmore
-SCJP2 Die Hard Student
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic