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 |
WAP to illustrate the use of interface
What is identifier give example?
Enlist few advantages of inheritance?
what is difference between equals and ==?
When is the finalize() called? What is the purpose of finalization?
What is a pointer and does java support pointers?
Have you ever used hashtable and dictionary?
What is the use of a conditional inclusion statement in Java ?
Which command from the jdk compiles a java program?
How to convert String into primitive datatype.
what is synchronization
Why does java have two ways to create child threads? Which way is better?