Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-819 Topic 8 Question 77 Discussion

Actual exam question for Oracle's 1Z0-819 exam
Question #: 77
Topic #: 8
[All 1Z0-819 Questions]

Given:

You want to calculate the average of the Player's score.

Which statement inserted on line 1 will accomplish this?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Val
6 months ago
I believe B is correct because it maps to Int and then calculates the average.
upvoted 0 times
...
Lauran
7 months ago
But B specifically maps to Int for score.
upvoted 0 times
...
Beula
7 months ago
I'm leaning towards C because it converts to double.
upvoted 0 times
...
Chandra
7 months ago
I disagree, I think it's D.
upvoted 0 times
...
Lauran
7 months ago
I think the answer is B.
upvoted 0 times
...
Jolene
8 months ago
Okay, let's break this down. We need to get the stream of players, and then somehow calculate the average of their scores. I'm pretty sure one of these options will do the trick.
upvoted 0 times
...
Rory
8 months ago
Ugh, these stream API questions are the bane of my existence. Why can't they just ask us to write some good old-fashioned for loops?
upvoted 0 times
...
Kris
8 months ago
Ooh, this is a tricky one. I'm not entirely sure about the difference between mapToInt, mapToDouble, and map. I'll have to think this through carefully.
upvoted 0 times
...
Nathalie
8 months ago
Haha, this is a classic Java 8 question. I remember struggling with these stream API questions when I was studying for the exam. But I think I've got it figured out now.
upvoted 0 times
...
Lenita
8 months ago
Hmm, let me think about this. I know we need to use the stream() method to get a stream of the players, but I'm not sure which specific method will give us the average.
upvoted 0 times
...
Latosha
8 months ago
This is a great question! I've been brushing up on my Java 8 stream API knowledge, so I think I've got a pretty good handle on this.
upvoted 0 times
Ling
7 months ago
No, I believe the answer is C.
upvoted 0 times
...
Rickie
7 months ago
I think the correct answer is B.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77