a) True
b) False
Answer:
a) True
Explanation:
For method overriding, a method with the same signature in both superclass and subclass is required with the same signature. That satisfies both concepts of inheritance and polymorphism.
a) True
b) False
a) True
For method overriding, a method with the same signature in both superclass and subclass is required with the same signature. That satisfies both concepts of inheritance and polymorphism.
a) Compiler and system b) Compiler and instructions c) Compiler and interpreter d) None of the above Answer c) Compiler and interpreter
a. int number(); b. float average[]; c. counter int[]; d. []double marks; Answer: b. float average[]; Explanation: The correct syntax for declaring an array is
a. All classes must have 1 parent but may have many any number of children classes. b. All classes must have 1 child class but
a. java5 b. java123 c. java12 d. Error Answer: b. java123 Explanation: In java, whenever we concatenate string followed by integers, all the integers get
Oracle Certified Tutor/Trainer with 100+ reviews