How are this() and super() used with constructors?
Answer Posted / bhadresh
this() use to invoke only same class constructor.
super() use to invoke super class constructor.
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What are drawbacks of singleton class?
Explain the public class modifier?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
How do you do descending order in java?
Can we execute java program without main method?
What is the difference between JVM and JRE?
What is a local class in java?
What is the difference between preparedstatement and statement in java?
What is difference between pointer and reference?
Difference between concurrent hashmap and hashtable and collections
What is the most important feature of java? What is an interface?
What is a treeset in java?
What is the use of generics? When was it added to the Java development Kit?
How to set the permissions to a file in java?