Q7 Which of the following modifiers may not be used with a top-level class? A public
4 T* O( _5 ~3 j4 Q9 D& t( I: [ B private' X7 ?9 M3 N; K
C abstract0 J% U; Q. K, ^7 T1 V3 B% u
D final# s$ |" q, B7 }( b! U) T2 O
Q8 Which of the following are true?
3 [: E' X0 r0 D' f6 V! K$ x/ E7 E A The sleep() method puts a thread in the ready state.
6 A. U W( k3 S' H9 L8 K! o$ k B The sleep() method puts a thread in the waiting state.$ M, w* e% |; \# B: |% t( \
C The suspend()method is the preferred method for stopping a thread’s execution.
5 s- l1 S, g" v% E; N+ Q D A thread’s interrupt() method results in the throwing of the InterruptedException.6 U* g3 d: n; }5 R
Q9 Suppose a Panel is added to a Frame and a Button is added to the Panel. If the Frame’s font is set to 12-point TimesRoman, the Panel’s font is set to 10-point TimesRoman, and the Button’s font is not set, what font will be used to display the Button’s label?
2 c1 k7 I1 S2 e A 12-point TimesRoman
5 I X5 T( S6 _ w2 F/ j B 11-point TimesRoman& F+ c9 t2 E7 B- P! i2 J" F. Z8 @
C 10-point TimesRoman
% N& Q: X5 p" M, Z3 n2 I D 9-point TimesRoman3 n) ?4 ?* V2 P* l, L/ h! j! M
Q007 B$ E2 ~, c F ?8 O% t( `
Q008 D) l/ @1 i( G2 }) t7 v
Q009 C |