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

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

What is the size of integer?

1094


What about abstract classes in java?

1066


What is difference between Heap and Stack Memory?

1052


What are measurable parameters?

1079


How do you override a private method in java?

983


Do we need to manually write Copy Constructor?

1033


Which data type is class in java?

1018


How do you insert a line break?

908


What is a copy constructor in java?

1127


What is variable and rules of variable?

1021


Explain importance of finally block in java?

1040


Which is easier .net or java?

1084


explain the difference between jdk and jvm?

999


Is there any difference between synchronized methods and synchronized statements?

1099


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

1079