1. Attributes are of the following types:Session attribute,Request attribute, Context attribute. Parameters are of the following types:Servlet parameters,Request parameters,Context parameters. 2. The attributes are set using the setAttribute() method. Parameters are set in the deployment descriptor using the <param-name> and <param-value> elements. 3. Attributes are obtained using the getAttribute(String name) method. Parameters are obtained using the getParameter(String name) method. 4. The attributes are returned as Objects.The parameters are returned as Strings.
Write a java standalone program / method to take out all the special characters in the string provided below. //ASCII a ? z (97 ? 122) String sSENTENCE = ?This!is^a$t*e)s|t?;