Q67 Which statement is true about a non-static inner class? A It must implement an interface.
* z5 a: Z, y# `, e9 S B It is accessible from any other class." d) v6 I+ K" s1 [( Q
C it can only be instantiated in the enclosing class.
5 |& f" [; {, ]8 n4 J2 q0 p D it must be final, if it is declared in a method scope.# A0 T# D& K2 k! n0 Y+ F
E it can access private instance variables in the enclosing object.( P' f6 J2 O T
Q68 Which of the following are true?2 A7 D* R5 u' y* x! q9 z. Z% ~
A Event listeners are interfaces that define the methods that event-handling classes must implement.
" k& F& h) N/ @6 C" o1 m$ x. C+ r B An event adapter is a class that provides a default implementation of an event listener.! \3 c: s% V) m8 ^% T6 D
C The event listener and adapter classes are deprecated in java 2.
" Q; m; N' w. c# A D The WindowAdapter class is used to handle window-related events.0 d9 ^ T4 L4 F8 [) O) y
Q69 What is the range of the short type?
1 I3 A. d! r. Q& k A 0 to 2^16
^. Q* q/ e' R1 _0 l, U B -(2^16) to 2^16! W5 Q q! M2 @1 ^. ]( Q6 L
C -(2^15) to 2^15
- A( e) v7 B7 O( j$ U D –(2^15) to 2^15 –16 N/ Y5 J c% @
Q067 E, g9 S" b* |3 k3 x$ d9 w1 D
Q068 ABD
7 ]; u3 X4 G! T5 @- } Q069 D |