exam questions

Exam 1z0-819 All Questions

View all questions & answers for the 1z0-819 exam

Exam 1z0-819 topic 1 question 73 discussion

Actual exam question from Oracle's 1z0-819
Question #: 73
Topic #: 1
[All 1z0-819 Questions]

Given the content from lines.txt:


C -
C++

Java -

Go -

Kotlin -

and



What is the result?

  • A. C -
    C++

    Go -
    Kotlin
  • B. JAVA
  • C. C -
    C++

    GO -
    KOTLIN
  • D. C -
    C++

    JAVA -

    GO -
    KOTLIN
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
06d854e
4 months ago
Ans: D TESTED
upvoted 1 times
...
ASPushkin
6 months ago
Selected Answer: D
.filter(line -> !line.equalsIgnoreCase("JAVA") equalsIgnoreCase("JAVA") Two strings are considered equal ignoring case if they are of the same length and corresponding characters in the two strings are equal ignoring case. so all lines ARE included.
upvoted 1 times
...
Galen86
10 months, 1 week ago
Selected Answer: C
C is the correct answer, because data that is not equal to "JAVA" is filtered line by line from the file, so there will be no JAVA in the final output.
upvoted 1 times
...
mendjijet
11 months, 2 weeks ago
Selected Answer: D
D tested JAVA # JAVA-
upvoted 2 times
...
d7bb0b2
1 year, 1 month ago
D is correct because s read line by line and JAVA has a - , and is not equals to JAVA. if no have that space or - remove java from the final list
upvoted 2 times
...
Omnisumem
1 year, 4 months ago
Selected Answer: D
Tested.
upvoted 1 times
...
tmuralimanohar
1 year, 6 months ago
Answer: D
upvoted 1 times
...
Stavok
1 year, 7 months ago
Selected Answer: D
D is Correct TESTED
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago