Multiple Choice
Which of the following could be used to declare abstract method method1 in abstract class Class1 (method1 returns an int and takes no arguments) ?
A) public int method1() ;
B) public int abstract method1() ;
C) public abstract int method1() ;
D) public int nonfinal method1() ;
Correct Answer:

Verified
Correct Answer:
Verified
Q18: Which of the following is not possible?<br>A)
Q19: Which of the following statements is false?<br>A)
Q20: In Java SE 7 and earlier, an
Q21: Declaring a method final means:<br>A) it will
Q22: Polymorphism enables you to:<br>A) program in the
Q24: The UML distinguishes an interface from other
Q25: Consider the abstract superclass below: <br>public abstract
Q26: Which of the following statements is false?<br>A)
Q27: Aclass that implements an interface but does
Q28: Every object in Java knows its own