What is System class and its purpose?
Answers were Sorted based on User's Feedback
Answer / ashokmail
System class is used to read the system properties.
by using system class you can read current running process,
current Runtime, time, and date.
| Is This Answer Correct ? | 11 Yes | 3 No |
The System (along with the Runtime class) provide system
level functionality to Java applications.
The facilities of these classes are not necessarily portable
across host operating system and may need to be recompiled
when porting.
Some of the facilities provided are:
1. Reading from the keyboard as input
2. Writing to console output
3. Interaction with JVM process for event notification, or
information such as free memory, etc
4. Reading/writing system properties/environment variables
5. executing other programs from within java apps
| Is This Answer Correct ? | 4 Yes | 3 No |
why operator overloading is removed in java?
Is java util list serializable?
What is immutable class? how to make a Class explicitly "Immutable"?Wap to make a class explicitly immutable.
How do you square a number?
What is the difference between Byte stream and Charecter Stream?
What is array and arraylist in java?
What is loop in java?
How do you test a method for an exception using junit?
Why is a singleton bad?
Is there a case when finally will not execute?
How can you share data between two thread in Java?
How can we create a object of a class without using new operator.