I know that for each request to a servlet a the doPost() or doGet() methods are executed and that the code wirtten inside init() method is initialised only once. But what about the code written outside all these methods?  

Is that code also threaded? I mean varibles declared in that part, if they are modified in the `doPost()`, will those changes be reflected for other requsts to the servlets?