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

Can we pass null as argument in java?

931


What is the purpose of finalization in java programming?

1022


What is the final keyword denotes?

1099


Which package is always imported by default?

1087


How do you sort a string in java?

948


What is the functionability stubs and skeletons?

1138


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1691


What is a generic type?

1002


What are different types of arrays?

1006


What modifiers are allowed for methods in an interface?

1141


Is void a type?

971


What is functional interface in java example?

971


Define how objects are stored in java?

1045


What are the main differences between notify and notifyAll in Java?

1076


how are methods defined?

1032