This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
hi,i think anonymous class can't extends class and can't implements interface explicitly.but anonymous class can implements interface implicitly. for ex: interface A implements interfaceB{}
new A(){}
anonymous new A(){} implicitly implements interfaceB
actually,i found "public Object()" in the class object.do nothing. why somebody do like that put a "super()" method in a class constructor without concrete parent class?
can anybody help me ? a class has not parent class but in the constructor has a "super()" method. what "super()" method do? as well known all class extends class object.i have not found "object()" construct method in the class object. Look the follow code. public class ttt {
I agree four objects. line 1:two x and new String("abc"); line 2 ne "abc" and y a same Object.but before y should have "String". line 3 ne x + y has a new Object