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
Which class should you use to obtain design information about an object in java programming?
What do you mean by platform independence?
What is a static method in java?
What is lambda in java?
What do you mean by ordered and sorted in collections in java?
How do you start a thread?
What is the difference between yield() and sleep()?
How can you share data between two thread in Java?
What is meant by null and void?
Explain the scope or life time of class variables or static variables?
Similarity and difference between static block and static method ?
How do you sort words in java?
What is busy spin, and why should you use it?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
Explain about narrowing conversion in java?