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 / srinu

yes we can overloaded the main() method

public class A
{
public static void main(int a[])
{
System.out.println("overloaded method");
}

public static void main(String a[])
{
System.out.println("main method");
}


output: overloaded method

Is This Answer Correct ?    26 Yes 89 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does singleton mean in java?

952


Is vector synchronized in java?

939


Difference between overriding and overloading in java?

1011


Using callable statement how can you pass out parameters, explain with example?

1169


Why hashmap is used in java?

1018


Does treeset use compareto?

912


what do you mean by classloader in java?

978


What is visibility mode?

898


What is fundamental datatype?

941


What is the meaning of nullable?

971


Can a abstract class be defined without any abstract methods?

937


What is the final variable?

1171


What is locale?

982


What is the difference between array list and vector in java?

901


What is the java reflection api? Why it’s so important to have?

926