An inner class can actually be a subclass of the outer class?

a. true
b. false

Answers were Sorted based on User's Feedback



An inner class can actually be a subclass of the outer class? a. true b. false..

Answer / guest

true

Is This Answer Correct ?    7 Yes 2 No

An inner class can actually be a subclass of the outer class? a. true b. false..

Answer / 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

More Core Java Interview Questions

WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?

2 Answers  


What is the purpose of the system class in java programming?

0 Answers  


Which methods cannot be overridden in java?

0 Answers  


Do you know how to reverse string in java?

0 Answers  


Similarity and difference between static block and static method ?

0 Answers  


what is inner class in java?

0 Answers   IBS,


what do you mean by java annotations?

0 Answers  


Implement a stack with push (), pop() and min() in O(1) time.

0 Answers   Amazon,


Which is the best way of exception handling?

2 Answers   Oracle,


What are the differences between c++ and java?

0 Answers  


Difference between this(), super()?

12 Answers   College School Exams Tests, Oracle,


Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface?

4 Answers   Satyam,


Categories