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

When a byte datatype is used?

2047


How can we make copy of a java object?

1080


What is the main purpose of serialization in java?

971


What is methods and methodology?

970


What is methodological framework?

978


What do you mean by ternary operator in java?

964


What isan abstract class and when do you use it?

1508


What is string immutability?

1027


Explain different types of wrapper classes in java?

956


What is bufferedwriter?

917


What is the difference between jvm and jre? What is an interface?

1017


What is the difference between notify and notifyall method?

1112


What is core java used for?

1054


What are synchronized methods ?

1048


Implement a stack with push (), pop() and min() in O(1) time.

1035