• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not using Maiin()

 
Anto Telvin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understood that every servlet is a java class only ..But why we are not using any main() to start the loading of class ?


Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
main() is used to start applications, not servlets.

P.S. please fix the typo in your subject.
[ August 14, 2008: Message edited by: Bear Bibeault ]
 
benjamin muktesh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main() method acts as an entry point to the java program.
The servlet container takes care of this in case of a servlet.
Do a bit of reading on java class loaders.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic