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

Is a char always 1 byte?

992


What is the symbol for line break?

1099


What is the basic concepts of OOPS?

1204


what methods would you overwrite in java.lang.object class?

1006


Discuss 2D arrays.

1051


Why chararray() is preferred over string to store the password?

1028


What is size () in java?

1094


What does s mean in regex?

1019


how to create multithreaded program? Explain different ways of using thread? : Java thread

999


How will you compute size of a structure?

1184


What is the concatenation operator in java?

1160


Differentiate between run time error and syntax error.

1141


Can a serialized object be transferred via network?

963


Can Exception handling we can handle multiple catch blocks?

1043


What is another word for methodology?

1017