my dog learned polymorphism*
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


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 "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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String and String Buffer
 
Similar Threads
internal doubt abou string and string buffer
StringBuffer
EQUALS method
Difference of equals method in string and stringbuffer
StringBuffer and equals() method overriding