Examine these module declarations: Which two statements are correct? (Choose two.) A. The ServiceProvider module is the only module that, at run time, can provide the com.example.api API. B. The placement of the com.example.api API in a separate module, ServiceAPI,…

Given: Which one is correct? A. An IllegalThreadStateException is thrown at run time. B. Three threads are created. C. The compilation fails. D. Four threads are created.

Given these two classes: And given this fragment: Which describes the fragment? A. It throws IllegalMonitorStateException. B. It is subject to deadlock. C. It is subject to livelock. D. The code does not compile.

Given the code fragment: Path currentFile = Paths.get("/scratch/exam/temp.txt"); Path outputFile = Paths get("/scratch/exam/new.txt"); Path directory = Paths.get("/scratch/"); Files.copy(currentFile, outputFile); Files.copy(outputFile, directory); Files.delete (outputFile); The /scratch/exam/temp.txt file exists. The /scratch/exam/new.txt and /scratch/new.txt files do not exist. What is the result? A.…