session creation

Hi,
I'm creating session as session.setAttribute("arg",obj);.
Suppose I add the bellow code after create session.
session.setAttribute("arg",newObj);
Now which object will be returned when I use "session.getAttribute("arg");" either (obj) or (newObj)