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

PUBLIC: in this we should access the function inside d class
or outside d class

STATIC:if any method is invoking obj is must.but using
static no obj is necessary.

VOID: void means nothig.in main method we should not declare
any value. so void is return type.

STRING[]ARGS:in java every input consider as a string

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can You Have Virtual Functions In Java?

1137


What is square root in java?

1093


In java, how we can disallow serialization of variables?

989


In java how do we copy objects?

1044


What is the java reflection api? Why it’s so important to have?

976


What is downcasting?

1098


Difference between operator overloading and function overloading

1059


What is lastindexof in java?

1094


What is classname class in java?

1054


Define packages in java?

997


What is the purpose of the strictfp keyword?

1153


What is java ceil?

1025


Describe different states of a thread.

997


What is final access modifier in java?

1135


Can you run java program without main method?

1059