This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes String and StringBuffer 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 StringBuffer" Watch "String and StringBuffer" New topic
Author

String and StringBuffer

Ravi Ahuja
Ranch Hand

Joined: Nov 13, 2006
Posts: 45

[op]
This code gives the output as
Stringinvoked
Can Anyone explain Why ?
Thanks in advance
[/op]


Impossible is Nothing<br />SCJP 1.4: 96%
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
String literals are always instances of String.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String and StringBuffer
 
It's not a secret anymore!