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

What is used of static keyword in java?

0 Answers   Cyient,


What are default methods ?

0 Answers  


What are the states of thread in java?

0 Answers  


Distinguish method overloading and method overriding

4 Answers   Tech Mahindra,


Can an unreferenced object be referenced again?

0 Answers  






How do you use compareto in java?

0 Answers  


Can an interface extend another interface?

0 Answers  


What is string pool?

0 Answers  


What is meant by event handling in SAX parser?

1 Answers   Ness Technologies,


Difference between operator overloading and function overloading

0 Answers   Tavant Technologies, Virtusa,


State the significance of public, private, protected class?

0 Answers  


Who found java?

0 Answers  


Categories