Loading questions...
Updated
Given TripleThis.java:
Given the code fragment:
Given the code fragment:
Given the code fragment:
Given:
Automobile.java -
Which module is required for any application using Swing or AWT?
Which set of commands is necessary to create and run a custom runtime image from Java source files?
Given the code fragment:
Given:
Given:
Which module-info.java is correct for a service provider for a print service defined in the PrintServiceAPI module?
Given:
Given:
Given:
Given:
Given the code fragment:
Given the content from the course.txt file:
Given:
Given:
Given:
Given these declarations:
Given the code fragment:
Given:
Given:
What is the result?
Given:
What is the result?
Compiling TripleThis.java gives this compiler warning:
Note: TripleThis.java uses unchecked or unsafe operations.
Which two replacements remove this compiler warning and prints 12? (Choose two.)
What change on line 1 will make this code compile?
Which two code snippets inserted independently inside println method print Mondial:domainmodel? (Choose two.)
What is the result?
Car.java -
What must you do so that the code prints 4?
Which would cause s to be AQCD?
Which two methods facilitate valid ways to read instance fields? (Choose two.)
To secure this code, you want to make sure that the client code cannot modify the public static fields.
Which code will accomplish this?
and
What is the result?
Given the directory structure:
Given the commands to execute at the Test directory prompt:
Which statement is true?
and
What is the result?
Which code fragment added to line 1 enables the code to compile and print Hello Joe?
Which statement at line 1 will print Ping Pong?
Given the code fragment:
Which code fragment at line 1 prints the lines that contain Java from the course.txt file?
What is the output?
and
Which code fragment on line 1 makes the m map contain the employee with the highest salary for each neighborhood?
Taking into account that the order of the elements is unpredictable, what is the output?
and these two code fragments:
Fragment 1:
Fragment 2:
Which code fragment is preferred and why?
What is the result?
How many LocalDate objects are created in this example?