What is the difference between Super and This Keyword?

Answer Posted / skp

Call to super() should be the first statement in constructor instead of this(), otherwise it will result in compile-time error.

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 handle?

1857


How a component can be placed on Windows?

2268


Why do threads block on i/o?

686


Where can I ask questions and make suggestions about seam?

594


Do I need to import javlang package any time? Why ?

629






What is TL and its use?

1993


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1761


Do I have to use jsps with my application?

584


What classes of exceptions may be caught by a catch clause?

557


What is permgen or permanent generation?

587


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1369


what are getters and setters in Java with examples?

1288


Define aop(assepct oriented programing)?

644


Brief description about local interfaces?

630


what is an isolation level?

2216