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

What are JVM.JRE, J2EE, JNI?

0 Answers  


How do you replace a string in java?

0 Answers  


Do you know thread pools?

0 Answers   BMC,


What is the functionality of the stub?

0 Answers  


What is the difference between replace and replace all?

0 Answers  






how can we import the user defined package without classpath?

1 Answers   CSC, Infosys,


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

0 Answers  


what is bmg file and how to create that files?what will it contailn?

0 Answers   HCL, Probe Services,


What is bifunction in java?

0 Answers  


Which java collection does not allow null?

0 Answers  


why Java does not support multiple inheritances?

0 Answers   Aspire,


What is mean by encoding?

0 Answers  


Categories