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.
Describe the significance of the immutability of String objects? Can anyone explain me this exam objective. FOR ALL THOSE WHO MAY NOT BE AWARE LIKE MYSELF- Also for SJCP exam for platform 2, the objectives do not have the java.awt Package-Components and Facilities java.awt Package-Event Handlers and java.awt Package -Painting.Is this true?...i mean some of these packages are too important to be not convered my the platform 2 objectives. For reference check the following link to believe your eyes - http://suned.sun.com/USA/certification/progobj.html
A String Object is immutable in that once it is created in the string pool the reference does not change. If the value in the String variable changes the a new String is created in the string pool and the reference now points to this. E.G String s="Hello"; // reference to s points to "Hello" in the pool of available Strings s="Goodbye"; now reference to s points to a different string in the pool because the original string is immutable and cannot be changed. You need to be careful to pay attention to the wording in the exam as to whether the value stored in s changes or the original reference is changed. RHE are excellent on this. Ranch-hands feel free to correct this explanation as I am not sure if it is very clear. As to the second question, I would definately spend some time studying components & painting, even though they are not specifically mentioned. As best as I can remember, I got a few questions that required some knowledge of both.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com