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

Can I extend singleton class in java?

1055


Is a char always 1 byte?

940


How to split a string in java?

1084


When should we create our own custom exception classes?

981


What happens to the Exception object after handling an exception?

2331


What does flagged out mean?

1016


How does arraylist size increase in java?

1061


What is the base class for error and exception?

959


What is java ceil?

989


Where local and global variables are stored?

1050


What is java used for on a computer?

949


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9160


Why vector class is used?

943


Can we use both this () and super () in a constructor?

974


What must a class do to implement an interface in java programming?

986