File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
One of the constructors for String takes a StringBuffer as an argument.
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:
subject: String and String Buffer
It's not a secret anymore!