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 / 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 |
What is bean? Where it can be used?
wat is final...? wat is finally...? wat is finalize....? difference between " final and finally and finalize "...?
what is the difference between a threads start() and run() methods? : Java thread
What is the most important feature of java? What is an interface?
What is a parent class in java?
What is getclass () getname () in java?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
What are JVM.JRE, J2EE, JNI?
What are the important features of Java 8 release?
What is mean by UML? what is the use? where we are using?
Can we sort hashmap in java?
Can array grow dynamically in java?