Multiple choice

Which of the following methods is not necessary to define for a class if it implements the windowListener Interface?

  1. windowMoved()

  2. windowClosing()

  3. windowIconified()

  4. windowActivated()

  5. windowDeiconified()

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

If a class implements an interface, then it is necessary for that class to define body to all the methods defined in the interface it is implementing. But windowMoved() method is not present in windowListener interface. So, when a class will implement this interface this method need not be defined in the class. So, this option is correct.