What is System class and its purpose?

Answers were Sorted based on User's Feedback



What is System class and its purpose?..

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

What is System class and its purpose?..

Answer / ranganathkini

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

Post New Answer

More Core Java Interview Questions

How many static init can you have?

0 Answers  


What is a function in java?

0 Answers  


What are the different access modifiers available in java?

0 Answers  


can we declare private class in java file?

13 Answers  


What is the functionality of the stub?

0 Answers  






How to call one constructor from the other constructor ?

0 Answers  


What are the two ways you can synchronize a block of code?

5 Answers   Ericsson,


What are the rules for variable declaration?

0 Answers  


What is use of arraylist in java?

0 Answers  


Why is it called boolean?

0 Answers  


What is the difference between @before and @beforeclass annotation?

0 Answers  


Why destructor is not used in java?

0 Answers  


Categories