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 does jenkins do?
Which method cannot be overridden in java?
What is the maximum length of a url?
How many types of the indexof method are there for strings?
what is request processor?
What are the features of junit?
What is remote method invocation (rmi)?
What is static and final keyword in java?
Explain java coding standards for constants?
why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class?
2 Answers Global Logic, Satyam,
What is queue in java?
Is main a function?