1.

import java.awt.*;
class Ticker extends Component
{
public static void main (String [] args)
{
Ticker t = new Ticker();
/* Missing Statements ? */
}
}

which two of the following statements, inserted independently, could legally be inserted into missing section of this code?

1.boolean test = (Component instanceof t);

2.boolean test = (t instanceof Ticker);

3.boolean test = t.instanceof(Ticker);

4.boolean test = (t instanceof Component);

A. 1 and 4
B. 2 and 3
C. 1 and 3
D. 2 and 4
Answer» E.


Discussion

No Comment Found