1. Is Java a super set of JavaScript?

No. They are completely different. Some syntax may be similar.

2. What is the purpose of the enableEvents() method in Java Programming?

The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.

3. What is the Set interface in Java Programming?

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

4. What an I/O filter in Java Programming?

An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.

5. How is it possible in Java Programming 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 indifferent areas of memory.

6. How are this() and super() used with constructors in Java Programming?

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor in Java Programming.

7. What class allows you to read objects directly from a stream in Java Programming?

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

8. Name Container classes in Java Programming?

Container classes in Java:

or ScrollPane

9. What is casting in Java Programming?

There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.

10. What restrictions are placed on method overriding in Java Programming?

Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method.

Download Interview PDF