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


Please Help Members By Posting Answers For Below Questions

How do you sort arraylist in descending order?

578


What is a substitution variable?

567


What lambda means?

545


What are data structures in java?

534


Does java have a compiler?

558






What is classname class in java?

534


What is locale?

606


Are arrays passed by reference in java?

492


What is executor memory?

522


What do you mean by checked exceptions?

538


Is constructor inherited?

532


What are the changes in java.io in java 8 ?

558


How many bytes is double?

549


Explain the features of java?

597


What is a function easy definition?

529