Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread code in a Servlet

 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Just out of curiosity,
1. Can i write the code which involves creating a Thread class along with its run method inside a Servlet?
2. Can the Servlet create an instance of a class which implements a Runnable interface?
Rgds,
Seetesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic