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 is the difference between int and integer in java?
What are void methods?
Explain listiterator and methods in listiterator?
Write a java program for binary search?
When is finally block not called?
Explain restrictions on using enum?
What methods are used in Servlet?Applet communication?
What is the purpose of static keyword in java?
Is it possible to override the main method?
What is the difference between overriding & overloading?
What is meant by class?
Can a abstract class be defined without any abstract methods?
What classes of exceptions may be caught by a catch clause in java programming?
What are three advantages of using functions?
Is 0 a prime number?