Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808
  • Table Of Contents Toc
OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808

OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808

By : Jeanne Boyarsky, Scott Selikoff
close
close
OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808

OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808

By: Jeanne Boyarsky, Scott Selikoff

Overview of this book

OCA, Oracle Certified Associate Java SE 8 Programmer I Study Guide, Exam 1Z0-808 is a comprehensive study guide for those taking the Oracle Certified Associate Java SE 8 Programmer I exam (1Z0-808). With complete coverage of 100% of the exam objectives, this book provides everything you need to know to confidently take the exam. The release of Java 8 brought the language’s biggest changes to date, and for the first time, candidates are required to learn functional programming to pass the exam. This study guide has you covered, with thorough functional programming explanation and information on all key topic areas Java programmers need to know. You’ll cover Java inside and out and learn how to apply it efficiently and effectively to create solutions applicable to real-world scenarios.
Table of Contents (18 chapters)
close
close
Lock Free Chapter
1
Title Page
2
Copyright
3
Publisher's Note
4
Dedication
5
Acknowledgments
6
About the Authors
15
Free Online Learning Environment
16
End User License Agreement

Implementing Interfaces

Although Java doesn't allow multiple inheritance, it does allow classes to implement any number of interfaces. An interface is an abstract data type that defines a list of abstract public methods that any class implementing the interface must provide. An interface can also include a list of constant variables and default methods, which we'll cover in this section. In Java, an interface is defined with the interface keyword, analogous to the class keyword used when defining a class. A class invokes the interface by using the implements keyword in its class definition. Refer to Figures 5.4 and 5.5 for proper syntax usage.

image

Figure 5.4 Defining an interface

image

Figure 5.5 Implementing an interface

As you see in this example, an interface is not declared an abstract class, although it has many of the same properties of abstract class. Notice that the method modifiers in this example, abstract and public, are assumed. In other words, whether or not you...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon