Model 204 and Java Programming Quiz

Casual Mode - Take your time!

1 / 20
Correct
0
Incorrect
0
Score
0%
Multiple Choice

Class Y is a subclass of Class X.Will this compile? Y myY=new Y(); X myX=myY;

  1. No
  2. Compile Error
  3. Yes
  4. Runtime Error
  5. Not Sure
Change Mode