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 why we write public static void main(String args[])
why not main()?

Answer Posted / srinu

public static void main(String args[]) the meaning is

public:- Actually the main()method will be called by JVM .so
JVM is located other place so JVM will called by our main()
its public

static: with our object creation run our main()method so
thats its static

void:our main() method can't any return type thats its void

String args[]:. To get command_line arguments

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lastindexof in java?

1171


What is the default value of byte datatype in java?

976


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

1036


Is math an abstract class in java?

1077


What is a method signature java?

1109


How do I find and replace in word?

1025


What are meta-annotations?

1042


What is a blocking method in Java?

1315


What is Session reduplication and how its done?

2084


What is the purpose of the System class?

1041


Why is singleton class used?

1085


Explain about the performance aspects of core java?

1109


What is the difference between iterator and enumeration ?

1042


What is the purpose of the runtime class in java programming?

1117


What are data types in oop?

1079