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 the preferred size of a component?
What is compareto?
Can a double value be cast to a byte?
Does string isempty check for null?
What is the difference between the prefix and postfix forms of the ++ operator?
How many static init can you have?
What is the transient keyword?
Difference between current previous versions of Java?
Default layout of Dialog object?
What is casting?
What is files manifesting?
Why java does not supports multiple inheritance?