|
|
350 Mock Questions on SCJP 1.5 - JUST Rs.250 or 7 USD
Send us mail to sales@javabeat.net
more details
|
|
SCJA Mock Questions
Question 1
Given the following code. Select the correct setter and getter method for the
property limit according to the JavaBeans convention.
public class PropertyCheck {
private int limit;
}
Select all correct answers :
a. public void setLimit(int limit) {
this.limit=limit; }
b. public int setLimit(int limit) { return
this.limit; }
c. public void getLimit(int limit) {
this.limit=limit; }
d. public int getLimit() { return
this.limit; }
e. public int setLimit() { return
this.limit; }
a. and d. are correct.
Question 2
Which of the following statements are true ?
Select all correct answers :
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
b. and c. is correct.
Question 3
Which of the following primitives are known as the floating point datatypes ?
Select all correct answers :
a. int
b. short
c. double
d. float
e. char
c. and d. are correct.
Question 4
A book has one or more pages. Which of the following concepts characterize it
best ?
Select the correct answer :
a. Inheritance
b. Composition
c. Association
d. Specialization
b. is correct.
Question 5
A subclass is usually more specific than his superclass.
Select the correct answer :
a. The statement is true
b. The statement is false
a. is correct.
|
|
350 Mock Questions on SCJP 1.5 - JUST Rs.250 or 7 USD
Send us mail to sales@javabeat.net
more details
|
|