- Home
- Oracle Certification
- 1Z0-851 Exam
- Oracle.1Z0-851.dumpsfiles Dumps
Free Oracle 1Z0-851 Exam Dumps Questions & Answers
| Exam Code/Number: | 1Z0-851Join the discussion |
| Exam Name: | Java Standard Edition 6 Programmer Certified Professional Exam |
| Certification: | Oracle |
| Question Number: | 290 |
| Publish Date: | Aug 24, 2026 |
|
Rating
100%
|
|
Total 290 questions
Given:
11.class Mammal { }
12.13.
class Raccoon extends Mammal {
14.Mammal m = new Mammal();
15.}
16.17.
class BabyRaccoon extends Mammal { } Which four statements are true? (Choose four.)
Given:
5.import java.util.Date;
6.import java.text.DateFormat;
21.DateFormat df;
22.Date date = new Date();
23.// insert code here
24.String s = df.format(date);
Which code fragment, inserted at line 23, allows the code to compile?
Given:
11.public static void main(String[] args) {
12.try {
13.args = null;
14.args[0] = "test";
15.System.out.println(args[0]);
16.} catch (Exception ex) {
17.System.out.println("Exception");
18.} catch (NullPointerException npe) {
19.System.out.println("NullPointerException");
20.}
21.}
What is the result?
Given:
5.class Building { }
6.public class Barn extends Building {
7.public static void main(String[] args) {
8.Building build1 = new Building();
9.Barn barn1 = new Barn();
10.Barn barn2 = (Barn) build1;
11.Object obj1 = (Object) build1;
12.String str1 = (String) build1;
13.Building build2 = (Building) barn1;
14.}
15.}
Which is true?