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 / aravinda reddy

1) Public access modifier specifies class declared can be
accesses from anywhere

2) where as static refers with out creating instance of the
class JVM should access the main class while executing.

3) void specified main function should not return 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 is the difference between && and & in java?

1128


What is a final class ?

1277


How can an object be unreferenced?

1071


Which api is provided by java for operations on set of objects?

1530


What is the purpose of object oriented programming?

1036


What is %02d?

1149


Tell me about different OOPS concepts.

1058


How many bytes is a string java?

1080


What is difference between module and function?

1263


What is the purpose of the file class in java programming?

1099


What are the ways in which a thread can enter the waiting state?

991


Can we declare array without size in java?

1082


Can you change array size in java?

1014


What class allows you to read objects directly from a stream?

1384


How many wrapper classes are there in java?

1068