Home / MCQ Bank / Computer
Computer Inheritence

Which of the following is true? 1. A class can extend more than one class. 2. A class can extend only one class but many interfaces. 3. An interface can extend many interfaces. 4. An interface can implement many interfaces. 5. A class can extend one class and implement many interfaces.

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • 3 and 5

Related Computer Questions

What is the default initial value of elements in an array of type boolean in Java? What is the result of len("Hello, World!") ? Determine output: public class Test{ public static void main(String... args){ int a=5 , b=6, c=7; System.out.println("Value is "+ b + c); System.out.println(a + b + c); System.out.println("String " + (b+c)); } } How do you count the number of rows in a dplyr data frame? A regular subquery can be processed: