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

How many bytes is 255 characters?

984


Which is bigger double or float?

973


What is an object’s lock and which object’s have locks?

967


What is the use of beaninfo?

1047


How can a gui component handle its own events in java programming?

1046


Can we have more than one package statement in the source file?

1060


What is arrays sort in java?

967


How will you reverse a singly-link list?

1009


What is the dot operator?

1003


Why a dead thread occurs?

980


Implementations of set interface?

1015


What are keywords and reserved words in java?

1063


What differences exist between iterator and listiterator?

1049


What is included in core java?

1059


What is vector capacity in java?

1089