OCP Oracle Certified Professional Java SE 11 Programmer II Study Guide
eBook - ePub

OCP Oracle Certified Professional Java SE 11 Programmer II Study Guide

Exam 1Z0-816 and Exam 1Z0-817

Scott Selikoff, Jeanne Boyarsky

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

OCP Oracle Certified Professional Java SE 11 Programmer II Study Guide

Exam 1Z0-816 and Exam 1Z0-817

Scott Selikoff, Jeanne Boyarsky

Book details
Book preview
Table of contents
Citations

About This Book

This OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and the Programmer II Study Guide: Exam 1Z0-816 were published before Oracle announced major changes to its OCP certification program and the release of the new Developer 1Z0-819 exam. No matter the changes, rest assured both of the Programmer I and II Study Guidescover 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. 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.

Thecompletely-updated preparation guide for the new OCP Oracle Certified Professional Java SE 11 Programmer II exam—covers Exam 1Z0-816

Java, a platform-independent, object-oriented programming language, is used primarily in mobile and desktop application development. It is a popular language for client-side cloud applications and the principal language used to develop Android applications. Oracle has recently updated its Java Programmer certification tracks for Oracle Certified Professional.

OCP Oracle Certified Professional Java SE 11 Programmer II Study Guide ensures that you are fully prepared for this difficult certification exam. Covering 100% of exam objectives, this in-depth study guide provides comprehensive coverage of the functional-programming knowledge necessary to succeed. Every exam topic is thoroughly and completely covered including exceptions and assertions, class design, generics and collections, threads, concurrency, IO and NIO, and more. Access to Sybex's superior online interactive learning environment and test bank—including self-assessment tests, chapter tests, bonus practice exam questions, electronic flashcards, and a searchable glossary of important terms—provides everything you need to be fully prepared on exam day. This must-have guide:

  • Covers all exam objectives such as inheriting abstract classes and interfaces, advanced strings and localization, JDBC, and Object-Oriented design principles and patterns
  • Explains complex material and reinforces your comprehension and retention of important topics
  • Helps you master more advanced areas of functional programming
  • Demonstrates practical methods for building Java solutions

OCP Oracle Certified Professional Java SE 11 Programmer II Study Guide will prove invaluable for anyone seeking achievement of this challenging exam, as well as junior- to senior-levelprogrammers who uses Java as their primary programming language.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access OCP Oracle Certified Professional Java SE 11 Programmer II Study Guide by Scott Selikoff, Jeanne Boyarsky in PDF and/or ePUB format, as well as other popular books in Computer Science & Software Development. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Sybex
Year
2020
ISBN
9781119617587
Edition
1

Chapter 1
Java Fundamentals

OCP EXAM OBJECTIVES COVERED IN THIS CHAPTER:

  • Java Fundamentals
    • Create and use final classes
    • Create and use inner, nested and anonymous classes
    • Create and use enumerations
  • Java Interfaces
    • Create and use interfaces with default methods
    • Create and use interfaces with private methods
  • Functional Interface and Lambda Expressions
    • Define and write functional interfaces
    • Create and use lambda expressions including statement lambdas, local-variable for lambda parameters
Welcome to the first chapter on your road to taking the 1Z0-816 Programmer II exam! If you've recently taken the 1Z0-815 Programmer I exam, then you should be well versed in class structure, inheritance, scope, abstract types, etc. If not, you might want to review your previous study materials. The exam expects you to have a solid foundation on these topics. You can also read our 1Z0-815 exam book, OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 (Sybex, 2019).
In this chapter, we are going to expand your understanding of Java fundamentals including enums and nested classes, various interface members, functional interfaces, and lambda expressions. Pay attention in this chapter, as many of these topics will be used throughout the rest of this book. Even if you use them all the time, there are subtle rules you might not be aware of.
Finally, we want to wish you a hearty congratulations on beginning your journey to prepare for the 1Z0-816 Programmer II exam!

Taking the Upgrade Exam?

If you're studying for the 1Z0-817 Upgrade Exam, please consult the list of objectives in the introduction to know which topics to study. For these readers, we have also written a specialized Appendix A, “The Upgrade Exam,” which covers additional objectives that are not part of the 1Z0-816 exam, such as var and module creation. If you're taking the 1Z0-817 exam, you should read Appendix A before reading this chapter.

Applying the final Modifier

From your previous study material, you should remember the final modifier can be applied to variables, methods, and classes. Marking a variable final means the value cannot be changed after it is assigned. Marking a method or class final means it cannot be overridden or extended, respectively. In this section, we will review the rules for using the final modifier.
note
If you studied final classes for the 1Z0-815 exam recently, then you can probably skip this section and go straight to enums.

Declaring final Local Variables

Let's start by taking a look at some local variables marked with the final modifier:
private void printZooInfo(boolean isWeekend) {  final int giraffe = 5;  final long lemur;  if(isWeekend) lemur = 5;  else lemur = 10;  System.out.println(giraffe+" "+lemur); } 
As shown with the lemur variable, we don't need to assign a value when a final variable is declared. The rule is only that it must be assigned a value before it can be used. Contrast this with the following example:
private void prin...

Table of contents

  1. Cover
  2. Table of Contents
  3. Acknowledgments
  4. About the Authors
  5. Introduction
  6. Chapter 1: Java Fundamentals
  7. Chapter 2: Annotations
  8. Chapter 3: Generics and Collections
  9. Chapter 4: Functional Programming
  10. Chapter 5: Exceptions, Assertions, and Localization
  11. Chapter 6: Modular Applications
  12. Chapter 7: Concurrency
  13. Chapter 8: I/O
  14. Chapter 9: NIO.2
  15. Chapter 10: JDBC
  16. Chapter 11: Security
  17. Appendix A: The Upgrade Exam
  18. Appendix B: Answers to Review Questions
  19. Index
  20. Online Test Bank
  21. End User License Agreement