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 |
How many static init can you have?
What is a function in java?
What are the different access modifiers available in java?
can we declare private class in java file?
What is the functionality of the stub?
How to call one constructor from the other constructor ?
What are the two ways you can synchronize a block of code?
What are the rules for variable declaration?
What is use of arraylist in java?
Why is it called boolean?
What is the difference between @before and @beforeclass annotation?
Why destructor is not used in java?