Advanced Java - Interview Questions and Answers


  1. 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.
  2. What classes of exceptions may be thrown by a throw statement?
    A throw statement may throw any expression that may be assigned to the Throwable type.
  3. What are E and PI?
    E is the base of the natural logarithm and PI is mathematical value pi.
  4. Are true and false keywords?
    The values true and false are not keywords.
  5. What is a void return type?
    A void return type indicates that a method does not return a value.
  6. What is the purpose of the enableEvents() method?

    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.


« Prev   [ Page 25 of 31  Jump... Next »

Jump to page : 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |