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

Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

1032


What is the difference between logical data independence and physical data independence?

980


What are the two types of exceptions in java? Which are the differences between them?

1036


Explain the difference between arraylist and linkedlist in java?

916


What is a class component?

1114


What are the basics of core java?

960


Is char a method in java?

1016


What are kinds of processors?

934


How do you add an element to an arraylist in java?

882


What is the different types of functions?

990


How does a for loop work?

942


Explain reverse a linked list recursive java solution?

935


What is meant by binding in rmi?

956


Is java still relevant?

932


What does this () mean in constructor chaining concept?

1054