Why is URLEncoder being used here? String servletGET = webServerStr + "?" + URLEncoder.encode("UserOption") + "=" + URLEncoder.encode("AppletDisplay"); The API says these two strings will remain unchanged.
Probably a developer who uses URLEncoder as a matter of principle. The only advantage I can think of is that another developer changing these strings at some later date cannot forget to use URLEncoder if/when necessary. - Peter