Given:
What is the result?
A. abyssinian oxicat korat laperm bengal sphynx
B. abyssinian bengal korat laperm oxicat sphynx
C. sphynx oxicat laperm korat bengal abyssinian
D. nothing
Your organization makes mlib.jar available to your cloud customers. While working on a new feature for mlib.jar, you see that the customer visible method public void enableService(String hostName, String portNumber) executes this code fragment
and you see this grant is in the security policy file:
What security vulnerability does this expose to your cloud customer's code?
A. privilege escalation attack against the OS running the customer code
B. SQL injection attack against the specified host and port
C. XML injection attack against any mlib server
D. none because the customer code base must also be granted SocketPermission
E. denial of service attack against any reachable machine
Given:
If file "App.config" is not found, what is the result?
A. Configuration is OK
B. The compilation fails.
C. Exception in thread "main" java.lang.Error:Fatal Error: Configuration File, App.config, is missing.
D. nothing
Which two modules include APIs in the Java SE Specification? (Choose two.)
A. java.logging
B. java.desktop
C. javafx
D. jdk.httpserver
E. jdk.jartool
Given the code fragment:
You want to examine whether path is a directory.
Which code inserted on line 1 will accomplish this?
A. BasicFileAttributes attributes = Files isDirectory (path);
B. BasicFileAttributes attributes =Files.getAttribute (path, `'insdirectory'');
C. BasicFileAttributes attributes = Files.readAttributes(path, BasicFileAttributes.class
D. BasicFileAttributes attributes = Files, readAttributes (path, FileAttributes, class);
Given the code fragment:
What is the result?
A. [Lettuce, Kale]
B. A compilation error is thrown.
C. [Lettuce, Kale] [Seabass, Salmon]
D. [Kale, Lettuce] [Salmon, Seabass]
Given:
var data = new ArrayList<>();
data.add("Peter");
data.add(30);
data.add("Market Road");
data.set(1, 25);
data.remove(2);
data.set(3, 1000L);
System.out.print(data);
What is the output?
A. [Market Road, 1000]
B. [Peter, 30, Market Road]
C. [Peter, 25, null, 1000]
D. An exception is thrown at run time.
Given:
Which two interfaces can be used in lambda expressions? (Choose two.)
A. MyInterface1
B. MyInterface3
C. MyInterface5
D. MyInterface2
E. MyInterface4
Given:
and checkQuality(QUALITY.A); and Which code fragment can be inserted into the switch statement to print Best?
A. QUALITY.A.ValueOf()
B. A
C. A.toString()
D. QUALITY.A
Given the directory structure:
and
What is the result?
A. /continent/country/state
B. /continent/country/state/county
C. /continent /continent/country
D. /continent/ /continent/country /continent/country/state /continent/country/state/county