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 / psreddy

public access modifier we declared then that class visible
to every where and access to any where
bcoz if we write any number business logic classes but
we have to write only one execution logic class for all
these business logic classes
that is why always execution logic class as public
and also there is need of writing static key word
bcoz the execution logic executes only once
other wise we will get runtime exeption

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is purpose of applet programming?

1181


How can we use primitive data types as objects?

956


How to obtain a performance profile of java program

1025


What is the use of using enum to declare a constant?

1022


What restrictions are placed on method overriding in java programming?

994


How are the elements of a gridbaglayout organized?

1055


What is java reflection?

976


Can final class have constructor?

917


What is data member in java?

1038


What is square root in java?

1097


How to perform quicksort in java?

1106


How to use arraylist in java netbeans?

1036


Why is java so important?

1109


What is the difference between iterator and enumeration ?

1003


What are advantages and disadvantages of OOPs?

1133