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 / anjani kumar jha

public is used because from anywhere u r able to call ur
main method

static-static is the entry point of main function which is
executing by jvm(at run time) in other word signature of
the main function.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is void a wrapper class?

885


Explain different ways of creating a thread?

985


What is the difference between jdk and jre?

1006


what is meant by Garbage collection?

1037


What are the methods used to implement for the key object in the hash map?

983


According to java operator precedence, which operator is considered to be with highest precedence?

1034


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

957


Explain about interthread communication and how it takes place in java?

963


Why null value is used in string?

980


What is difference between throw and throws ?

1079


Write a factorial program using recursion in java?

945


What is a stringbuffer?

917


Write a program to print all permutations of string?

1065


Why set do not allow duplicates in java?

1002


What is type parameter in java?

911