Set - 5

Question 61 :

If a class is declared without any access modifiers, where may the class be accessed?

Answer :

A class that is declared without any access modifiers is said to have package access. This means that the class can only be accessed by other classes and interfaces that are defined within the same package.

Question 62 :

What is the SimpleTimeZone class?

Answer :

The SimpleTimeZone class provides support for a Gregorian calendar.

Question 63 :

What is the Map interface?

Answer :

The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values.

Question 64 :

Does a class inherit the constructors of its superclass?

Answer :

A class does not inherit constructors from any of its super classes.

Question 65 :

For which statements does it make sense to use a label?

Answer :

The only statements for which it makes sense to use a label are those statements that can enclose a break or continue statement.