Did that answer your question Anchit? I think your initial question reads like a challenge to Java, when really you meant it sincerely. The System class in Java contains a number of fields (like "in" and "out"), and methods (like currentTimeMillis()), which are useful to basic programming. However, looked at another way the whole System class is a sacrifice of elegance for convenience. We Java guys can be sensitive about that.
John de Michele
Rancher
Joined: Mar 09, 2009
Posts: 600
posted
0
It should also be remembered that System is a very old (1.0) class, and the way things were done at the beginning of Java were not necessarily the best way to do things. It's easy to have 20/20 hindsight, but public APIs are hard to change once they're released into the wild.