This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Difference of equals method in string and stringbuffer
internal doubt abou string and string buffer
StringBuffer
EQUALS method
StringBuffer and equals() method overriding