What do these calls actually mean in terms of session?
System.out.println(\"print1: \"+request.getSession().getId()); System.out.println(\"print2: \"+request.get
request.getSession().getId();
returns the unique identifier assigned to this session. And It has return type of String.
request.getSession(false)
returns the HttpSession object if it already exists else return null.