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 is meant by design patterns?

977


Why can we not override static method?

1063


What is a values collection view ?

1030


Can variables be used in java without initialization?

1019


Is namespace same as package in java?

935


Explain 5 io best practices?

979


What's the difference between comparison done by equals method and == operator?

914


Is the empty set a singleton?

910


What is the main method java?

968


How can we create objects if we make the constructor private ?

949


What is the main purpose of serialization in java?

967


What is meant by nested loop?

976


What is a heavyweight component?

977


List the features of java programming language.

971


please send me hr interview questions in it industry

2062