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

How to sort an unsorted array in java?

1083


What do you mean by an object in java?

1082


What are synchronized methods and synchronized statements in java programming?

973


What are exception handling keywords in java?

980


What is an accessor?

1615


what is mutual exclusion? : Java thread

970


Is string is a class in java?

901


What is nullpointerexception in java?

1052


What is the difference between yielding and sleeping in java programming?

1085


What is the point of java?

977


What loop means?

906


Write a program to find the greatest of three numbers in java?

944


Is a boolean 1 bit?

1010


What is collections framework?

1107


Can abstract class have private constructor?

895