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

Need to use public,static keywords in main function?

Answer Posted / sreedhar

yes,need two thing, javac execution start with main
method,that method declars the private,protected not access
the out side class.

Staic block is execute the first part of the progream ,u
need to mention the Staic on thet main method.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can generate random numbers in java?

1121


What is java in detail?

1060


Which sorting is used in arrays sort in java?

1072


Is char * a string?

983


Why convert an applet to an application?

1096


What is a boolean flag in java?

1021


What is the advantage of OOP in java?

1139


Can you start a thread twice in Java?

1110


What are the four integer types supported by java?

1028


How do you bind variables?

1092


Name four container classes.

984


What is object-oriented paradigm?

1059


What is the difference between this() and super() in java?

1033


What is difference between variable declaration and definition?

963


What is a class component?

1168