Multiple choice

Which of the following event types is invalid in Java?

class Equals
 {
 public static
void main(String [] args)
 {
 int x = 100;
 double y = 100.1;
 boolean b = (x = y);
 /* Line 7 */ System.out.println(b);
 }
}

  1. FocusEvent

  2. ComponentEvent

  3. AdjustmentEvent

  4. WindowEvent

  5. ExceptionEvent

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This is the correct choice.