Which statement is not true?
Question 10 options:
A subclass can add its own fields and methods. |
|
A subclass is more specific than its superclass |
|
The subclass exhibits the behaviors of its superclass and can only add upon behaviors that are defined in the superclass. |
|
Every subclass object is an object of its superclass. |
Interfaces are particularly used for ______.
Question 8 options:
polymorphysim. |
|
programming in general. |
|
assigning common functionality to possibly unrelated classes. |
|
assigning common functionality to similar classes. |
When only one copy of a variables need to be shared by all objects of a class then that variable should be declared
Question 4 options:
final |
|
static |
|
string |
|
private void |
A method containing a parameter or a local variable that has the same name as a field of the class is
Question 7 options:
forbidden in Java |
|
often a logical error |
|
allowed in Java |
|
A and B |
|
B and C |
Answer 10:
The subclass exhibits the behaviors of its superclass and can only
add upon behaviors that are defined in the superclass.
subclass can have additional behaviors
Answer 8:assigning common functionality to possibly unrelated
classes.
Answer 4:static
static means class level so for all objects only one copy is
available
Answer 7:B and C
we can have instance and local variable with same name
NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME
IT IS VERY IMP FOR ME
Get Answers For Free
Most questions answered within 1 hours.