yes u can do it with no problem
by using anonymous classes u can implement this.
I am writing the code to ur problem.
interface int1{
int meth1();
}
interface int22{
int meth1();
}
public class Applic implements int1 int22
{
public int meth1(){
System.out.println( this is the method present in int1 interface implemented class; );
return 5;
}
// it is the one of the Syntax if u want to create a object to a class that extending int 22 interface.
static int22 i22 new int22(){
public int meth1()
{
System.out.println( this is the method developed in int 22 );
return 6;
}
};
public static void main(String args[])
{
i22.meth1();//it calls the meth1 present in interface int22 implemented class.
Applic c new Applic();
c.meth1();
}
I hope this is the right answer u have know better than this pls post