ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Which are servlet lifecycle methods ?

user-image
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2014/01/20
Wasif Iqbal Shaikh
من قبل Wasif Iqbal Shaikh , IT Consultant , Reach Management Services - Client Emirates NBD

1. init() - called once when the servlet is first created, so its used for one time initializations like db init.

2. service() - this is the method which performs the actual task, internally calls doGet(), doPost(), etc. depending on the request method.

3. destory() - called at the end of the lifecycle of the servlet, to perform tasks like closing db connections.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟