SCJP (Sun Certified Programmer for the Java 2 Platform) tutorials: Page 4

Home arrow Java Tutorials arrow SCJP(310-035) arrow SCJP (Sun Certified Programmer for the Java 2 Platform) tutorials
SCJP (Sun Certified Programmer for the Java 2 Platform) tutorials Print E-mail
User Rating: / 32
PoorBest 
Contributed by Joe   
Friday, 07 July 2006

SCJP (Sun Certified Programmer for the Java 2 Platform) tutorials

Which 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 )

  home              contact us

 

©2006-2009 DeveloperZone.biz   All rights reserved     powered by Mambo Designed by Siteground