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

Can u overload main()method.Give with example.

Answer Posted / manikandan [ gtec,vellore ].

yes,gothrough below code.

class test
{
public static void main(String []asdff)
{

test.a();

}
public static void main(int a,int b)
{
System.out.println("over loaded");
}
static void a()
{

test.main(1,2);
}
}

Is This Answer Correct ?    40 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does flag mean in java?

1021


Does sprintf add a null terminator?

1095


What are the basics of core java?

1013


Which containers use a flowlayout as their default layout in java programming?

1007


What is a concrete classes? Is Java object class is concrete class?

975


Explain how hashmap works?

1061


Mention some features of java?

957


What is a java developer salary?

973


Why super is first line in java?

1046


What is comparator in java?

1000


In how many ways we can do synchronization in java?

961


What is a null check?

991


What is the use of a copy constructor?

986


Difference between stack and queue?

1073


What is difference between final and finally in java?

1076