Why is Java's "out/in" PrintStream field designed to be referenced
directly rather than using a getter
This is something I've always been curious about since my first "Hello World"
Why is Java's out PrintStream a static field that is designed to be used
rather than making something like a "getOut()" method that would return
the PrintStream. Everything I've learned about good coding practices
screams that this is the best way to do things. Why doesn't Java do it?
No comments:
Post a Comment