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 / aditya sharma

* Yes we can overload the main method.

File Name :- checkOverloadingMainMethod.java
Example: -

public class checkOverloadingMainMethod {

public static void main(int a[]) {
System.out.println("Overload =>Integer Array");
}

public static void main(String args[]) {
System.out.println("Overload => String Array");
}
}

Is This Answer Correct ?    120 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an anonymous class in java?

1102


What is a nonetype?

1128


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1071


What is indexof?

983


What is string in java with example?

1020


Differece between class and generic class?

1041


What state is a thread in when it is executing?

960


What is difference between iterator and enumeration in java?

996


What are the two categories of data types in the java programming language?

985


What are selection structures?

1000


What is difference between static variable and global variable?

1065


How listener identify that the event came from a particular object?

1995


Does java vector allow null?

955


What is anonymous inner class?

1083


Why java uses the concept of the string literal?

1059