This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi all following is the explanation given for a question. servlet implementing SingletTreadModel.
Three data elements are always thread-safe, they are: 1.Local variable 2.Request attribute 3.Session attribute For instance variables, they are NOT safe unless the servlet is a SingleThreadModel servlet, which means there is only one thread accessing one instance at one moment. For static/class variables, they are always NOT thread safe, even with SingleThreadModel marker.
I got this explanation in iris mock, is it correct? coz, as far as I know session attributes are not thread safe�
Help me out in clearing this one�
and also please tell me if i'll set cookie age to -1 wgat will happen?