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?

Answers were Sorted based on User's Feedback



Explain Public static void main?..

Answer / 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

Explain Public static void main?..

Answer / ravikiran(aptech mumbai)

public-this method is accessible in all the classes
static-this method is called before creation of any instance
void-this method doesn't return any thing
main-Is the name of the method

Is This Answer Correct ?    58 Yes 19 No

Post New Answer

More Core Java Interview Questions

where is .equals() method and how is it different from == operation <giving some confusing implementation> Is hashing related to these?

4 Answers   iFlex,


How many types of exception can occur in a java program?

0 Answers  


Where is jre installed?

0 Answers  


Is Java is 100% pure OOPS? Explain?

27 Answers   ANZ,


wahts is mean by thread?

22 Answers   HCL, TCS,


What is indexof?

0 Answers  


Can we declare a class as static?

0 Answers  


How can you read an integer value from the keyword when the application is runtime in java? example?

0 Answers   HCL,


Why string is not thread safe?

0 Answers  


What is “try and catch” in java

2 Answers  


What is string builder in java?

0 Answers  


What do you know about the garbage collector in java?

0 Answers   TCS,


Categories