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

How does java enable high performance?

1197


What does sprintf return?

1114


What do you understand by soft reference?

1098


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1158


What is an array length?

956


What is proper subset?

1018


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

1030


What is hash code collision?

1103


What are class types in java?

1111


does java support pointers?

1045


Which of the following classes will have more memory allocated?

1062


What are adapter classes?

1102


Why object class is super class for every class in java?

1081


What do you understand by the term polymorphism?

1128


Is overriding possible in java?

1005