โช Choose the correct option.
import java.awt.*;
class Ticker extends Component {
public static void main (String [] args) {
Ticker t = new Ticker();
/* Missing Statements ? */
}
}
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?
- boolean test = (Component instanceof t);
- boolean test = (t instanceof Ticker);
- boolean test = t.instanceof(Ticker);
- boolean test = (t instanceof Component);