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 |
Can we use this () and super () in a method?
what is the difference between applet and swing and gui application in java . What we do with the collections set and list interface
2 Answers CTS, Phoenix Technologies,
Which is faster string or stringbuilder?
Difference between the paint() and repaint() methods?
explain about casting of objects?
What is diamond operator in java?
why constructor dont have returns type?
What is the difference between I ++ and ++ I in java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What is a consumer in java?
How to sort elements in a parallel array in java?
Can we synchronize static methods in java?