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 are alternatives to java serialization?

1183


explain what is transient variable in java?

1188


What is a parameter in a function?

1034


What is the benefit of using enum to declare a constant?

1161


Can a static class implement an interface?

1184


Explain notify() method of object class ?

1157


How to avoid memory leak in java?

1178


what is the major difference between linkedlist and arraylist in java?

1291


How do you check if a number is a perfect square?

1030


What is rule of accessibility in java?

1076


What is bytecode in java ?

1248


What is the difference between inheritance and encapsulation?

1194


What is boolean false?

1022


What is meant by distributed application? Why are we using that in our application?

985


Explain where variables are created in memory?

1051