Question: Java Every class in Java inherits from another class, even if there is no explicit extends clause. Question 7 options: True False Question 8 A
Java
Every class in Java inherits from another class, even if there is no explicit extends clause.
Question 7 options:
|
| True |
|
| False |
Question 8
A subclass can call private methods from its superclass
Question 8 options:
|
| True |
|
| False |
Question 9
Does the following code show method overriding or method overloading?
public class A {public void echo(String s) { System.out.println(s);}} public class B extends A {public void echo(String s, int x) {for (int i=0; i}}}
Question 9 options:
|
| overriding |
|
| overloading |
Question 10
Which layout manager organizes components left-to-right and top-to-bottom, in the order that you add them?
Question 10 options:
|
| OrderedLayout |
|
| FlowLayout |
|
| BorderLayout |
|
| DefaultLayout |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
