• Post Reply Bookmark Topic Watch Topic
  • New Topic

static block inside servlet  RSS feed

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i have to write above code inside servlet where can i write??
 
author & internet detective
Marshal
Posts: 38277
627
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand the question. A static method can go anywhere within in a class except in another method.
 
Author and ninkuma
Marshal
Posts: 66692
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And why would this need to be part of a servlet? 
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!