OCEJWCD Study Companion: Errata

April 4, 2018 | Author: cotetzsilvia | Category: Computing Platforms, Software Development, Computer Programming, Software Engineering, Software


Comments



Description

Garner PressCATALOGUE YOUR ORDER DELIVERY CONTACT US EXAM CENTRE OCEJWCD Study Companion: Errata This errata page concerns:  Title: OCEJWCD Study Companion: Oracle Certified Expert Java EE Web Component Developer 3rd Edition (for Exam 1Z0-899)  ISBN: 9780955160349  Pages: 666 (paperback) If you believe you have seen an error in the book which is not listed below, please contact us so the author can review and publish the correction below if required. Errors and Corrections Last updated: 19th January 2013 Page Locatio n Error Correction Comments xi i Line 3 These are given in Appendix A of this book These can be found online at Oracle's website. Appendix A was removed in the 3rd Edition for compactnes s 2 9 Line s 3- 5 the container has to manage applications in a 'sandbox'. On the the server has to manage applications in a 'sandbox'. On the Minor re- wording server, these sandboxes are called containers. server, these sandboxes are called containers. 8 2 Q.9 -10 [No typographical/content error] [No correction] Question number boxes need re-aligning 8 5 Q.9 Exhi bit resp.getWriter().write( title) [No correction] One reader has questioned that this should throw a NullPointerE xception; however, Java 7 API documentati on for PrintWriter. write(String ) states: If the argument is null then the string "null" is printed. This question is correct as written. 1 3 2 Line 1 thrown (see page 101) thrown (see page 104) Page mis- reference 1 8 7 8th line fro m end ubiqitous "Hello World!" ubiquitous "Hello World!" Minor spelling typo 1 8 8 Line 5 resp.flushBuffer(); [Remove line entirely] Does not compile as flushBuffer() throws a checked IOException , but is not essential to the example. Note Line 4 is fine as PrintWriter. write() does not throw any checked exceptions. 2 0 0 Q.3, Opti on C ServletRequest.newAs ync() ServletRequest.startAs ync() By far the most reported error! 2 6 7 5th line fro m end resp.sendError(Http ServletResponse. SC_REQUEST_ENTIT Y_TOO_LARGE); [Remove the bold typeface] Minor formatting error 2 6 7 3rd line fro m end } } catch(Exception e) {} The extra catch clause is required as req.getPart( "file1") throws checked IOException and ServletExce ption 2 6 8 Line 8 if("yes".equals(req.get Parameter("inspect")) { if("yes".equals(req.getP arameter("inspect"))) { Single missing ) 2 8 7 Prin ted line 12 of full cod e exa mpl e EnumSet<DispatcherT ype> types = new EnumSet<DispatcherT ypes>(); EnumSet<DispatcherTyp e> types = new EnumSet<DispatcherTyp e()>; Single character typo 2 9 0 Q.4 (choose one) (choose two) 2 9 Q.5 (choose one) (choose three) 1 2 9 1 Q.6 (choose two) (choose one) 2 9 1 Q.7 (choose one) (choose two) 2 9 1 Q.8 (choose one) (choose two) 2 9 3 Q.1 6 (choose one) (choose two) 2 9 3 Q.1 6, Opti on C setInitParam(String,St ring) setInitParameter(String ,String) Worth noting that annotations and deployment descriptors use the "param" abbreviation , but the API method is the full word "parameter" - great for consistency! 2 9 5 Q.3 Correct answers: B,D Correct answers: B,C The text comment is correct 3 1 1 Line 1 em.query( em.createQuery( 3 1 1 Line 8 Writer w = resp.getWriter(); PrintWriter w = resp.getWriter(); Needed so the print() method in the next line is available. 3 1 1 Line 11 item.calculatePrice(4.5 ) item.calculatePrice(4.5f) 4.5 will be double by default; float is needed 3 Q.1 (choose one) (choose three) 1 6 1 3 1 7 Q.1 2 (choose one) (choose three) Terms and Conditions - Returns and Refunds
Copyright © 2024 DOKUMEN.SITE Inc.