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

Can java program run without jre?

1 Answers  


What do you mean by formatting?

1 Answers  


I want to persist data of objects for later use. What’s the best approach to do so?

1 Answers  


Explain the purpose of garbage collection in Java?

1 Answers   BirlaSoft,


How do you sort objects in java?

1 Answers  


How to perform selection sort in java?

1 Answers  


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

1 Answers   HCL,


What is the difference between method and constructor ?

3 Answers  


How to synchonise HashMap

4 Answers   IBM,


Why string is not a wrapper class?

1 Answers  


can you create interface instance ?

54 Answers   Fidelity, TCS,


Can we declare Pointer in Java?

5 Answers  


Categories