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
What is a null point?
How many bytes is a unicode character?
What is the current version of java?
What is garbage collection? What is the process that is responsible for doing that in java?
When does a class need a virtual destructor?
What are different exception types exceptions available in java ?
Can a abstract class be declared final?
Differentiate between postfix and prefix operators in java.
Explain java code for recursive solution's base case?
What is double in java?
What type of variable is gender?
Explain the different forms of polymorphism?
Is call by reference possible in java?
describe synchronization in respect to multithreading? : Java thread
What are register variables what are the advantages?