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

how to prepare for IT Officers Interview in Banks

2019


How is string stored in java?

1119


What is jrmp?

1005


Why is stringbuffer faster than string?

964


What is a treemap in java?

1064


What is variable declaration and definition?

1063


What is module in project?

1027


How do you remove all elements from an arraylist in java?

1099


What does sizeof return?

1036


Difference between arraylist and vector.

1180


What is sorting algorithm in java?

1148


What are the escape sequences in java?

1074


What methods are used to get and set the text label displayed by a button object?

1069


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

2240


how to run ecllipse with jettyserver for windows environment using batch file

2147