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

without placing "public",the program cannot be
executed..static is used becoz JVM's first priority will be
always given to static itself..so that without depending on
the object,we must execute the program.void main it used becoz
it wont allow returning any value.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of string data types are there?

1166


how to create multithreaded program? Explain different ways of using thread? : Java thread

1054


What is number data type?

1075


what is synchronization? : Java thread

1070


What is the purpose of final keyword and when to use it?

1057


What is data type modifier?

991


Can we compare two strings in java?

1083


What is the difference between JDBC 1.0 and JDBC 2.0?

3230


What is difference between add() and addelement() in vector?

1586


please send me hr interview questions in it industry

2173


How many static init can you have?

1270


What does business logic mean?

1052


what is the volatile modifier for? : Java thread

1063


Can we clone singleton object in java?

1087


What is command line used for?

1139