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
What are the benefits of java?
Can we override data members in java?
What are the elements of java?
How does linkedhashmap work in java?
Is java se free?
List out benefits of object oriented programming language?
How do you sort data in java?
How do you compare two strings lexicographically?
What is parsing and its types?
Can we write a class without main method in java?
What is bytecode verifier?
What is merge sort in java?
What is thread count in java?
How to instantiate member inner class?
Why do we create public static method in java?