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 the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }

3 Answers   TCS,


What is basic concept of static in java ?

1 Answers   iGate,


What is the purpose of static methods and static variables?

0 Answers  


why the primitive data type have classes?

4 Answers  


What is I/O Filter?

2 Answers   TCS, WAX,






Can we pass a primitive type by reference in java? How

0 Answers  


What is meant by javabeans?

0 Answers  


Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?

7 Answers   Ericsson,


why Interface used?

0 Answers   HCL,


Describe how to implement singleton design pattern in struts.

0 Answers  


Explain yield() method in thread class ?

0 Answers  


When will you define a method as static?

0 Answers  


Categories