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

How many threads does a core java have?

1120


Is math class static in java?

1152


What is the inheritance?

1020


Which sorting is used in arrays sort in java?

1122


What does bitwise or mean?

1137


How to make object serializable in java?

1029


Can a constructor have different name than a class name in java?

1276


Why arraylist is used in java?

1116


Difference between == and .equals() ?

1035


Can we assign the reference to this variable?

1030


What are the differences between string and stringbuffer?

1176


How do you remove an object from an arraylist in java?

1033


What are the restrictions imposed by a Security Manager on Applets?.

2648


what is the constructor and how many types of constructors are used in java?

1036


What is the difference between Array and Hash Table?

1076