What is Runtime class and its purpose?
Answers were Sorted based on User's Feedback
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 |
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 |
How do you remove spaces in java?
In how many ways we can the thread? in java
What does || mean in code?
How many threads does a core java have?
What are the 6 boolean operators?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
0 Answers HCL, SAP Labs, Vital Soft,
Is finalize() similar to a destructor?
What do you mean by jjs in java8?
If we don’t want some of the fields not to serialize how to do that?
What are different types of expressions?
what is difference between business delegate and data access object(dao)? in java?
What is blank final variable?