Can we inherit inner class?



Can we inherit inner class?..

Answer / Jyoti Pandey

"No, an inner class can not be directly inherited by another class outside the class in which it is defined. However, inner classes can be made accessible to other classes for inheritance by using the 'public' access modifier."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is the difference between static class and singleton class? can we create static class?

2 Answers   L&T, Octazen, Vamsi Labs,


any other way to print the text without using System.out.println() in java?

5 Answers   IBM, Infosys,


How to create an instance of a class without using "new" operator? Plz help me out properly.Thank u.

10 Answers   CSC,


what is mutual exclusion? : Java thread

1 Answers  


How many types of variables are there?

1 Answers  


Can an interface extands a class?

5 Answers  


Can u write constructor in abstract.If yes den when it will be invoked.

4 Answers   SunGard,


Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?

2 Answers  


if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...

10 Answers  


What is called module?

1 Answers  


How do I know if java is installed?

1 Answers  


What is the function of static in java?

1 Answers  


Categories