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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what about jdb and javadoc by example ?

1709


What is an actionevent in java?

454


What is java lang exceptionininitializererror?

492


Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why

465


What is the difference between a while statement and a do statement?

492






What is static class in java?

505


1.can i use super keyword in normal class(not inheritance) to call any method?if so how can i call particular variable? 2.In the inheritance how can i access the particular variable from the base class(it containing 5 variables) using super keyword?

1658


Why struts framework is used in java?

427


What is lsdou? : java security

534


What is data persistence in java?

628


What is orm in java?

506


What is type_scroll_insensitive in java?

482


What does jpa mean?

498


What is the use of flatmap?

517


What is web xml java?

513