Hi Jothi Shankar ,
I think your current problem has nothing to do with all the interfaces and every other thing...
Its as simple as this ::
This will work ->class test {
public static void main(String args[]) {
Object obj = new Object();
test t = new test();
obj = t;
}
} But this certainly wont -> class test {
public static void main(String args[]) {
Object obj = new Object();
test t = new test();
t = obj;
}
} You should know the very basic principle and that spells :: "you can not assign a parent reference to a child class " and Object class is the parent of all classes ,thats it.
I hope this satisfies you...