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 |
Explain different ways of passing arguments to sub-routine?
What is a private class in java?
What are the differences between c++ and java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What are the principle concepts of oops?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
When will we use them?
What about member inner classes?
What is java’s garbage collected heap?
Can a class have an interface?
What is an eror in java?
Why null interfaces are used in Java?