background image

  3. // Line 3 

  4. } 

  5. public class Inner{} 

  6. public static void main( String[]argv ) { 

  7. Outer o = new Outer(); 

  8. // Line 8 

  9. } 

 

九塾教育 http://rooms9.com

 

  10. } 

  Which instantiates an instance of Inner? 

  A. new Inner(); // At line 3 

  B. new Inner(); // At line 8 

  C. new o.Inner(); // At line 8 

  D. new Outer.Inner(); // At line 8//new Outer().new Inner() 

  QUESTION NO: 5 

  Which method is used by a servlet to place its session ID in a URL that is written 
to the servlet’s response output stream? 

  A. The encodeURL method of the HttpServletRequest interface. 

  B. The encodeURL method of the HttpServletResponse interface. 

  C. The rewriteURL method of the HttpServletRequest interface. 

  D. The rewriteURL method of the HttpServletResponse interface.

QUESTION NO: 6

  Which two are equivalent? (Choose two) 

  A. 

  B.