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 are the different ways to handle exceptions?

938


How do you check if a character in a string is a digit or letter?

1007


What is the difference between conversation & casting?

998


Why do we need wrapper classes?

1007


What is bufferedwriter?

915


What do you mean by exception handling in Java?

1201


How will you get the platform dependent values like line separator, path separator, etc., ?

951


What is a final class in java?

965


What is the difference between logical data independence and physical data independence?

979


What is final?

1003


Why we used vector class?

1021


What is the maximum size of byte array in java?

954


Can we use different return types for methods when overridden?

942


How do I get a substring?

926


When should the method invokelater() be used?

969