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

Is there a case when finally will not execute?

965


If an object is garbage collected, can it become reachable again?

959


Define linked list and its features with signature?

945


What is a boolean output?

926


Which sort is best in java?

918


How a string is stored in memory?

973


What are the 6 mandatory procedures for iso 9001?

965


Which data type is a class in java?

944


Can It is possible to synchronize the constructor of a Java Class?

1055


Can we sort a map in java?

990


Is singleton class thread safe?

956


How do you sort in java?

949


What is the difference between member variables initialization and assignment in a constructor?

1193


How do you implement singleton class?

937


Can a method be overloaded based on different return type but same argument type?

918