单项选择题
Which statement is true?()
A. The MyCircle class is full encapsulated.
B. The diameter of a given MyCircle is guaranteed to be twice its radius.
C. Lines 6 and 7 should be in a synchronized block to ensure encapsulation.
D. The radius of a MyCircle object can be set without affecting its diameter.
相关考题
-
单项选择题
A collection of products is stored in the Servle Context in an attribute called catalog. Which JSTL code structure iterated over each product in the collection and prints out the names of the products in an un-ordered list?()
A.A
B.B
C.C
D.D -
单项选择题
WhichstatementistrueifthedoStartTagmethodreturnsEVAL_BODY_BUFFERED?()
A. The tag handler must extend body Tag.
B. The do After Body method is NOT called.
C. The set Body Content method is called.
D. It is never legal to return EVAL_BODY_BUFFERED from do Start Tag. -
单项选择题
What is the result?()
A. The code will not compile.
B. The output is Caught Exception
C. The output is Caught IO Exception
D. The program executes normally without printing a message.
