Consider the following:
public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
{
String url = res.encodeRedirectURL("/redirectme"); //Line 14
boolean
test = "/redirectme". equals(url); //Line 15
res.sendRedirect(url);
}
Given answers:
1) Line 14 demonstrates a session management mechanism called URL rewriting.
2) After line 15, test could be either true or false.
I can't understand how test could be false after line 15.