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 can we make string upper case or lower case?

0 Answers  


Is assembly language a low level language?

0 Answers  


Where to store local variables?

0 Answers   Aspiring Minds,


What is a line break?

0 Answers  


What is the difference between Integer and int?

10 Answers   Infosys,






"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)

3 Answers  


why string is not taking as primitive datatypes but we r taking it as a class? why explain it?

2 Answers   HP, SparkTG,


What is an example of a boolean?

0 Answers  


In how many ways we can create threads in java?

0 Answers  


Why declare Main() method as a static in java ?

0 Answers   HCL,


Write a java program to check if a number is prime or not?

0 Answers  


To set the position and size of a component, which methods are used?

3 Answers  


Categories