Set - 2

Question 41 :

What is the Map interface?

Answer :

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


Question 42 :

Does a class inherit the constructors of its super class?

Answer :

A class does not inherit constructors from any of its superclasses.


Question 43 :

Name primitive Java types.

Answer :

The primitive types are byte, char, short, int, long, float, double, and Boolean.


Question 44 :

Which class should you use to obtain design information about an object?

Answer :

The Class class is used to obtain information about an object's design.


Question 45 :

How can a GUI component handle its own events?

Answer :

A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.