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

What is mean by collections in java?

1084


What is an exception? difference between Checked and Unchecked exception in Java

955


if u open login & logout ,how can udisplay the timelogin & logout members ?

2221


Can we sort set in java?

906


Can abstract class have private constructor?

891


What is jvm? How its run?

1018


What do you mean by light weight and heavy weight components?

968


What are the application of stack?

858


What is the difference between && and & in java?

1024


What is hashset in java?

1059


Explain the difference between runnable and callable interface in java?

1001


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

957


What are kinds of processors?

934


What is an infinite loop in java? Explain with an example.

974


What are the important features of Java 9 release?

949