GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Is the Math class considered immutable? 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 "Is the Math class considered immutable?" Watch "Is the Math class considered immutable?" New topic
Author

Is the Math class considered immutable?

Bob Graffagnino
Ranch Hand

Joined: May 30, 2001
Posts: 81
Is the Math class considered immutable?
Bob Graffagnino
Ranch Hand

Joined: May 30, 2001
Posts: 81
I suppose objects are immutable, not classes. Since the Math class cannot be instantiated, the answers to my original question is - NO!
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Immutability has to do with the state of an object. We say that an object is immutable when you cannot change its state after its creation (Wrapper classes, String,...). The Math class has no state, that is, it does not declare any members, except the two constants PI and E.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
 
subject: Is the Math class considered immutable?