Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

"this" and "super" keyword

843789Jul 22 2010 — edited Jul 22 2010
Hello,

I apologize for having to ask what's probably a very basic question, but I really don't understand what the this keyword is supposed to do. It is defined as referring to the current object, but then from my understanding when executing a Java application, you are in fact executing the object of the class rather than the class itself. So what's the difference between using this and simply the variable name?

Also, by extension, if I understand correctly, does the super keyword mean that it suppresses the method being overriden?

Any help that would point me in the right direction would be great!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2010
Added on Jul 22 2010
10 comments
409 views