[HD-OCP17/21-Fundamentals Pg 447, Sec. 16.1.6 - collection-and-list-api]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

[HD-OCP17/21-Fundamentals Pg 447, Sec. 16.1.6 - collection-and-list-api]

Post by raphaelzintec »

i dont get why collections are splitted in 3 chapters

16 Generics
18 Collections
21 Streams

raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 447, Sec. 16.1.6 - collection-and-list-api]

Post by raphaelzintec »

chapter 16 starts with generics, followed by collections, ends with generics...

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 447, Sec. 16.1.6 - collection-and-list-api]

Post by admin »

Collections and generics are closely linked. Chapter 16 introduces the concept of collections and the need for generics without getting bogged down with the details of the Collections API. Other than section 16.2, everything in this chapter 16 is important for the exam. Detailed discussion of generics in separated out section 16.2 so that one can simply skip this section altogether without affecting their preparation for the exam. But the details are there if one is curious to learn about them.

Chapter 18 is focused on the Collections API i.e. the classes and interfaces that are available in the Java collections framework. This is also important for the exam but to make sense of and to use them the way exam expects you to use them, you need to know about generics as well as lambdas and method references, which is why those are discussed before discussing the details of the Collections API. Collections API itself is quite huge and all of this chapter is in scope for the exam. Chapter 18 is mostly information based (stuff that you need to cram for the exam), while Chapter 16 and 17 are more logical (stuff that you need to understand).

Streams makes heavy use of collection classes and interfaces, so you cannot really avoid them while talking about streams. The streams chapter only references collections (the stuff that you learnt in previous chapters) and focuses on Streams. Again, everything in this chapter is required for the exam.


raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 447, Sec. 16.1.6 - collection-and-list-api]

Post by raphaelzintec »

so chapter 17 lambda is also more logical (stuff that you need to understand)?

cuz im reading java.util.function.Function explanation and find it very abstract

raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 447, Sec. 16.1.6 - collection-and-list-api]

Post by raphaelzintec »

questions about lambda in OCP 17 exam will be same as in OCA 8?

what would be the difference?

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 447, Sec. 16.1.6 - collection-and-list-api]

Post by admin »

Ocp 17/21 use lambdas a lot more than oca 8 in code given in the questions.

raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 447, Sec. 16.1.6 - collection-and-list-api]

Post by raphaelzintec »

ok gotchu cuz oca 8 was like 1 question about it

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests