MCQs>IT & Programming>JSP And Servlets>Given a servlet containing the following code, what is the outcome of attempting to compile and run the servlet? ServletContext context = getServletContext(); String s = context.getAttribute('javax.servlet.context.tempdir');
JSP And Servlets MCQs
Given a servlet containing the following code, what is the outcome of attempting to compile and run the servlet? ServletContext context = getServletContext(); String s = context.getAttribute(
Answer
Correct Answer: The servlet won’t compile
Explanation:
Note: This Question is unanswered, help us to find answer for this one