Loading provider exams...
Sign Up & unlock 100% of Exam Questions
No Strings Attached!
Updated
Given:

and

Which code fragment, when inserted on line 1, gives the number of employees who were born after January 1, 1989 and have a salary greater than 25?




Given:

Which statement will refactor line 2 to use a lambda expression?
Given:

Which two methods facilitate valid ways to read instance fields? (Choose two.)
Given:

What is the output?
Assuming the bodies are correct, which will result in a compilation error?
Want a break from the ads?
Become a Supporter and enjoy a completely ad-free experience, plus unlock Learn Mode, Exam Mode, AstroTutor AI, and more.
Given:

and the code fragment:

Which two lines cause compilation errors? (Choose two.)
Given:

and

Which code fragment inserted on line 11 prints the average salary of all employees from the Bay Area?




Given:

and the code fragment:

Which two Map objects group all employees with a salary greater than 30 by neighborhood? (Choose two.)





Given the code fragment:

What is the result?
Given:

What is the result?
Given the code fragment:

What is the result?
Given:

Which is true?
Given:

and the command:
java ConsoleTest
The user will input Duke and Java when the input is prompted.
What is the output?
Given:
class Animal
class Dog extends Animal
class Petdog extends Dog
and

Which two statements inserted independently on line 3 will make this code compile? (Choose two.)
Given these classes:

and this the code fragment:

What is the result?
Given:

Which statement is true?
Which is a valid statement?
Given:

and the code fragment:

You want to examine the items list if it contains an item for which the variable count is below zero.
Which code fragment at line 1 will accomplish this?
Given the data of the EMP table:

Assuming that jdbcURL, username, and password are declared and initialised.

Which two happen upon execution? (Choose two.)
Which two statements are true about a class that is marked @Deprecated? (Choose two.)
Given:

What is the result?
Given the code fragment:

You want to display the value of currency as $100.00.
Which code inserted on line 1 will accomplish this?
Given the code fragment:
List<Integer> list = List.of(11,12,13,12,13);
Which statement causes a compile time error?