An inner class can actually be a subclass of the outer class?
a. true
b. false
Answer Posted / mool shankar shukla
inner class is a class within class. and sub class is a class which inherits method or methods from super class.
example of sub class...........
class a
{}
class b extends a
{}
here b is sub class of a.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Difference between final and effectively final ?
Can singleton class be inherited in java?
What is the core java?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
Is singleton class thread safe?
What is a method header?
What is classes in java?
How large is a boolean?
What are the two ways to create a thread?
Can we have any other return type than void for main method?
What is null in java?
Explain the inheritance?
Where will it be used?
what is the major difference between linkedlist and arraylist in java?
What is the difference between a factory and abstract factory pattern?