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

What is a memory leak in java?

1052


Can variables be used in java without initialization?

1058


What is regex used for?

975


What do you mean by chromounits in java8?

932


Why main() method is public, static and void in java ?

1076


What are the differences between the constructors and methods?

1097


How many types of methods are there?

1036


How do you decide when to use arraylist and linkedlist?

977


What is singleton class in java and how can we make a class singleton?

1136


How many decimal places is a double?

977


What is the advantage of functional interface in java 8?

977


In which order the iterator iterates over collection?

981


Is minecraft 1.15 out?

965


what is meant by Byte code concept in Java?

1044


What is the base class in java from which all classes are derived?

960