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

Why can't we override private static methods?

922


What do you understand by the bean persistent property?

948


How are the elements of a gridbaglayout organized?

992


What are format specifiers in java?

992


When do we use synchronized methods in java?

990


What is contract between hashcode and equal method?

978


What do you mean by constant time complexity?

1135


Which variable is the independent variable?

924


How does remove work in java?

906


Explain what pure virtual function is?

970


What is the best way to findout the time/memory consuming process?

973


Can a class be private or protected in java?

999


What one should take care of, while serializing the object?

849


Is space a char?

880


Why do we need autoboxing in java?

937