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");
}
}
}



How to excute - Interface - Inner class- method can any one tell how to execute/ call this main m..

Answer / 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

More Core Java Interview Questions

What is bean? Where it can be used?

0 Answers  


wat is final...? wat is finally...? wat is finalize....? difference between " final and finally and finalize "...?

2 Answers  


what is the difference between a threads start() and run() methods? : Java thread

0 Answers  


What is the most important feature of java? What is an interface?

0 Answers  


What is a parent class in java?

0 Answers  






What is getclass () getname () in java?

0 Answers  


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

0 Answers  


What are JVM.JRE, J2EE, JNI?

0 Answers  


What are the important features of Java 8 release?

0 Answers  


What is mean by UML? what is the use? where we are using?

1 Answers   Eka Software,


Can we sort hashmap in java?

0 Answers  


Can array grow dynamically in java?

0 Answers  


Categories