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
hr interview how many minutes asking question
How do you remove an object from an arraylist in java?
what are synchronized methods and synchronized statements? : Java thread
Why is a string immutable?
What do you mean by hashing?
What is the benefit of inner classes in java?
How dead lock situation occurs in java and how you can identify it?
Which class should you use to obtain design information about an object in java programming?
How to restrict a member of a class from inheriting by its sub classes?
What is the purpose class.forname method?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
What is the effect of keeping a constructor private?
Can a constructor call the constructor of parent class?
How to run a JAR file through command prompt?
Is boolean a wrapper class in java?