Consider,
pageContext.setAttribute("name", new String("Shal"));
String name1= new String("Jason");
pageContext.setAttribute("Alternate Name", name1));
how the memory is allocated for the above two attributes,how and when that memory allocated will be recovered. What is the best practice to follow