What is the difference between this() and super()?
Answer Posted / gcttcs
Super should be used only in the sub classes and super() is
used to point methods of super class. where as this can be
used in both super & sub classes and this() used to point
methods in the class where it is called.
| Is This Answer Correct ? | 28 Yes | 6 No |
Post New Answer View All Answers
What is the use of default method in interface in java? Explain
Explain the usage of this with constructors?
whatis Home interface and Remoteinterface? with example?
State the main difference between c++ and java?
Can a source file contain more than one class declaration?
What method is used to specify a container's layout in java programming?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
Are arrays immutable in java?
What are meta-annotations?
explain local datetime api in java8?
What is the size of integer?
What are loops in java? What are three types of loops?
How can I debug the Java security exceptions and AccessControlExceptions?
Does constructor return any value?
What is the protected method modifier?