Multiple choice

Which of the following methods is/are not necessary to define for a class if it implement 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 to be define in the class. So, this option is correct.