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

Can we use synchronized block for primitives?

614


Explain an algorithm to find depth of a binary tree.

556


How do you create a method in java?

553


What is the epoch date?

577


What is udp in java?

537






What are thread safe functions?

518


What is meant by call by reference?

517


Can list contain null in java?

633


How do you declare a destructor in java?

514


What are the Class Libraries ?

601


Does set allows null in java?

512


What is n in java?

543


What is an eror in java?

564


What are java annotations?

653


What are java threads?

625