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

In Java, what are public static void main string args?

Answer Posted / glibwaresoftsolutions

The access modifier "public" is used to define who has access to this method. Any class can use this method as well.
• The Java keyword "static" indicates when something is class-based. Java makes main() static so that it can be accessed without requiring the creation of a class instance. Since the JVM calls main() before creating any objects, the compiler will raise an error if main is not set to static. It can only use the class to directly call static methods.
• The method that defines the method's return type is called Void. There is no value returned by that procedure.

• Main is the name of the method that the JVM looks for when an application (with a certain signature only) starts. It is

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about anonymous inner classes ?

1023


What is the difference between the ">>" and " >>>" operators in java?

940


Which category the java thread do fall in?

953


Can we sort hashmap in java?

909


How do you add spaces in java?

949


What are the advantages of compiled language?

1026


What is super in java?

949


Which is the best approach for creating thread ?

1144


When do we use hashset over treeset?

998


Can you declare a private method as static?

1104


What is the base class for error and exception?

952


Why multiple inheritance is not supported by java?

937


What is an array in java?

1136


Does collectionutils isempty check for null?

1377


When is the finally clause of a try-catch-finally statement executed?

996