Which statement is true? A. The Mycircle class is fully 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.
I think the right answer is D, am I right? thanks advance! [ November 24, 2006: Message edited by: Barry Gaunt ]
After compile, it said "i has protected access in p1.A" in line 15. Why, B is subclass of A, and member i in A is protected. in my opinion, subclss can access protected member of baseclass. [ November 21, 2006: Message edited by: Barry Gaunt ]
Thanks a lot. In rt.jar NaN is defined as follows:
A constant holding the largest positive finite value of type double,It is equal to the hexadecimal floating-point literal 0x1.fffffffffffffP+1023 and also equal to Double.longBitsToDouble(0x7fefffffffffffffL)