Tuesday, June 1, 2010

What is the difference between this() and super()?

I have updated in http://www.freejavaclass.com/

this() can be used to invoke a constructor of the same class whereas super() can be used to invoke a super class constructor.

No comments:

Post a Comment

How can instantiate Java interface without implementing.

public interface Foo { String method(); } public class Claaa {    public static void main(String[] args) {     Foo fooByIC...