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
What happens if an exception is not handled in a program?
What is ide with example?
What is a double?
What is java ceil?
Why main() method is public, static and void in java ?
Are arrays classes in java?
What is the difference between static method and instance method in Java?
What is an example of procedure?
What is the private method modifier?
What is the function of compareto in java?
Which is better stringbuilder or stringbuffer?
what is object-oriented programming in java?
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.
How many bytes is a string?
What is the difference between array and array list in java?