Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which class should you use to obtain design information about an object in java programming?

1132


What do you mean by platform independence?

1114


What is a static method in java?

1094


What is lambda in java?

1159


What do you mean by ordered and sorted in collections in java?

1039


How do you start a thread?

1098


What is the difference between yield() and sleep()?

1065


How can you share data between two thread in Java?

983


What is meant by null and void?

1035


Explain the scope or life time of class variables or static variables?

1038


Similarity and difference between static block and static method ?

973


How do you sort words in java?

990


What is busy spin, and why should you use it?

1128


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

1067


Explain about narrowing conversion in java?

1059