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

How do I get the | symbol on my keyboard?

0 Answers  


Difference between the String and StringBuffer classes?

3 Answers  


Explain difference between final, finally and finalize?

3 Answers   Cognizant,


Is java code slower than native code?

0 Answers  


Can java hashmap have duplicate keys?

0 Answers  






What is string :: npos?

0 Answers  


Can java list contain duplicates?

0 Answers  


What is thread life cycle?

0 Answers  


Is it possible to compare various strings with the help of == operator? What are the risks involved?

0 Answers  


Explain tree set and its features?

0 Answers  


Explain java coding standards for methods?

0 Answers  


What does += mean in java?

0 Answers  


Categories