I believe that the letter D is also incorrect because there is no method v2.getVid() but v2.getVId(). If alternative D had the call to method v2.getVId it would be right. No other alternative compiled, unfortunately only letter E is true by my tests.
B should be ".sorted(Comparator.comparing(Vehicle::getvName).reversed())"
upvoted 2 times
...
Log in to ExamTopics
Sign in:
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.
laura_lu93
Highly Voted 3 years, 4 months agomevlt
2 years, 4 months agoasdfjhfgjuaDCV
Most Recent 4 months agosteefaand
5 months, 2 weeks agolnrdgst
2 years, 2 months agoEason_from_the_future
2 years, 10 months ago