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

Name few java 8 annotations ?

1085


How do you bind variables?

1155


Can a class be defined inside an interface?

1077


What is the list interface?

1129


Can we override the overloaded method?

1194


What is the difference between access specifiers and access modifiers in java? 16

1051


What do you mean by object?

1032


What does serializing data mean?

1003


What are the differences between string, stringbuffer and stringbuilder?

1086


What is the difference between procedural and object-oriented programs?

1011


What is method with example?

1184


why java uses class level type casting ?

2701


What are the Main functions of Java?

1129


What lambda means?

1066


What is the difference between method and means?

1125