How are this() and super() used with constructors?

Answer Posted / sunil kishore balla

super() is used to invoke a super class constructor and
this() is used to invoke a constructor of the same class

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

599


What is ide with example?

523


What is a double?

565


What is java ceil?

547


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

575






Are arrays classes in java?

506


What is the difference between static method and instance method in Java?

548


What is an example of procedure?

493


What is the private method modifier?

557


What is the function of compareto in java?

566


Which is better stringbuilder or stringbuffer?

506


what is object-oriented programming in java?

566


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1536


How many bytes is a string?

536


What is the difference between array and array list in java?

583