What is run-time class and system class? what is their
purpose?
Answer Posted / ranganathkini
The System (along with the Runtime 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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why we do exception handling in java and how many types of exceptions are there?
Describe what a thread-local variable is in java?
What is a generic code?
What are different exception types exceptions available in java ?
What is a treemap in java?
When should the method invokelater() be used?
What is the difference between sop and work instruction?
What if I write static public void instead of public static void in java?
Similarity and difference between static block and static method ?
Can we extend a class with private constructor?
What are different types of expressions?
What are autoboxing and unboxing? When does it occur?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What are the two main uses of volatile in Java?
What’s meant by anonymous class?