0% found this document useful (0 votes)
143 views

Real4Exams: Real IT Certification Exam Study Guide/braindumps

The document contains sample questions and answers from the Java SE 11 Developer certification exam. It provides 10 multiple choice questions related to Java topics like autoboxing, strings, exceptions, I/O, and enums. Each question includes 5 or 6 answer options and explains the single correct answer. The document advertises exam practice material and brain dumps to help users pass IT certification exams.

Uploaded by

sharmila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
143 views

Real4Exams: Real IT Certification Exam Study Guide/braindumps

The document contains sample questions and answers from the Java SE 11 Developer certification exam. It provides 10 multiple choice questions related to Java topics like autoboxing, strings, exceptions, I/O, and enums. Each question includes 5 or 6 answer options and explains the single correct answer. The document advertises exam practice material and brain dumps to help users pass IT certification exams.

Uploaded by

sharmila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Real4Exams

http://www.real4exams.com
Real IT Certification Exam Study guide/Braindumps
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

Exam : 1z0-819

Title : Java SE 11 Developer

Vendor : Oracle

Version : DEMO

1 from Real4exams.com.
Get Latest & Valid 1z0-819 Exam's Question and Answers 1
https://www.real4exams.com/1Z0-819_braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

NO.1 Which two are successful examples of autoboxing? (Choose two.)


A. Float g = Float.valueOf(null);
B. Double d = 4;
C. Integer e = 5;
D. Float f = 6.0;
E. Long c = 23L;
F. String a = "A";
Answer: C,F

NO.2 Given:

executed using command:


java Hello "Hello World" Hello World
What is the output?
A. Hello WorldHello World
B. Hello World Hello World
C. HelloHello WorldHelloWorld
D. Hello WorldHelloWorld
E. An exception is thrown at runtime.
Answer: B

NO.3 Given:

What is the result?


A. 3
B. 25
C. 5
D. 11
E. 23
Answer: D

NO.4 Given:

2 from Real4exams.com.
Get Latest & Valid 1z0-819 Exam's Question and Answers 2
https://www.real4exams.com/1Z0-819_braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

You want the code to produce this output:


John
Joe
Jane
Which code fragment should be inserted on line 1 and line 2 to produce the output?
A. Insert Comparator<Person> on line 1.
Insert
public int compare(Person person) {
return person.name.compare(this.name);
}
on line 2.
B. Insert Comparable<Person> on line 1.
Insert
public int compare(Person p1, Person p2) {
return p1.name.compare(p2.name);
}
on line 2.
C. Insert Comparator<Person> on line 1.
Insert
public int compareTo(Person person) {
return person.name.compareTo(this.name);
}
on line 2.
D. Insert Comparator<Person> on line 1.
Insert
public int compare(Person p1, Person p2) {

3 from Real4exams.com.
Get Latest & Valid 1z0-819 Exam's Question and Answers 3
https://www.real4exams.com/1Z0-819_braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

return p1.name.compare(p2.name);
}
on line 2.
Answer: C

NO.5 Given:

What is the result?


A. The compilation fails.
B. Orange Juice
C. The program prints nothing.
D. Orange Juice Apple Pie Lemmon Ice Raspberry Tart
Answer: D

NO.6 Given the code fragment:


Path currentFile = Paths.get("/scratch/exam/temp.txt");

4 from Real4exams.com.
Get Latest & Valid 1z0-819 Exam's Question and Answers 4
https://www.real4exams.com/1Z0-819_braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

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. The program throws a NoSuchFileException.
B. A copy of /scratch/exam/new.txt exists in the /scratch directory and /scratch/exam/new.txt is
deleted.
C. /scratch/exam/new.txt and /scratch/new.txt are deleted.
D. The program throws a FileaAlreadyExistsException.
Answer: A

NO.7 Assume ds is a DataSource and the EMP table is defined appropriately.

What does executing this code fragment do?


A. inserts two rows (101, 'SMITH', 'HR') and (102, 'JONES', NULL)
B. inserts one row (101, 'SMITH', 'HR')
C. inserts two rows (101, 'SMITH', 'HR') and (102, 'JONES', 'HR')
D. throws a SQLException
Answer: B

NO.8 Given:

5 from Real4exams.com.
Get Latest & Valid 1z0-819 Exam's Question and Answers 5
https://www.real4exams.com/1Z0-819_braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

Which three classes successfully override printOne()? (Choose three.)

6 from Real4exams.com.
Get Latest & Valid 1z0-819 Exam's Question and Answers 6
https://www.real4exams.com/1Z0-819_braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

A. Option F
B. Option C
C. Option D
D. Option B
E. Option E
F. Option A
Answer: B,C,F

NO.9 Given:

and omitting the throws FooException clause results in a compilation error.


Which statement is true about FooException?
A. FooException is unchecked.
B. The body of foo can only throw FooException.
C. FooException is a subclass of RuntimeError.
D. The body of foo can throw FooException or one of its subclasses.
Answer: D

NO.10 Given:

and
checkQuality(QUALITY.A);
and

7 from Real4exams.com.
Get Latest & Valid 1z0-819 Exam's Question and Answers 7
https://www.real4exams.com/1Z0-819_braindumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!

Which code fragment can be inserted into the switch statement to print Best?
A. A
B. QUALITY.A
C. QUALITY.ValueOf()
D. toString()
Answer: A

8 from Real4exams.com.
Get Latest & Valid 1z0-819 Exam's Question and Answers 8
https://www.real4exams.com/1Z0-819_braindumps.html

You might also like