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...

why we write public static void main (String args[])
in core java plz explain briefly??????????????????

Answer Posted / sreenivas p

JVM looks for the main method(from where it starts
execution) with the same signature(public static void
main(String args[])) if it coud not find throws
NoSuchMethodError.
valid signatures are:
public static void man(String args[])
static public void main(String a[])
Invalid signatures
static void main()
public static main(String args[]) etc..[treats these
are all as general methods ]

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain throw keyword in java?

999


What is object cloning in Java?

1065


How do you define a singleton class?

1020


How do I get the | symbol on my keyboard?

1034


Does importing a package imports its sub-packages as well in java?

935


Can a class have multiple constructors?

968


How many return statement are allowed in a function?

889


Is cout buffered?

1120


What are abstract methods in java?

1075


What language is java written?

971


What is comparable and comparator interface? List their differences

1042


Break statement can be used as labels in java?

958


How to sort an array from smallest to largest java?

953


What is meant by 'bit masking' in java?

1124


What is the synonym of procedure?

1032