KyaPoocha.com

Huge Collection of Interview Questions


Archive for May, 2007

What is the highest-level event class of the event-delegation model? 

The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.  Read more »

Is a class a subclass of itself? 

Yes, a class is a subclass of itself.  Read more »

What modifiers may be used with an interface declaration? 

An interface may be declared as public or abstract.  Read more »

What is the relationship between an event-listener interface and an event-adapter class? 

An event-listener interface defines the methods that must be implemented by an event handler for a particular kind of event. An event adapter provides a default... Read more »

Is “abc” a primitive value? 

The String literal “abc” is not a primitive value. It is a String object.  Read more »

What is the relationship between clipping and repainting? 

When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.  Read more »

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

The Class class is used to obtain information about an object’s design.  Read more »

Name the eight primitive Java types. 

The eight primitive types are byte, char, short, int, long, float, double, and boolean.  Read more »

Is &&= a valid Java operator? 

No, it is not.  Read more »

How are the elements of a CardLayout organized? 

The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.  Read more »

Which TextComponent method is used to set a TextComponent to the read-only state? 

setEditable()  Read more »

What is the purpose of the System class? 

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

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

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

Does a class inherit the constructors of its superclass? 

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

What is the Map interface? 

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

Page 3 of 11«12345»...Last »