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

Program to Find the second largest element in an array.

1109


When arithmeticexception is thrown?

965


What is tree node in java?

922


What lambda means?

937


What is java algorithm?

880


What is a conditional equation?

971


What is hashtable and explain features of hashtable?

942


What do you mean by an object in java?

1077


What is the use of protected in java?

975


Where is java located?

980


What is the main purpose of serialization in java?

968


What is the difference between stringbuffer and stringbuilder class?

1034


What is the java idl system?

988


Differences between C and Java?

1116


How do you override a variable in java?

1041