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
Can we write method inside a method in java?
What are the uses of synchronized keyword?
What is binary tree in java?
What is better - 'bit-shift a value' or 'multiply by 2'?
What is static import?
How do you replace a string in java?
Explain, java is compatible with all servers but not all browsers?
Explain the term virtual machine?
Why there are some null interface in java? What does it mean?
What are the two ways in which thread can be created?
What is singleton class in java and how can we make a class singleton?
What is primitive data type in java?
What is the relationship between clipping and repainting under awt?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What are local variables?