Upwork Java Technologies

/Upwork Java Technologies

Spring MVC Test

1. Which of the following code samples will get the ServletContext inside an Interceptor? Answers: @Autowired ServletContext context; request.getSession().getServletContext();/li> setServletContext(ServletContext context) { this.context = context; } request.getSession().getServletContext(); 2. How can an HTTP 404 status code be returned from a Spring MVC Controller? Answers: Throwing a ResourceNotFoundException declared with the @ResponseStatus annotation.<> Throwing an HttpRequestMethodNotSupportedException. Configuring [...]

By | October 30th, 2015|Upwork Java Technologies|0 Comments

JSP 2.0 Test

1. If cookies are turned off on the client, which two methods still work with the session ID? Answers: response.getSessionId() encodeRedirectURL() sessionRedirectURL() encodeURL() 2. Which two of the following statements are best associated with the HTTPPOST method? Answers: This HTTP method is the one most frequently used by browsers There is no limit on how [...]

By | October 30th, 2015|Upwork Java Technologies|0 Comments

JDBC 2.1 Test

1. Under which category does the following driver fall: WebLogic's Tengah "all Java Type-3 driver" Answers: JDBC-ODBC Bridge Driver Native-API Partly-Java Driver Net-Protocol All-Java Driver Native-Protocol All-Java Driver Native-Protocol Part-Java Driver 2. Which JDBC driver is considered best in terms of performance and efficiency? Answers: Type-1 Driver Type-2 Driver Type-3 Driver Type-4 Driver 3. Please [...]

By | October 30th, 2015|Upwork Java Technologies|0 Comments

Java Test

1. Which statements are true regarding ServletContext Init Parameters in the deployment descriptor? Answers: They are set at deployment-time, but accessed at run-time. They are accessible from any session within that context. They are not set at deployment-time, but accessed at run-time. They are set at deployment-time and can be updated at run-time. 2. Which [...]

By | October 30th, 2015|Upwork Java Technologies|0 Comments