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.
I would say yes, Math class is immutable. All methods of Math class are static, so I cannot have new behavior by overriding it. Also, the constructor is private so I cannot instantiate athe class. Regds. - satya
I think the term "immutable" is completely meaningless for the Math class. "Immutable" is used to refer to objects, to indicate that the instances of a class are unchangeable. With the Math class, it's not even possible to create any objects, so the term "immutable" doesn't really apply, in my opinion. I suppose you could answer this one either way - it's a vague question.
If we get this qt in the exam and we DON't select Math class as immutable, that would mean Math class is mutable. However, thats not the case. Therefore, I think its better off to choose Math class as immutable. Vague answer for a vague qt.