Question: 10. Can an abstract class define both abstract methods and non-abstract methods? A No--it must have all one or the other B- No--it must have

10. Can an abstract class define both abstract methods and non-abstract methods? A No--it must have all one or the other B- No--it must have all abstract methods C Yes--but the child classes do not inherit the abstract methods. D - Yes--the child classes inherit both. 11. When static binding occurs? A - Static binding occurs during Compile time. B Static binding occurs during load time. C - Static binding occurs during runtime. D - None of the above. 12. A method defined as below, void originalMethod (int } { // do something here Which of the following definition is an example of overloading? A - void originalMethod(int i, double d) [Il do something else h B - void originalMethod(String s) [ll do something else ) C - void originalMethod(Integer i) (lf do something else) D - All of above 13. Which of following is auto-boxing A Integer) integerArray 1, 2, 3, 4, 5 B-Integer[] integerAr ray= {new Integer (1), new rnteger (2)); C Integer i 2: D - All of above -14. Constructors cannot be overridden A True 8- False 15. Which keyword is used to refer to the current object? A -static B -final C- this D super _-16. Can an interface extend another interface? A - No-only classes can be extended. B - Yes-Interface is a special type of classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
