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

What is arraylist e?

1019


What is JVM and is it platform independent?

988


Does java vector allow null?

895


Does java trim remove newline?

924


What is starvation?

1215


What is final class?

958


Write a code to create a trigger to call a stored procedure

908


You're given a Boolean 2D matrix, can you find the number of islands?

1046


Explain the access modifiers for a class, method and variables?

1091


What does %d do in java?

982


What is the symbol for line break?

1031


Give the hierarchy of inputstream and outputstream classes.

1048


How would you format a date in java? I.e. In the ddmmyyy format?

1317


What environment variables do I need to set on my machine in order to be able to run java programs?

961


What is character in data type?

919