Exam 11: Inheritance
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Java Fundamentals53 Questions
Exam 3: Decision Structures52 Questions
Exam 4: Loops and Files48 Questions
Exam 5: Methods50 Questions
Exam 6: A First Look at Classes49 Questions
Exam 7: A First Look at Gui Applications49 Questions
Exam 8: Arrays and the Arraylist Class52 Questions
Exam 9: A Second Look at Classes and Objects40 Questions
Exam 10: Text Processing and More About Wrapper Classes49 Questions
Exam 11: Inheritance49 Questions
Exam 12: Exceptions and Advanced File Io46 Questions
Exam 13: Advanced Gui Applications46 Questions
Exam 14: Applets and More39 Questions
Exam 15: Recursion34 Questions
Exam 16: Sorting, Searching, and Algorithm Analysis46 Questions
Exam 17: Generics50 Questions
Exam 18: Collections50 Questions
Exam 19: Array-Based Lists20 Questions
Exam 20: Linked Lists36 Questions
Exam 21: Stacks and Queues36 Questions
Exam 22: Binary Trees, Avl Trees, and Priority Queues45 Questions
Select questions type
If a subclass constructor does not explicitly call a superclass constructor,
(Multiple Choice)
5.0/5
(30)
Look at the following code.Which line will cause a compiler error? Line 1 public class ClassA
Line 2 {
Line 3 public ClassA(){}
Line 4 public int method1(int a){}
Line 5 public final int method2(double b){}
Line 6 }
Line 7 public ClassB extends ClassA
Line 8 {
Line 9 public ClassB(){}
Line 10 public int method1(int b){}
Line 11 public int method2(double c){}
Line 12 }
(Multiple Choice)
4.8/5
(42)
If a method in a subclass has the same signature as a method in the superclass,the subclass method overloads the superclass method.
(True/False)
4.8/5
(36)
In the following statement,which is the interface? public class ClassA extends ClassB implements ClassC
(Multiple Choice)
4.9/5
(30)
All methods in an abstract class must also be declared abstract.
(True/False)
4.8/5
(40)
Every class has a toString method and an equals method inherited from the Object class.
(True/False)
4.8/5
(39)
Showing 41 - 49 of 49
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)