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 Posted / 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 View All Answers
What is the definition of tree ?
Can we assign null to double in java?
What is the benefit of inner classes in java?
Can a class be private or protected in java?
Can private class be extended java?
What is starvation?
What is the use of callablestatement?
Is integer immutable in java?
What is remote method invocation (rmi)?
What is the purpose of return statement?
How to solve the problem of generating the unique hash keys with hash function?
What are the access modifiers in java?
What is a subsequence of a string?
Explain about member inner classes?
Is a copy constructor?