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

What is mean by collections in java?

1262


Why stringbuilder is not thread safe in java?

1073


What modifiers are allowed for methods in an interface?

1217


What is object of class in java?

1189


What is the difference between pass by reference and pass by pointer?

1182


What is a predicate method?

1065


What is lambda programming?

1074


Where are the card layouts used?

1127


Can there be an abstract method without an abstract class?

1015


Which types of exceptions are caught at compile time?

1081


How many types of java are there?

1037


What do you understand by classes in java?

1048


Where is jre installed?

1095


What is difference between equal and == in java?

1008


What is a percentage sign called?

1196