Q31. Which of the following are Java keywords? A interface
3 b9 @9 T f. V1 J5 a3 y4 z- ] B sizeof. y8 m/ V7 H! x( M
C super1 G9 j' V8 @, e; }! h
D volatile
. H; J! ~9 ~. r Q32 Which method returns the preferred size of a component?
; C, {* \. H5 |: j A getPreferredSize()
# x- E* D! p, a) R" }6 l e B getPreferred()3 L' g+ M. f4 E/ H+ g- R. ]
C getReQuiredSize()" P, Z1 e% ]9 p, U1 W3 s
D getLayout()
$ Q6 W. J( `) A# o5 j# a Q33 How can a class that is run as a thread be defined?. l6 w5 ~/ _" M
A By subclassing the Thread class.7 f- p" ?; r1 p+ y, c- P
B By implementing the Throwable interface.# t) V# G2 h7 L- R
C By implementing the Multithread interface.
6 c% {) ~+ B: |4 @3 R D By implementing the Runnable interface.' ^, }! C/ _# Y/ c- J# a
Q031 ACD
5 g) i Q" C- y! }& T Q032 A
7 ~; k% ~' h+ z Q033 AD |