KyaPoocha.com

Huge Collection of Interview Questions


‘Java Interview Questions’ - KyaPoocha.com

What is the Set interface? 

The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.  Read more »

If an object is garbage collected, can it become reachable again? 

Once an object is garbage collected, it ceases to exist. It can no longer become reachable again.  Read more »

How are the elements of a GridLayout organized? 

The elements of a GridBad layout are of equal size and are laid out using the squares of a grid.  Read more »

What are the legal operands of the instanceof operator? 

The left operand is an object reference or null value and the right operand is a class, interface, or array type.  Read more »

What Checkbox method allows you to tell if a Checkbox is checked? 

getState()  Read more »

Why are the methods of the Math class static? 

So they can be invoked as if they are a mathematical code library.  Read more »

How is it possible for two String objects with identical values not to be equal under the == operator? 

The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located... Read more »

What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1? 

The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model, components are required to handle their own events. If they do not handle... Read more »

What is the relationship between a method’s throws clause and the exceptions that can be thrown during the method’s execution? 

A method’s throws clause must declare any checked exceptions that are not caught within the body of the method.  Read more »

How are this () and super () used with constructors? 

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.  Read more »

Under what conditions is an object’s finalize() method invoked by the garbage collector? 

The garbage collector invokes an object’s finalize() method when it detects that the object has become unreachable.  Read more »

What is the difference between a field variable and a local variable? 

A field variable is a variable that is declared as a member of a class. A local variable is a variable that is declared local to a method.  Read more »

What class allows you to read objects directly from a stream? 

The ObjectInputStream class supports the reading of objects from input streams.  Read more »

What class of exceptions are generated by the Java run-time system? 

The Java runtime system generates RuntimeException and Error exceptions.  Read more »

What is the difference between a Choice and a List? 

A Choice is displayed in a compact form that requires you to pull it down to see the list of available choices. Only one item may be selected from a Choice. A List... Read more »

Page 5 of 33« First...«34567»...Last »