What is the difference between this() and super()?

Answer Posted / bharathi raja

"this" refers to the current class where as "super" refers directly to its immediate above super class.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the epoch date?

564


What’s the difference between callable and runnable?

537


You're given a Boolean 2D matrix, can you find the number of islands?

589


Explain the difference between private, public, package and protected in java?

590


What are java threads?

612






Does list allow duplicates in java?

512


Explain Basics of OOP Language in java

582


What are the advantages of arraylist over arrays?

559


What is yield () in java?

478


Explain about join() method?

533


Which is fastest collection in java?

557


When throws keyword is used?

576


What is linked hashmap and its features?

535


What is java literals?

572


What are the advantages of java inner classes?

552