Set - 2

Question 21 :

What is the purpose of the Runtime class?

Answer :

The purpose of the Runtime class is to provide access to the Java runtime system.


Question 22 :

What is the purpose of the System class?

Answer :

The purpose of the System class is to provide access to system resources.


Question 23 :

What is the purpose of the finally clause of a try-catch-finally statement?

Answer :

The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.


Question 24 :

What is the Locale class?

Answer :

The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.


Question 25 :

What is an abstract method?

Answer :

An abstract method is a method whose implementation is deferred to a subclass. Or, a method that has no implementation.