I've seen many code samples on both this forum and on other webpages which use the "this" keyword when calling methods that have been inherited. Is this really necessary?
Here's a code example:
Just a small question which I'm a little perplexed about...Code:public class Example extends JFrame {
public Example() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Both compile and work but does the "this" keyword make any difference?
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}

