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...

what is purpose of writting public static void main(Strind
arg[]) in java..?

Answer Posted / sahithi

Main method is entry point of our program.It is the method
executed when we run java program.

The method is "public" becozit should be accesible to jvm
to begin execution of program.

It is "static" becoz it should be available for execution
without an object instance..

String args[] are used to signify that user may pass
parameters to java prgm in commandline

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the principle concepts of oops?

960


Can we declare the static variables and methods in an abstract class?

990


What invokes a thread's run() method in java programming?

1189


Can finally block be used without a catch?

1009


What are daemon Threads in java?

1201


What is join () in java?

964


What's a method in programming?

1075


Which is better singleton or static class?

983


What is compareto?

1040


What is a file pointer?

1080


Which browsers work with java?

1074


What are the different data types in java?

1010


How do you test a method for an exception using junit?

1210


What do you understand by weak reference?

1011


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1315