Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I want to pass SCJP for 1.4 !I am very grateful to you for helping me!!
Originally posted by leandro oliveira:
That's a good question! I guess all of them are true since all the classes mentioned (String,Double,StringBuffer,Math) are immutable, (I state this basing on the fact that these classes are declared final).
I want to pass SCJP for 1.4 !I am very grateful to you for helping me!!
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Originally posted by Thomas Paul:
From the Sun web site:
Bloch defined an immutable class as a programming element whose instances cannot be modified. "All the information contained in each instance is provided when it is created and is fixed for the lifetime of the object," Bloch said.
By this defintion only String and Double are immutable classes. StringBuffer's instances can be modified and Math can't have any instances.
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Consider Paul's rocket mass heater. |