java classes in webapp which are not servlets
I'm learning java ee and i not found answers for some questions and i hope somebody can explain its for me.
Now the questions.
1. Can i load normal java classes from webapps without using any servlet, and can i use these objects without storing them in the Application context. If yes , how can it be done.
2. If i create an object in a servlet init() method , can i reach this object via a get() method. I think i this is impossible because the servlet instantiated by the container and the reference of the servlet object is not available
3. If i get an object from the Application context will i get a referene or a copy of that object?
Thank you for your answers and i hope i put this topic to the right place.