Difference between this(), super()?

Answer Posted / anil kumar singh

1: 'this' keyword is only use to call to parametic
constructors within the same class.

2: 'super' keyword is use to call to parametric
constructors of base class.

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is meant by encapsulation?

638


What are some characteristics of interference class?

529


Can we extend singleton class in java?

558


How can we make a class virtual?

651


Difference between overriding and overloading in java?

589






What is final?

613


What does the “static” keyword mean?

591


Explain about strings in java?

628


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

642


What is queue in java?

562


What is the difference between inner class and nested class?

557


Why do we override tostring method in java?

519


Can you instantiate the math class?

608


For class CFoo { }; what default methods will the compiler generate for you>?

629


What are the new features in java 8? Explain

569