java
java
Question 1
Question Type: MultipleChoice
How many Thing objects are eligible for garbage collection in line 1?
Options:
A- 3
B- 2
C- 0
D- 1
E- 4
Answer:
D
Question 2
Question Type: MultipleChoice
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
What security vulnerability does this expose to your cloud customer's code?
Oracle 1Z0-819 DUMPS BY Rhodes 22-07-2024 12QA ebraindumps - Page 3
Options:
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
Answer:
B
Question 3
Question Type: MultipleChoice
A)
B)
C)
Oracle 1Z0-819 DUMPS BY Rhodes 22-07-2024 12QA ebraindumps - Page 4
D)
Options:
A- Option A
B- Option B
C- Option C
D- Option D
Answer:
A
Question 4
Question Type: MultipleChoice
Options:
A- @FunctionalInterface
interface InterfaceC {
public boolean equals(Object o);
int breed(int x);
int calculate(int x, int y);
}
B- @FunctionalInterface
interface InterfaceD {
int breed(int x);
}
C- @FunctionalInterface
interface InterfaceE {
public boolean equals(int i);
int breed(int x);
}
D- interface InterfaceA {
int GERM = 13;
public default int getGERM() { return GERM; }
}
Oracle 1Z0-819 DUMPS BY Rhodes 22-07-2024 12QA ebraindumps - Page 5
E- interface InterfaceB {
int GERM = 13;
public default int getGERM() { return get(); }
private int get() { return GERM; }
public boolean equals(Object o);
int breed(int x);
Answer:
A, C
Question 5
Question Type: MultipleChoice
Given:
A)
B)
C)
D)
Oracle 1Z0-819 DUMPS BY Rhodes 22-07-2024 12QA ebraindumps - Page 6
E)
F)
Options:
A- Option A
B- Option B
C- Option C
D- Option D
E- Option E
F- Option F
Answer:
C
Question 6
Question Type: MultipleChoice
System.out.println(Letter.values()[1]);
What code should be written at line 5 for this code to print 200?
Options:
A- public String toString() { return String.valueOf(ALPHA.v); }
B- public String toString() { return String.valueOf(Letter.values()[1]); }
C- public String toString() { return String.valueOf(v); }
D- String toString() { return ''200''; }
Answer:
C
Question 7
Question Type: MultipleChoice
A)
Oracle 1Z0-819 DUMPS BY Rhodes 22-07-2024 12QA ebraindumps - Page 8
B)
C)
D)
E)
User Username
Options:
A- Option A
B- Option B
C- Option C
D- Option D
E- Option
Answer:
D, E
Question 8
Question Type: MultipleChoice
Given:
public class X {
and
Options:
A- The compilation fails because there is no zero args constructor defined in class X.
B- The compilation fails because either class X or class Y needs to implement the toString()
method.
C- The compilation fails because a final class cannot extend another class.
D- The compilation succeeds.
Answer:
B
Question 9
Question Type: MultipleChoice
Options:
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);
Answer:
D
Oracle 1Z0-819 DUMPS BY Rhodes 22-07-2024 12QA ebraindumps - Page 10
Question 10
Question Type: MultipleChoice
Given the Person class with age and name along with getter and setter methods, and this code
fragment:
Options:
A- Aman Tom Peter
B- Tom Aman Peter
C- Aman Peter Tom
D- Tom Peter Aman
Answer:
C
Question 11
Question Type: MultipleChoice
Which interface in the java.util.function package will return a void return type?
Options:
A- Supplier
B- Predicate
C- Function
D- Consumer
Oracle 1Z0-819 DUMPS BY Rhodes 22-07-2024 12QA ebraindumps - Page 11
Answer:
D
Question 12
Question Type: MultipleChoice
Assuming the source file and destination folder exist, what Is the result?
Options:
A- A java.nio.file.FileAlreadyExistsException is thrown on line 1.
B- A java.nio.file.NoSuchFileException is thrown on line 2.
C- A copy of /repo/a/a.txt is moved to the /repo directory and /repo/a/a.txt is deleted.
D- a.txt is renamed repo.
Answer:
C
Oracle 1Z0-819 DUMPS BY Rhodes 22-07-2024 12QA ebraindumps - Page 12