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


Please Help Members By Posting Answers For Below Questions

Can we write method inside a method in java?

519


What are the uses of synchronized keyword?

551


What is binary tree in java?

524


What is better - 'bit-shift a value' or 'multiply by 2'?

690


What is static import?

591






How do you replace a string in java?

538


Explain, java is compatible with all servers but not all browsers?

602


Explain the term virtual machine?

583


Why there are some null interface in java? What does it mean?

640


What are the two ways in which thread can be created?

592


What is singleton class in java and how can we make a class singleton?

562


What is primitive data type in java?

535


What is the relationship between clipping and repainting under awt?

602


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

525


What are local variables?

587