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");
}
}
}



How to excute - Interface - Inner class- method can any one tell how to execute/ call this main m..

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

Post New Answer

More Core Java Interview Questions

What is thread pool in java with example?

0 Answers  


When do you create an index?

0 Answers  


what modifiers are used with top-level class?

2 Answers  


Can you instantiate the math class in Java?

0 Answers   IBS,


What classes of exceptions may be caught by a catch clause in java programming?

0 Answers  






Can we create our own daemon thread?

0 Answers  


why java does not support multiple inheritance

41 Answers   Diamond, Euclid, Evergent, KLKJ, Mind Tree, NIIT, SSI Small Scale Industries, Wipro,


Java is based on pass by reference or pass by value ..

6 Answers   L&T, Wipro,


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

0 Answers   Akamai Technologies,


What is the default value of an object reference declared as an instance variable?

0 Answers  


What is jee6?

0 Answers  


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).

0 Answers  


Categories