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

Which class is the superclass for every class in java programming?

996


How do you declare a destructor in java?

999


What is void class in java?

974


What is a instance variable?

1062


Explain about exception propagation?

1034


What is the primitive type byte?

1006


Explain the inheritance?

970


What is thread pool? How can we create thread pool in java?

1067


Can java inner class be static?

1020


Can long be null in java?

1015


what is meant by Garbage collection?

1092


What are the string methods in java?

1096


What is singleton class in ruby?

1016


What is the use of toarray () in java?

1071


What about interrupt() method of thread class ?

1069