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 does  mean in regex?

1059


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

966


What are the differences between c++ and java?

1147


What is identifier with example?

1056


What exactly is methodology?

933


What are the classes of java?

979


What is operator overloading. Is it is supported in java?

1039


Why do we use predicate in java?

1060


What is queue in java?

1159


How to obtain a performance profile of java program

1039


Is java hashset ordered?

1123


When is the finalize() called?

1192


Why is stringbuffer faster than string?

928


What is java in simple terms?

1009


How many types of classes are there in java?

1062