Set - 5

Question 21 :

What is the GregorianCalendar class?

Answer :

The GregorianCalendar provides support for traditional Western calendars.

Question 22 :

Which Container method is used to cause a container to be laid out and redisplayed?

Answer :


Question 23 :

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 24 :

How many times may an object's finalize() method be invoked by the garbage collector?

Answer :

An object's finalize() method may only be invoked once by the garbage collector.

Question 25 :

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

Answer :

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