Multiple choice

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

public void test(int x)
{
int odd = 1;
if(odd)
{
System.out.println("odd");
}
else
{
 System.out.println("even");
 }
 }

  1. windowMoved()

  2. windowClosing()

  3. windowIconified()

  4. windowActivated()

  5. windowDeiconified()

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

This option is correct.