Académique Documents
Professionnel Documents
Culture Documents
jsp
(*)
Correct
42.What is wrong with the following class declaration? Mark for Review
(1) Points
class Account{
private int number;
private String name;
public Account;
}
The constructor method has no definition. (*)
Classes cannot include mixed data types.
Classes cannot include strings.
There is nothing wrong.
Correct
43.Which of the following creates a method that returns a boolean value? Mark for Review
(1) Points
(*)
Correct
44.The basic unit of encapsulation in Java is the primitive data type. True or false? Mark for Review
(1) Points
True
False (*)
Correct
45.You can create static classes as independent classes. True or false? Mark for Review
(1) Points
True
False (*)
Correct