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
Differentiate jar and war files?
Which graphs are functions?
Does garbage collection occur in permanent generation space in jvm?
Does java arraylist maintain insertion order?
What do you understand by Header linked List?
In a container there are 5 components. I want to display all the component names, how will you do that?
Variables used in a switch statement can be used with which datatypes?
What is main in java?
Write a program in java to create a doubly linked list containing n nodes.
What is the epoch date?
Define nashorn in java8.
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
Explain about join() method?
Explain the importance of finally over return statement?
What is the difference between error and an exception?