How are this() and super() used with constructors?
Answer Posted / ranganathkini
this() - is used to invoke one constructor from another
constructor.
super() - is used to invoke the super class's constructor
from the subclass's constructor
| Is This Answer Correct ? | 21 Yes | 2 No |
Post New Answer View All Answers
What is meant by object?
What is gui programming?
What is meant by data hiding in java?
What is the use of join method?
Explain throw keyword in java?
What is difference between equal and == in java?
How can a gui component handle its own events?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
How do you reverse a string in java without using string buffer?
Is boolean a wrapper class in java?
What is the range of the short type?
What is diamond operator in java?
How do you use parseint in java?
What is the difference between hashmap and hashtable? What is an interface?
How does enum work in java?