|
SCJP (Sun Certified Programmer for the Java 2 Platform) tutorials |
|
|
|
Contributed by Joe
|
|
Friday, 07 July 2006 |
|
Page 4 of 7 SCJP (Sun Certified Programmer for the Java 2 Platform) tutorialsWhich two demonstrate encapsulation of data? (Choose Two) A. Member data have no access modifiers. B. Member data can be modified directly. C. The access modifier for methods is protected. D. The access modifier to member data is private. E. Methods provide for access and modification of data.
Which two statements are true? (Choose Two) A. An anonymous inner class can be declared inside of a method B. An anonymous inner class constructor can take arguments in some situation. C. An anonymous inner class that is a direct subclass that is a direct subclass of Object can implement multiple interfaces. D. Even if a class Super does not implement any interfaces, it is still possible to define an anonymous inner class that is an immediate subclass of Super that implements a single interface. E. Event if a class Super does not implement any interfaces, it is still possible to define an anonymous inner class that is an immediate subclass of Super that implements multiple interfaces.
|
|
Last Updated ( Monday, 17 July 2006 )
|