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

Is set thread safe java?

0 Answers  


String class is defined under which package in java?

0 Answers  


What is slash r?

0 Answers  


Explain thread life cycle in java?

0 Answers  


Which package is used for pattern matching with regular expressions?

0 Answers  






How many types of memory areas are allocated by jvm?

0 Answers  


What is strings in java?

0 Answers  


How the elements are organized in CardLayout?

5 Answers  


heavy components means what?

4 Answers  


Explain working of call by reference function invoking.

0 Answers   Amdocs,


What is byte [] in java?

0 Answers  


What is starvation?

0 Answers  


Categories