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

What do you understand by Header linked List?

1107


What does java stand for?

1125


What is java string pool?

1006


Explain wait(), notify() and notifyall() methods of object class ?

1045


What are the two parts of a conditional statement?

965


What is the applet security manager, and what does it provide?

997


Explain about anonymous inner classes in java?

1087


Is class is a data type?

1077


Why do we use bufferedreader?

1010


Can you explain the usages of class.forname()?

1074


Can we change the scope of the overridden method in the subclass?

1389


What is string in java with example?

1025


How java is similar to c?

1053


What does indexof mean?

1027


Explain what are final variable in java?

1077