Q166 Which of the following are true?# | Z! ~& U5 V) q3 b
A Local variables may be declared final.
# l" C' f- R6 s# n+ y1 B1 Z2 P& n8 q B Methods may be declared final.
# d/ a* Y2 Z" s% V- f: z C Constructors may not be declared private.
& ?; S: n+ [7 R' {* \" ^ D transient variables may not be serialized.7 V/ r2 P6 E- b
Q167 When the clipping region is set for a Graphics object, which of the following are true?
5 ?/ `7 a6 n7 v; F3 I) o" J9 Y2 Y9 e A Painting is restricted to the clippping region.
* P8 [0 _* l* `' D- S$ ? B Painting is excluded from the clipping region.
- h6 E( `, {, `3 |9 e C All painting is prohibited.
$ ~$ ~* D2 o2 a9 H3 S. X( x D Painting takes place inside of and outside of the clipping region.
! x( v' j$ f/ X. n; i# x; b6 |5 Z Q168 Suppose that you want to have an object eh handle the TextEvent of a TextArea object t. How should you add eh as the event handler for t?4 I9 y- ]3 o% k
A t.addTextListerner(eh); X1 d! l$ D1 Z" D+ [
B eh.addTextListerner(t);
+ e% D8 ]0 H/ v( `% ~ C addTextListener(eh,t);' s0 K# k _3 Y: |+ P. v; [
D addTextListener(t,eh);* \, ^. ~3 ~) l3 T# X% U4 m) D7 M! \% R
Q166 ABD. G5 T# U1 j7 B8 S
Q167 A
7 N, i0 p& f( {8 l Q168 A |