Why the awkward Design of System.out?

Posted by Shimi Bandiel on Stack Overflow See other posts from Stack Overflow or by Shimi Bandiel
Published on 2009-04-07T11:51:16Z Indexed on 2010/05/15 2:24 UTC
Read the original article Hit count: 302

Filed under:
|
|

Has anyone got an idea regarding the motivation behind the awkward design of the java.lang.System.out?

Awkwardness:
First, the out member is exposed (Encapsulation anyone?).
Second, it is final but can be changed via setOut() (contradicts final).

© Stack Overflow or respective owner

Related posts about java

Related posts about awkward