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)
Correct Answer:C
Given:
and omitting the throws FooException clause results in a compilation error. Which statement is true about FooException?
Correct Answer:D
Given:
/code/a/Test.java containing:
and
/code/b/Best.java containing: package b;
public class Best { }
Which is the valid way to generate bytecode for all classes?
Correct Answer:E
What makes Java dynamic?
Correct Answer:A
Given:
What is the result?
Correct Answer:C
Given:
executed with this command: java Main one two three
What is the output of this class?
Correct Answer:B