Professional Documents
Culture Documents
de ebook
Sun Certified Java Associate
- more than 200 sample certification questions for the SCJA exam Copyri ht ! 200" by #alf $eter %orte
http://www.scja.de ebook@scja.de
&ersion' 200"-0(-)0
Questions
Section 1
Question 1-1
Select the correct setter and etter method for the property limit accordin to the Java-eans convention. public class PropertyCheck { private int limit; }
Select all correct ans/ers'
a. b. c. d. e.
void setLimit(int limit) { this.limit=limit; } int setLimit(int limit) { return this.limit; } void getLimit(int limit) { this.limit=limit; } int getLimit() { return this.limit; } int setLimit() { return this.limit; }
a. A class can extend more than one class b. A class can implement more than one interface c. An interface can extend more than one interface d. An interface can implement more than one interface
Question 1-!
0hich of the follo/in primitives are kno/n as the floatin point datatypes1
Select all correct ans/ers'
Question 1-"
A subclass and his superclass have an 2is-a3 realtionship1
Select the correct ans/er'
///.sc,a.de
Question 1-#
A book has one or more pa es. 0hich of the follo/in concepts characteri6e it best1
Select the correct ans/er'
Question 1-$
A subclass is usually more specific than its superclass.
Select the correct ans/er'
///.sc,a.de
%nswers
Section 1
%nswer 1-1
a. and d. are correct.
%nswer 1-!
c. and d. are correct.
%nswer 1-"
a. is correct.
%nswer 1-#
b. is correct.
%nswer 1-$
a. is correct.
///.sc,a.de