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

Explain about wait() method?

1 Answers  


Explain the importance of throws keyword in java?

1 Answers  


What happens if an exception is not handled in a program?

1 Answers  


Are maps ordered java?

1 Answers  


How many Java environments are there?

1 Answers   Phantom Technologies,


What are the new features in java 8? Explain

1 Answers  


INTERVIEW QUESTION FOR ANDROID

0 Answers  


Consider that class classA, abstract class classB, and final classC have been defined.Which one of the following is correct? 1. classA extends classC implements classB 2. class A extends classB, classC 3. classA extends classB 4. classB implements classC

2 Answers  


Are floats faster than doubles?

1 Answers  


How is final different from finally and finalize?

1 Answers  


what is the purpose of using rmisecuritymanager in rmi?

1 Answers  


What is visibility mode?

1 Answers  


Categories