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 Beginning Java and the fly likes Mutability Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Mutability" Watch "Mutability" New topic
Author

Mutability

Agarwal Priyanka
Greenhorn

Joined: Jul 25, 2008
Posts: 20
hello all....

I am searching for a proper solution,can anyone help me? :roll:

What is mutability?
Which one is mutable: String or StringBuffer?Why?give example


keep trying...thats the way to success...<br />with best regards...<br />p.agarwal
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20077
    
  30

Mutability means whether or not you can change an object once created. After having said that, using the API, I'm sure you will be able to answer your second question.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mutability
 
It's not a secret anymore!