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

Why main() method is public, static and void in java ?

0 Answers  


I want to print “hello” even before main is executed. How will you acheive that?

0 Answers  


What are locale settings?

0 Answers  


There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple Inheritance? please anybody help me.....

5 Answers  


Difference between keyword and identifier.

0 Answers   TCS,






what is AWT

3 Answers  


What is the difference between notify and notifyall method?

0 Answers  


what is the difference between pagecontext and servletcontext?

5 Answers   JBA Infotech, TCS,


What is the latest java version?

0 Answers  


What is the difference between java applets and applications?

0 Answers  


State one difference between a template class and class template.

0 Answers   HAL,


What is finalize()?

0 Answers  


Categories