Which of the following statements is legal in Java?
(i) mysRef = (Mystery) mySecret;
(ii) mysRef = (Mystery) secRef;
A) Only (i)
B) Only (ii)
C) Both (i) and (ii)
D) None of these
Correct Answer:
Verified
Q13: The class used to encapsulate fonts is
A)Graphics
B)Font
C)Applet
D)Component
Q14: The method used to set Fonts is
A)setFontName()
B)setFont()
C)setFontText()
D)none
Q15: The method setFont() is defined in---------- class
A)Applet
B)Font
C)Container
D)Component
Q16: The layout manager that lets you align
Q17: The layout manager that lays out a
Q18: The class used for drawing graphics in
Q19: The method in Graphics class to draw
Q20: The method in Graphics class to set
Q21: The method used to draw an ellipse
Q23: What is the value of y if
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents