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 |
What is a native method?
What type of variable is gender?
What modifiers are used with an inner class which is a member of an outerclass?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
How to use string tokenizer class.
What does || || mean in math?
What is the difference between overloading and overriding a function?
13 Answers eG Innovations, Infosys, TCS,
What are types of Java applications?
Life Cycle of Thread
What is an abstract class?
What is an empty class? What functionality does it offer in Java?
0 Answers Deloitte, EXL, JPMorgan Chase,
what are three ways in which a thread can enter the waiting state? : Java thread