What is run-time class and system class? what is their
purpose?



What is run-time class and system class? what is their purpose?..

Answer / 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

More Core Java Interview Questions

What is thread synchronization in java?

0 Answers  


What are the differences between string, stringbuffer and stringbuilder?

0 Answers  


What is local class in java?

0 Answers  


Tell us something about different types of casting?

0 Answers  


What is a flag variable?

0 Answers  






What is Mutex (Mutual Exclusion Object) ?

0 Answers   Ciena,


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

0 Answers   HCL,


Write the algorithm to check the number non-leaf nodes in a tree.

0 Answers   Amdocs,


What is the length of a string?

0 Answers  


please write java program of instanceOf keyword implementation

2 Answers   TCS,


What is unmodifiable collection in java?

0 Answers  


How do you do exponents in java?

0 Answers  


Categories