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 |
Can we define constructor in inner class?
What is meant by polymorphism?
Write a code to show a static variable?
You're given a Boolean 2D matrix, can you find the number of islands?
What is the difference between static class and normal class?
What do you mean by synchronized non access modifier?
Are arrays static in java?
What is difference between string and new string?
What is a protected void?
what is private constructor?what are the uses of writing private constructor in our program?
What do you understand by the term string pool?
What is lastindexof in java?