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
I want to re-reach and use an object once it has been garbage collected. How it's possible?
how does the run() method in runnable work? : Java thread
Why put method is idempotent?
What function extracts specified characters from a string?
How many inner classes can a class have?
Can we have any code between try and catch blocks?
Do we need to manually write Copy Constructor?
What is a private class in java?
What Is Query Throttling in java?
How many bits is a 64 bit byte?
What two classes are used to read data only?
Why is java not 100% pure oops?
What is string immutability?
How to add menushortcut to menu item?
What is string data type?