Oracle 1z0-819 - Java SE 11 Developer
Given:
Your organization provides a cloud server to your customer to run their Java code. You are reviewing the changes for the next release and you see this change in one of the config files:
Which is correct?
A company has an existing sales application using a Java 8 jar file containing packages:
com.company.customer;
com.company.customer.orders;
com.company.customer.info;
com.company.sales;
com.company.sales.leads;
com.company.sales.closed;
com.company.orders;
com.company.orders.pending;
com.company.orders.shipped.
To modularize this jar file into three modules, customer, sales, and orders, which module-info.java would be correct?
A)
B)
C)
D)
Given the code fragment:
Which two code snippets inserted independently inside println method print Mondial:domainmodel? (Choose two.)
Given:
What is the type of the local variable x?
Given:
Which option should you choose to enable the code to print Something happened?
Assuming the Widget class has a getPrice method, this code does not compile:
Which two statements, independently, would allow this code to compile? (Choose two.)
Given:
What is the output?
var numbers = List.of(0,1,2,3,4,5,6,7,8,9);
You want to calculate the average of numbers. Which two codes will accomplish this? (Choose two.)
Which line of code results in a compilation error?