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

there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

0 Answers   Sapient,


What is cache in java?

0 Answers  


explain how java se 8 data and time api solves issues of old java date api?

0 Answers  


What is scrollable resultset in java?

0 Answers  


what about jdb and javadoc by example ?

0 Answers   TCS,






What is flatmap in java8?

0 Answers  


What is servlets.

10 Answers   HCL, Infosys,


What is the java api?

0 Answers  


How does java handle integer overflows and underflows?

0 Answers  


Why java?

0 Answers  


How do I enable java in google chrome?

0 Answers  


Why sun introduce concept of anonymous class? What is need and real life use of anonymous class

0 Answers  


Categories