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
Can we pass null as argument in java?
What is the purpose of finalization in java programming?
What is the final keyword denotes?
Which package is always imported by default?
How do you sort a string in java?
What is the functionability stubs and skeletons?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What is a generic type?
What are different types of arrays?
What modifiers are allowed for methods in an interface?
Is void a type?
What is functional interface in java example?
Define how objects are stored in java?
What are the main differences between notify and notifyAll in Java?
how are methods defined?