Can we have instance variables for stateless session bean? If yes then what could be the scenario?
A statelsss session bean can have instance variables. Their lifetime is from the start of a method invocation to its end. A stateless session bean does not hold “conversational” states, implying that subsequent invocation to any of its methods will have those instance variables initialized the same way. You may write some test code to verify this.