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

These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1045


What are advantages of exception handling in java?

987


Enlist diffrent types of inheritance supported by java?

869


What is the purpose of a volatile variable?

995


What are the two types of java programming?

1016


Write a program to calculate factorial in java?

970


What is the static variable?

1083


What are the topics in core java?

1019


How do you square a number in java?

1017


Is java se free?

904


What are reference variables in java?

1090


Can I learn java in 3 months?

972


What are the data types supported by java? What is autoboxing and unboxing?

965


What is flag in python?

1004


why Interface used?

964