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

Explain Public static void main?

Answer Posted / ranganathkini

public static void main( String[] args )

1. public - declares that the main method is publicly
accessible to other classes

2. static - declares that the main method can be invoked
without creating an instance of the class

3. void - declares that the main method does not return any
value.

4. main - defines the name of the method

5. String[] args - defines a parameter to the main method
which will contain any command line options passed by the
user when invoking the progam.

These command line options will be passed to the program as
an array of string objects.

Is This Answer Correct ?    182 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jpa specification?

1027


Can inner class final?

1157


How do you format in java?

1043


Can you pass functions in java?

1076


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

1140


Explain the difference between jvm and jre?

1076


What are the default and parameterized constructors?

1103


How is a variable stored in memory?

1067


Write a function to print Fibonacci series and Tribonacci series?

1217


Difference between comparator and comparable in java?

1159


What is the difference between menuitem and checkboxmenu item?

1378


What are the five major types of reference sources?

1191


What happens when a thread cannot acquire a lock on an object in java programming?

1071


What are the various access specifiers in java?

1051


How many types of memory areas are allocated by jvm?

1086