310-025精选题(32)的具体内容如下:5 N0 p' V3 J; B, F8 x
115. A question about the GridbagLayout. One alternative., R3 s# ?" b2 n1 @6 F
116. You have been given a design document for an employee system for implementation in Java. It states.0 q. C* W6 R* u2 V
An Employee has a vector of bla bla, dates for meetings, number of dependants (what is this???)
. y9 X# A3 a- @: P2 ~; a9 ]2 `+ }A. Vector
% X$ T' x( \3 d+ l" oB. Int0 V9 z& ?! X& I& W; A; g. F3 N- _
C. Date
8 Y, S; Y! P1 ]D. Object
6 V& B, T7 Z; X w; L/ S/ R8 s4 AE. New employee e;
/ |% t3 ]" q7 S9 ^6 G/ FWhich variables should you use?
( J9 u& l8 Q) S, S* P8 bAnswer:: m4 i* w, {% ^9 F; z9 n
A, B, C. (Not sure. Don't remember exactly how the question was posed)
3 O) A% h6 \8 G. \0 @117. You have been given a design document for a polygon system for implementation in Java. It states. A polygon is drawable. You must access it. It has a vector and corners bla bla5 t: ~# q1 b/ l- `! Q+ n5 @$ d
choose between the following words: What will you write when defining the class?
; E) f1 o# a3 [# \* tpublic
; s4 }; F6 K! Kclass
/ o7 k2 Q2 t, C4 Z5 i" \+ K7 EPolygon
7 n7 `3 {: ^6 E/ xobject+ Z/ s) K7 F. s' `
extends0 @- c' H2 @3 e: |) k. b$ ] L
Shape# F0 _! c5 a' ]! n1 s
drawable! }8 b" @4 T. M+ ^( C
plus some more
2 [8 ?" M& [( N& G U4 @8 aAnswer:
' T, @3 M. ~# ^1 d( z4 K% j( _public class Polygon implements drawable
: r' H- R8 l# Y2 D118. A question about stacks. Only one correct answer.) J. C! P# j5 w. y. t0 v3 [
A. (Is it possible to have stack objects in a String) Code contained + "" + stack2 + "" +' x: @8 g# k! c5 i
B. (Is it possible to write stack1 = stack2;) m. {2 R+ R! R; z9 T3 u- O
C. Prints bla bla bla0 q/ M. p; A3 |+ q! E
D. Prints bla bla
# F: J: W6 D+ Z" d2 HE. Prints bla bla
6 y; D# p$ e; ~) V119. Threads: Which statements are true about threads stopping to execute?
& B3 @4 X s4 a5 `) S7 u( n( E& g3 w" yA. All threads in the same class stop at the same time
) M* r8 D% o& @4 D6 RB. The suspend() method stops the thread so that you can not start it again) }$ z! A2 {8 M8 q: y3 o
C.
3 t; {& \9 f8 D( A$ Z& dD.
) r0 z. G, @- @% T4 L8 {C or D. |