aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes String and String Buffer 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 "String and String Buffer" Watch "String and String Buffer" New topic
Author

String and String Buffer

vidhya subramaniam
Ranch Hand

Joined: Jul 14, 2001
Posts: 91
In one of the mock exams it says the String class has an object which takes String Buffer object as an argument. Is this statement true or false. The answer given is true. Can please someone explain.
Thanx
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
One of the constructors for String takes a StringBuffer as an argument.
http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html
When in doubt, check the API.
------------------
Tom - SCJP --- Co-Moderator of the Programmer Certification Forums


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
Don't get me started about those stupid light bulbs.
 
subject: String and String Buffer