How to excute - Interface - Inner class- method

can any one tell how to execute/ call this main method

public interface abc
{
static int i=0; void dd();
class a1
{
a1()
{
int j;
System.out.println("inside");
};
public static void main(String a1[])
{
System.out.println("in interfia");
}
}
}

Answer Posted / lal ajith kumara

public class Test {
public static void main(String args[]){

abc.a1 classa1 = new abc.a1();
classa1.main(null);
}

}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a null point?

550


How many bytes is a unicode character?

496


What is the current version of java?

532


What is garbage collection? What is the process that is responsible for doing that in java?

643


When does a class need a virtual destructor?

524






What are different exception types exceptions available in java ?

471


Can a abstract class be declared final?

558


Differentiate between postfix and prefix operators in java.

634


Explain java code for recursive solution's base case?

564


What is double in java?

506


What type of variable is gender?

537


Explain the different forms of polymorphism?

559


Is call by reference possible in java?

527


describe synchronization in respect to multithreading? : Java thread

491


What are register variables what are the advantages?

441