hoe can u call a constructor of a private classs to other
inherited claa??



hoe can u call a constructor of a private classs to other inherited claa??..

Answer / ditendra

class can't be private if it is not a inner class .
we can call constructor of inherited class from private
inner class using super()method.

Is This Answer Correct ?    18 Yes 0 No

Post New Answer

More Core Java Interview Questions

Does java have extension methods?

0 Answers  


What is the difference between an array and an array list?

0 Answers  


What is the use of collections in java? How it is implemented in real time applications?

2 Answers  


What are different types of classloaders?

0 Answers  


Can we override private method in java?

0 Answers  






IN java collections we have both interfaces and classes. instead of using interfaces why we can't use classes only like that why we can't use interfaces only. why we need two things interface and class.

6 Answers   Accenture, CTS,


What is character in data type?

0 Answers  


What is the basic concepts of OOPS?

0 Answers   BlackRock,


Why is serialization required?

0 Answers  


when you will synchronize a piece of your code? : Java thread

0 Answers  


What are virtual methods?

1 Answers   TCS,


Which method must be implemented by all threads?

0 Answers  


Categories