If one class havent the constructor, it has normal method,
then can i use super keyword to call the method form the
sub class and vice verse?

Answers were Sorted based on User's Feedback



If one class havent the constructor, it has normal method, then can i use super keyword to call th..

Answer / srikanth

no,without constructer we cant call super class members

Is This Answer Correct ?    1 Yes 0 No

If one class havent the constructor, it has normal method, then can i use super keyword to call th..

Answer / nivas

yes.we can use it.for ever class super class should be called

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Java Related AllOther Interview Questions

Are there tuples in java?

0 Answers  


What is the difference between the boolean & operator and the && operator?

0 Answers  


Explain issues of old java date api?

0 Answers  


What is jpa project?

0 Answers  


What is java persistence api used for?

0 Answers  






what is transient variable?

5 Answers  


What is mime in java?

0 Answers  


How can I protect myself? : java security

0 Answers  


What is data encapsulation?

0 Answers  


How do you find lambda?

0 Answers  


Sytem.out.println(" "); this code what mean

2 Answers  


What is an action class in java?

0 Answers  


Categories