How are this and super used?

Answer Posted / shripal

this() keyword is use to invoke the current class.
while super() keyword is use to invoke super class.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does jenkins do?

490


What is pre increment and post increment in java?

510


What does exp mean in math?

541


What is parsing in grammar?

566


What is a type parameter in java?

538






Explain about automatic type conversion in java?

575


Where and how can you use a private constructor?

542


What is a copy constructor in java?

585


What is tcp and udp?

608


How do you add an element to an arraylist in java?

492


Which of the following is not an isolation level in the JDBC

1614


What is fail first in java?

578


How do you initialize an arraylist in java?

515


What if I write static public void instead of public static void in java?

583


What interface is extended by awt event listeners?

599