Hi all!
It seems be good Q?
the answer is for this Q?
in my view ........
Beans( JAVA CLASSES) are different from web componets ...( Servelts & JSPs)
web components always serves the web requests means just getting the requests and process the request with the help of beans or some times them selves only .
here in Servlets Service () is working like a main ()
all the processing is directed from this funtion only and finally response will sent form this funtion only so it seems to be a main() in Beans .
So may the name is different but the functionality is same for Main() in Beans and Service() in Servlets..
we can say like this
this is my opinion if there is any valid comments then i should accept .....
please feel free to send comments to my email id srinivas.annapareddy @ gmail.com