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...

Why do we use public static with the main function in Java?

Answer Posted / saikat chowdhury

'public' keyword is an access specifier.It means you can access anywhere of the program using this specifier.When we use in the main function it can be access outside of the(class, package,subclass.'Static' also a keyword.When we use this in the main function that means you do not need to create the object of static.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override the overloaded method?

1137


What is temp in java?

994


What is the difference between static binding and dynamic binding?

1116


What are the characteristics of java?

1047


What are static blocks and static initalizers in java ?

1072


Which is best ide for java?

1039


What is int argc char * argv?

1148


how to create multithreaded program? : Java thread

941


What are the two types of java programming?

1054


Why object class is super class for every class in java?

1020


What is a numeric digit?

1078


What is ide with example?

966


What restrictions are placed on method overloading?

1173


Can a final variable be null?

1010


Is null an object java?

982