Details

OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide


OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide

Exam 1Z0-815
1. Aufl.

von: Jeanne Boyarsky, Scott Selikoff

38,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 19.11.2019
ISBN/EAN: 9781119584728
Sprache: englisch
Anzahl Seiten: 608

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b><b>This<i> OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815</i> and the <i>Programmer II Study Guide: Exam 1Z0-816</i>  were published before Oracle announced major changes to its OCP certification program and the release of the new Developer 1Z0-819 exam. <br /><br />No matter the changes, rest assured both of the Programmer I and II Study Guides cover everything you need to prepare for and take Exam 1Z0-819. If you’ve purchased one of the Programmer Study Guides, purchase the other one and you’ll  be all set.<br /> <br /></b></b><i>NOTE: The OCP Java SE 11 Programmer I Exam 1Z0-815 and Programmer II Exam 1Z0-816 have been retired (as of October 1, 2020), and Oracle has released a new Developer Exam 1Z0-819 to replace the previous exams. The Upgrade Exam 1Z0-817 remains the same.</i></p> <p><b><br /><br />The comprehensive study aide for those preparing for the new Oracle Certified Professional Java SE Programmer I Exam 1Z0-815</b></p> <p>Used primarily in mobile and desktop application development, Java is a platform-independent, object-oriented programming language. It is the principal language used in Android application development as well as a popular language for client-side cloud applications. Oracle has updated its Java Programmer certification tracks for Oracle Certified Professional. </p> <p><i>OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide </i>covers 100% of the exam objectives, ensuring that you are thoroughly prepared for this challenging certification exam. This comprehensive, in-depth study guide helps you develop the functional-programming knowledge required to pass the exam and earn certification. All vital topics are covered, including Java building blocks, operators and loops, String and StringBuilder, Array and ArrayList, and more. Included is access to Sybex's superior online interactive learning environment and test bank—containing self-assessment tests, chapter tests, bonus practice exam questions, electronic flashcards, and a searchable glossary of important terms. This indispensable guide:</p> <ul> <li>Clarifies complex material and strengthens your comprehension and retention of key topics</li> <li>Covers all exam objectives such as methods and encapsulation, exceptions, inheriting abstract classes and interfaces, and Java 8 Dates and Lambda Expressions</li> <li>Explains object-oriented design principles and patterns</li> <li>Helps you master the fundamentals of functional programming</li> <li>Enables you to create Java solutions applicable to real-world scenarios</li> </ul> <p>There are over 9 millions developers using Java around the world, yet hiring managers face challenges filling open positions with qualified candidates. The <i>OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide </i>will help you take the next step in your career.</p>
<p>Introduction xxi</p> <p>The Assessment Test xliii</p> <p><b>Chapter 1 Welcome to Java 1</b></p> <p>Learning About the Java Environment 2</p> <p>Major Components of Java 2</p> <p>Downloading a JDK 3</p> <p>Identifying Benefits of Java 4</p> <p>Understanding the Java Class Structure 5</p> <p>Fields and Methods 5</p> <p>Comments 6</p> <p>Classes vs. Files 8</p> <p>Writing a <i>main() </i>Method 8</p> <p>Creating a <i>main() </i>Method 9</p> <p>Passing Parameters to a Java Program 10</p> <p>Running a Program in One Line 12</p> <p>Understanding Package Declarations and Imports 13</p> <p>Wildcards 15</p> <p>Redundant Imports 15</p> <p>Naming Conflicts 16</p> <p>Creating a New Package 18</p> <p>Compiling and Running Code with Packages 19</p> <p>Using an Alternate Directory 20</p> <p>Compiling with JAR Files 22</p> <p>Creating a JAR File 23</p> <p>Running a Program in One Line with Packages 24</p> <p>Ordering Elements in a Class 24</p> <p>Code Formatting on the Exam 26</p> <p>Summary 27</p> <p>Exam Essentials 27</p> <p>Review Questions 29</p> <p><b>Chapter 2 Java Building Blocks 35</b></p> <p>Creating Objects 36</p> <p>Calling Constructors 36</p> <p>Reading and Writing Member Fields 37</p> <p>Executing Instance Initializer Blocks 38</p> <p>Following Order of Initialization 39</p> <p>Understanding Data Types 40</p> <p>Using Primitive Types 40</p> <p>Using Reference Types 44</p> <p>Distinguishing between Primitives and Reference Types 45</p> <p>Declaring Variables 46</p> <p>Identifying Identifiers 46</p> <p>Declaring Multiple Variables 49</p> <p>Initializing Variables 50</p> <p>Creating Local Variables 51</p> <p>Passing Constructor and Method Parameters 52</p> <p>Defining Instance and Class Variables 53</p> <p>Introducing <i>var </i>53</p> <p>Managing Variable Scope 59</p> <p>Limiting Scope 59</p> <p>Nesting Scope 60</p> <p>Tracing Scope 60</p> <p>Applying Scope to Classes 61</p> <p>Reviewing Scope 62</p> <p>Destroying Objects 62</p> <p>Understanding Garbage Collection 63</p> <p>Tracing Eligibility 64</p> <p>Summary 67</p> <p>Exam Essentials 67</p> <p>Review Questions 69</p> <p><b>Chapter 3 Operators 79</b></p> <p>Understanding Java Operators 80</p> <p>Types of Operators 80</p> <p>Operator Precedence 81</p> <p>Applying Unary Operators 82</p> <p>Logical Complement and Negation Operators 83</p> <p>Increment and Decrement Operators 84</p> <p>Working with Binary Arithmetic Operators 85</p> <p>Arithmetic Operators 86</p> <p>Numeric Promotion 88</p> <p>Assigning Values 90</p> <p>Assignment Operator 90</p> <p>Casting Values 90</p> <p>Compound Assignment Operators 93</p> <p>Assignment Operator Return Value 94</p> <p>Comparing Values 95</p> <p>Equality Operators 95</p> <p>Relational Operators 97</p> <p>Logical Operators 99</p> <p>Short-Circuit Operators 100</p> <p>Making Decisions with the Ternary Operator 102</p> <p>Summary 103</p> <p>Exam Essentials 104</p> <p>Review Questions 105</p> <p><b>Chapter 4 Making Decisions 113</b></p> <p>Creating Decision-Making Statements 114</p> <p>Statements and Blocks 114</p> <p>The <i>if </i>Statement 115</p> <p>The <i>else </i>Statement 116</p> <p>The <i>switch </i>Statement 119</p> <p>Writing <i>while </i>Loops 126</p> <p>The <i>while </i>Statement 126</p> <p>The <i>do/while </i>Statement 127</p> <p>Comparing <i>while </i>and <i>do/while </i>Loops 128</p> <p>Infinite Loops 129</p> <p>Constructing <i>for </i>Loops 130</p> <p>The <i>for </i>Loop 131</p> <p>The for-each Loop 136</p> <p>Controlling Flow with Branching 141</p> <p>Nested Loops 141</p> <p>Adding Optional Labels 142</p> <p>The <i>break </i>Statement 143</p> <p>The <i>continue </i>Statement 145</p> <p>The <i>return </i>Statement 147</p> <p>Unreachable Code 148</p> <p>Reviewing Branching 148</p> <p>Summary 149</p> <p>Exam Essentials 150</p> <p>Review Questions 151</p> <p><b>Chapter 5 Core Java APIs 161</b></p> <p>Creating and Manipulating Strings 162</p> <p>Concatenation 163</p> <p>Immutability 164</p> <p>Important <i>String </i>Methods 165</p> <p>Method Chaining 171</p> <p>Using the <i>StringBuilder </i>Class 172</p> <p>Mutability and Chaining 173</p> <p>Creating a <i>StringBuilder </i>174</p> <p>Important <i>StringBuilder </i>Methods 174</p> <p>Understanding Equality 177</p> <p>Comparing <i>equals() </i>and <i>== </i>177</p> <p>The <i>String </i>Pool 179</p> <p>Understanding Java Arrays 180</p> <p>Creating an Array of Primitives 181</p> <p>Creating an Array with Reference Variables 183</p> <p>Using an Array 185</p> <p>Sorting 186</p> <p>Searching 187</p> <p>Comparing 188</p> <p>Varargs 190</p> <p>Multidimensional Arrays 190</p> <p>Understanding an <i>ArrayList </i>193</p> <p>Creating an <i>ArrayList </i>193</p> <p>Using an <i>ArrayList </i>195</p> <p>Wrapper Classes 199</p> <p>Autoboxing and Unboxing 201</p> <p>Converting Between <i>array </i>and <i>List </i>201</p> <p>Using Varargs to Create a List 203</p> <p>Sorting 204</p> <p>Creating Sets and Maps 204</p> <p>Introducing Sets 204</p> <p>Introducing Maps 205</p> <p>Calculating with Math APIs 206</p> <p><i>min() </i>and <i>max() </i>206</p> <p><i>round() </i>207</p> <p><i>pow() </i>207</p> <p><i>random() </i>208</p> <p>Summary 208</p> <p>Exam Essentials 209</p> <p>Review Questions 210</p> <p><b>Chapter 6 Lambdas and Functional Interfaces 221</b></p> <p>Writing Simple Lambdas 222</p> <p>Lambda Example 222</p> <p>Lambda Syntax 225</p> <p>Introducing Functional Interfaces 227</p> <p>Predicate 228</p> <p>Consumer 228</p> <p>Supplier 229</p> <p>Comparator 230</p> <p>Working with Variables in Lambdas 231</p> <p>Parameter List 231</p> <p>Local Variables inside the Lambda Body 231</p> <p>Variables Referenced from the Lambda Body 232</p> <p>Calling APIs with Lambdas 234</p> <p><i>removeIf() </i>234</p> <p><i>sort() </i>235</p> <p><i>forEach() </i>235</p> <p>Summary 236</p> <p>Exam Essentials 237</p> <p>Review Questions 238</p> <p><b>Chapter 7 Methods and Encapsulation 247</b></p> <p>Designing Methods 248</p> <p>Access Modifiers 249</p> <p>Optional Specifiers 250</p> <p>Return Type 251</p> <p>Method Name 252</p> <p>Parameter List 253</p> <p>Optional Exception List 253</p> <p>Method Body 254</p> <p>Working with Varargs 254</p> <p>Applying Access Modifiers 256</p> <p>Private Access 256</p> <p>Default (Package-Private) Access 257</p> <p>Protected Access 259</p> <p>Public Access 263</p> <p>Applying the <i>static </i>Keyword 264</p> <p>Designing <i>static </i>Methods and Fields 264</p> <p>Accessing a <i>static </i>Variable or Method 265</p> <p>Static vs. Instance 266</p> <p><i>static </i>Variables 268</p> <p>Static Initialization 269</p> <p>Static Imports 270</p> <p>Passing Data among Methods 272</p> <p>Overloading Methods 275</p> <p>Varargs 277</p> <p>Autoboxing 277</p> <p>Reference Types 277</p> <p>Primitives 279</p> <p>Generics 279</p> <p>Arrays 280</p> <p>Putting It All Together 280</p> <p>Encapsulating Data 281</p> <p>Summary 283</p> <p>Exam Essentials 284</p> <p>Review Questions 285</p> <p><b>Chapter 8 Class Design 295</b></p> <p>Understanding Inheritance 296</p> <p>Single vs. Multiple Inheritance 297</p> <p>Inheriting <i>Object </i>298</p> <p>Creating Classes 299</p> <p>Extending a Class 299</p> <p>Applying Class Access Modifiers 301</p> <p>Accessing the <i>this </i>Reference 302</p> <p>Calling the <i>super </i>Reference 303</p> <p>Declaring Constructors 305</p> <p>Creating a Constructor 305</p> <p>Default Constructor 306</p> <p>Calling Overloaded Constructors with <i>this() </i>308</p> <p>Calling Parent Constructors with <i>super() </i>310</p> <p>Constructors and <i>final </i>Fields 314</p> <p>Order of Initialization 316</p> <p>Reviewing Constructor Rules 322</p> <p>Inheriting Members 323</p> <p>Calling Inherited Members 323</p> <p>Inheriting Methods 324</p> <p>Hiding Variables 336</p> <p>Understanding Polymorphism 337</p> <p>Object vs. Reference 339</p> <p>Casting Objects 340</p> <p>The <i>instanceof </i>Operator 341</p> <p>Polymorphism and Method Overriding 342</p> <p>Overriding vs. Hiding Members 344</p> <p>Summary 346</p> <p>Exam Essentials 347</p> <p>Review Questions 349</p> <p><b>Chapter 9 Advanced Class Design 363</b></p> <p>Creating Abstract Classes 364</p> <p>Introducing Abstract Classes 364</p> <p>Defining Abstract Methods 366</p> <p>Creating a Concrete Class 370</p> <p>Reviewing Abstract Class Rules 372</p> <p>Implementing Interfaces 373</p> <p>Defining an Interface 373</p> <p>Inserting Implicit Modifiers 377</p> <p>Inheriting an Interface 380</p> <p>Polymorphism and Interfaces 384</p> <p>Reviewing Interface Rules 386</p> <p>Introducing Inner Classes 388</p> <p>Defining a Member Inner Class 388</p> <p>Using a Member Inner Class 389</p> <p>Summary 390</p> <p>Exam Essentials 391</p> <p>Review Questions 392</p> <p><b>Chapter 10 Exceptions 401</b></p> <p>Understanding Exceptions 402</p> <p>The Role of Exceptions 402</p> <p>Understanding Exception Types 404</p> <p>Throwing an Exception 407</p> <p>Recognizing Exception Classes 409</p> <p><i>RuntimeException </i>Classes 409</p> <p>Checked <i>Exception </i>Classes 412</p> <p><i>Error </i>Classes 413</p> <p>Handling Exceptions 414</p> <p>Using <i>try </i>and <i>catch </i>Statements 414</p> <p>Chaining <i>catch </i>Blocks 416</p> <p>Applying a Multi-catch Block 418</p> <p>Adding a <i>finally </i>Block 421</p> <p>Finally Closing Resources 424</p> <p>Throwing Additional Exceptions 430</p> <p>Calling Methods That Throw Exceptions 432</p> <p>Declaring and Overriding Methods with Exceptions 434</p> <p>Printing an Exception 435</p> <p>Summary 437</p> <p>Exam Essentials 438</p> <p>Review Questions 440</p> <p><b>Chapter 11 Modules 451</b></p> <p>Introducing Modules 452</p> <p>Exploring a Module 453</p> <p>Benefits of Modules 454</p> <p>Creating and Running a Modular Program 456</p> <p>Creating the Files 457</p> <p>Compiling Our First Module 458</p> <p>Running Our First Module 460</p> <p>Packaging Our First Module 461</p> <p>Updating Our Example for Multiple Modules 463</p> <p>Updating the Feeding Module 463</p> <p>Creating a Care Module 464</p> <p>Creating the Talks Module 466</p> <p>Creating the Staff Module 469</p> <p>Diving into the <i>module-info </i>File 470</p> <p><i>exports </i>470</p> <p><i>requires transitive </i>472</p> <p><i>provides</i>, <i>uses</i>, and <i>opens </i>474</p> <p>Discovering Modules 475</p> <p>The <i>java </i>Command 475</p> <p>The <i>jar </i>Command 478</p> <p>The <i>jdeps </i>Command 478</p> <p>The <i>jmod </i>Command 480</p> <p>Reviewing Command-Line Options 481</p> <p>Summary 483</p> <p>Exam Essentials 484</p> <p>Review Questions 485</p> <p><b>Appendix Answers to Review Questions 491</b></p> <p>Chapter 1: Welcome to Java 492</p> <p>Chapter 2: Java Building Blocks 494</p> <p>Chapter 3: Operators 498</p> <p>Chapter 4: Making Decisions 501</p> <p>Chapter 5: Core Java APIs 505</p> <p>Chapter 6: Lambdas and Functional Interfaces 509</p> <p>Chapter 7: Methods and Encapsulation 511</p> <p>Chapter 8: Class Design 513</p> <p>Chapter 9: Advanced Class Design 518</p> <p>Chapter 10: Exceptions 522</p> <p>Chapter 11: Modules 526</p> <p>Index 529</p>
<p><b>Jeanne Boyarsky, OCA/OCP 8 and OCP 11,</b> has worked as a Java developer for a major bank for more than 17 years. She is a senior moderator at CodeRanch, and trains and mentors students of all levels, including the programming division of a FIRST robotics team.</p> <p><b>Scott Selikoff, OCA/OCP 8 and OCP 11,</b> has been a professional Java Enterprise developer for over 20 years. He currently operates Selikoff Solutions, LLC, which provides software consulting services to businesses in the tri-state New York City area.</p>
<p><b>Includes interactive online learning environment and study tools:</b> <ul> <li>2 custom practice exams</li> <li>More than 250 electronic flashcards</li> <li>Searchable key term glossary</li> </ul> <p><b>Your Complete Guide to preparing for the Java SE 11 Programmer I Exam 1Z0-815</b> <p>The <i>OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide</i> thoroughly prepares you for this challenging certification exam. Focusing on Exam 1Z0-815, this in-depth study guide helps you develop the functional-programming knowledge necessary to get certified and advance your career to the next level. Every exam objective is clearly and accurately covered to ensure that you will be fully prepared on exam day. You also get access to Sybex's superior online interactive learning environment and test bank—providing self-assessment tests, chapter quizzes, bonus practice exam questions, electronic flashcards, a searchable glossary of key terms, and more. <p>This book can be used to successfully pass both the OCP Java SE 11 Programmer I Exam 1Z0-815 and the Java Foundations Exam 1Z0-811. <p><b>Coverage of 100% of all exam objectives in this Study Guide means you'll be ready for:</b> <ul> <li>Introducing the new Java™ module system</li> <li>Developing Java applications and garbage collection</li> <li>Understanding primitives, object references, and variable scope</li> <li>Learning local type inference with the new var identifier</li> <li>Creating and applying lambda expressions</li> <li>Using Java operators, parentheses, and order of operation</li> <li>Managing data with Java collections, generics, and arrays</li> <li>Directing flow with if/then, switch, and loop mechanisms</li> <li>Defining methods, abstract and concrete classes, and interfaces</li> <li>Mastering encapsulation, class inheritance, and polymorphism</li> <li>Throwing and catching exceptions and errors</li> </ul> <p><b>Interactive learning environment</b> <p>Take your exam prep to the next level with Sybex's superior interactive online study tools. To access our learning environment, simply visit <b>http://www.wiley.com/go/sybextestprep</b>, type in your unique PIN, and instantly gain access to: <ul> <li><b>Interactive test bank</b> with 2 practice exams to help you identify areas where further review is needed. Get more than 90% of the answers correct, and you're ready to take the certification exam.</li> <li><b>More than 250 electronic flashcards</b> to reinforce learning and last-minute prep before the exam</li> <li><b>Comprehensive glossary</b> in PDF format gives you instant access to the key terms so you are fully prepared</li> </ul> <p><b>ABOUT THE OCP PROGRAM</b> <p>The??Oracle Certified Professional (OCP) credential validates a high level of knowledge and skills in a specific area of Oracle technology. IT managers often use the OCP credential to evaluate the qualifications of employees and job candidates. Visit education.oracle.com/certification for more information.

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €