Summary: Ocp: Oracle Certified Professional Java Se 8 Programmer Ii Study Guide Exam 1Z0-809 | 9781119067900 | Jeanne Boyarsky, et al
- This + 400k other summaries
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding
Read the summary and the most important questions on OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide Exam 1Z0-809 | 9781119067900 | Jeanne Boyarsky; Scott Selikoff
-
3 Generics and Collections
-
3.1.1 Array and ArrayList
This is a preview. There are 1 more flashcards available for chapter 3.1.1
Show more cards here -
Why is a List returned by Arrays.asList() not resizable?
Because it is backed by the underlying array -
3.2.1 Generic Classes
-
What are the common letters used as type parameters in generics?
- E for an element
- K for a map key
- V for a map value
- N for a number
- T for a generic data type, and
- S, U, V, and so forth for multiple generic types
-
What is the name of the process of removing the generics syntax from your code (at compile time)?
Type erasure -
3.2.2 Generic Interfaces
-
What are the things you cannot do with generics (mostly due to type erasure)?
- Call the constructore new T()
- Create an array of that static type
- Call instanceof
- Use a primitive type as a generic type parameter
- Create a static variable as a generic type parameter
-
3.2.5 Bounds
This is a preview. There are 3 more flashcards available for chapter 3.2.5
Show more cards here -
What are the three ways you can use generic wildcards?
- Unbounded wildcard
?
List<?> l = new ArrayList<String>(); - Wildcard with an upper bound
? Extends type
List<? Extends Exception> l = new ArrayList<RuntimeException>(); - Wildcard with a lower bound
? Super type
List<? Super Exception> l = new ArrayList<Object>();
- Unbounded wildcard
-
3.3 Using Lists, Sets, Maps, Queues
This is a preview. There are 1 more flashcards available for chapter 3.3
Show more cards here -
Which four main interfaces are there in the Java Collections Framework?
- List
- Set
- Queue
- Map
-
3.6.1 Using Methods References
-
Name the four formats for method references
- Static methods
- Instance methods on a particular instance
- Instance methods on an instance to be determined at runtime
- Constructors
-
4 Functional Programming
-
4.1 Using Variables in Lambdas
-
Which variables are accessable for lambda expressions?
- Static variables
- instance variables
- effectively final method parameters
- effectively final local variables
-
4.4 Using Streams
This is a preview. There are 1 more flashcards available for chapter 4.4
Show more cards here -
Which three parts are there to a stream pipeline?
- Source
- Intermediate operations
- Terminal operations
-
4.5.1 Creating Primitive Streams
This is a preview. There are 2 more flashcards available for chapter 4.5.1
Show more cards here -
Name the three types of primitive streams
- IntStream
int, short, byte and char - LongStream
long - DoubleStream
double and float
- IntStream
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding