In Java, what are this() and super(), and where are you required to use them?
Answer Posted / nashiinformaticssolutions
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
What is purpose of find feature?
What is string in java with example?
What are the two ways to create a thread?
Can final class have constructor?
What is the function of compareto in java?
How do you format in java?
Why java applets are more useful for intranets as compared to internet?
What is thread safe java?
Is integer passed by reference in java?
Can we clone singleton class in java?
What are the four pillars of java?
What is a instance variable in java?
How do you write a conditional statement?
Can you inherit from an abstract class java?
What do you mean by data type?