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

Can I learn java without any programming experience?

0 Answers  


Explain when noclassdeffounderror will be raised ?

0 Answers  


Why are global variables used?

0 Answers  


Can arraylist contain null values?

0 Answers  


When finalize method is called?

3 Answers  






What are the kinds of polymorphism?

0 Answers  


How to print a statement without using semicolan in java

6 Answers   HCL, IBM,


What is tochararray in java?

0 Answers  


How do you square a number?

0 Answers  


What is synchronization and why is it important in java programming?

0 Answers  


What is the static field modifier?

0 Answers  


what is sendredirect?

7 Answers   TCS,


Categories