How are this and super used?

Answer Posted / sucharitha

this() is used to invoke present class constructor.Super()
is used to invoke super class Constructor.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is hashset ordered?

540


How do you use spaces in java?

516


Explain the difference between abstraction and encapsulation.

530


Is arraylist sorted in java?

520


What is api data?

524






When does a class need a virtual destructor?

524


How can we make sure main() is the last thread to finish in java program?

655


Java Compiler is stored in JDK, JRE or JVM?

1041


What do you mean by static variable?

562


Explain differences between collection api and stream api?

600


What is the purpose of garbage collection in java? When is it used?

530


What is a stringbuffer?

502


What is the size of boolean variable?

564


Explain parallel processing in java8?

622


What is the full name of java?

559