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 files manifesting?
What is a java object and java application?
What is the purpose of static keyword in java?
Can we have try without catch block?
can any body tell me? does advance java and j2ee both are same.
Why we use protected in java?
When will we use them?
can rmi and corba based applications interact ?
What access modifiers can be used for variables?
What is bytecode in java ?
What is pass by value?
What is literal example?