You are on page 1of 8

SCJA.

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

Fundamental Object-Oriented Concepts

*undamental +b,ect-+riented Concepts

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.

public public public public public

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; }

Question 10hich of the follo/in statements are true1


Select all correct ans/ers'

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'

a. int b. short c. double d. loat e. char

Question 1-"
A subclass and his superclass have an 2is-a3 realtionship1
Select the correct ans/er'

a. 4he statement is true b. 4he statement is false

///.sc,a.de

*undamental +b,ect-+riented Concepts

Question 1-#
A book has one or more pa es. 0hich of the follo/in concepts characteri6e it best1
Select the correct ans/er'

a. 7nheritance b. Composition c. Association d. Speciali6ation

Question 1-$
A subclass is usually more specific than its superclass.
Select the correct ans/er'

a. 4he statement is true b. 4he statement is false

///.sc,a.de

%nswers

Section 1

Fundamental Object-Oriented Concepts

*undamental +b,ect-+riented Concepts

%nswer 1-1
a. and d. are correct.

%nswer 1b. and c. 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

You might also like