In Java, what are this() and super(), and where are you required to use them?
Answer Posted / glibwaresoftsolutions
Super() and this() are special keywords in Java that are used to invoke the constructor. This() and super() must appear as the block's initial line.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how many types of Inheritance?
Can a static class have a constructor java?
What is Mutex (Mutual Exclusion Object) ?
How infinite loop is declared?
What is replaceall in java?
How do you escape in java?
Can java hashmap have duplicate keys?
Difference between default and protected access specifiers?
Can a hashset contain duplicates java?
Which package is always imported by default?
Define an abstract class with reference to java.
Explain how hashmap works?
Explain what is encapsulation?
Which class contains a method: cloneable or object?
What is JVM and is it platform independent?