What is Runtime class and its purpose?

Answers were Sorted based on User's Feedback



What is Runtime class and its purpose?..

Answer / ranganathkini

The Runtime(along with the System 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 ?    10 Yes 4 No

What is Runtime class and its purpose?..

Answer / puneet

the instance of this class stored the environmental
information where the app is running and gives you few
mathod to work with JVM and to get information from it and
may be to hault it and stop it from working too and caling
few processes on the system where the app is running.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

Difference between this() and super() in java ?

0 Answers  


What are the features in java?

0 Answers  


What is difference between checked and unchecked exception in java?

0 Answers  


What are the three parts of a lambda expression? What is the type of lambda expression?

0 Answers  


what is the final keyword denotes in java?

0 Answers   IBS,






What is CardLayout?

1 Answers   Infosys,


What are the characteristics of Final,Finally and Finalize keywords.

0 Answers   Flextronics,


What is a functional interface?

0 Answers  


What is a local, member and a class variable?

0 Answers  


hi to all. well can you please tell me that why String class is immutable? Thanks in advance.

5 Answers   Huawei,


What is a static class in java?

0 Answers  


basic difference b/w ALL types of JDBC driver.

1 Answers   Systematix,


Categories