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 exception chaining in java?

1172


What is methodological framework?

1046


How to make a non daemon thread as daemon?

1059


What is bubble sort in java?

1056


Which keyword specify that a variable is effectively final ?

994


How many bytes is string in java?

1253


Why is static used?

1029


What does exclamation mean in java?

1102


Which one of the following suits the description of a string better: derived or primitive?

953


What do you understand by the term polymorphism?

1081


What is difference between float and double?

963


What is a Hash Table? What are the advantages of using a hash table?

1088


what is the constructor and how many types of constructors are used in java?

1004


How do we access static members in java?

1111


What is java instanceof operator?

1045