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 |
in a constructor what happen if u call super and this in the same class? i know that it is not possible to call both in the same one? if we call what will happen?
How do you join strings in java?
what is business objects?
Can you give names of Container classes?
What is the purpose of main function in java?
What are the different approaches to implement a function to generate a random number?
0 Answers Axtria, ITC Indian Tobacco Company,
What is serialversionuid?
why using interface interface ?
Can we assign null to double in java?
How do you use equal in java?
What is data object example?
What is command line used for?