Difference between this(), super()?
Answer Posted / nikhlesh gupta
this() call one of user define constructor inside another user constructor of the same class such as this(a), this(a,b) & so on.
super() call one of base class constructor inside the derive class constructor such as super(a), super(a,b) & so on.
| Is This Answer Correct ? | 26 Yes | 5 No |
Post New Answer View All Answers
When would you use a static class?
What is a locale?
What are facelets templates?
what is the difference between yielding and sleeping? : Java thread
What is the replace tool?
What are the important features of Java 8 release?
Can we override private method in java?
Can a hashset contain duplicates java?
Why char array is preferred over string for storing password?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
What is difference between word and integer?
What are the advantages and disadvantages of object cloning?
what do you understand by synchronization? : Java thread
What are the advantages and disadvantages of reference counting in garbage collection?
What is the benefit of singleton pattern?