Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
 

Oracle 1z0-808 Exam Actual Questions

The questions for 1z0-808 were last updated on Nov. 10, 2024.
  • Viewing page 1 out of 47 pages.
  • Viewing questions 1-5 out of 234 questions

Topic 1 - Single Topic

Question #1 Topic 1

Given:

What is the result?

  • A. 200.0 : 100.0
  • B. 400.0 : 200.0
  • C. 400.0 : 100.0
  • D. Compilation fails.
Reveal Solution Hide Solution   Discussion   44

Correct Answer: C 🗳️

Question #2 Topic 1

Which statement is true about the switch statement?

  • A. It must contain the default section.
  • B. The break statement, at the end of each case block, is optional.
  • C. Its case label literals can be changed at runtime.
  • D. Its expression must evaluate to a collection of values.
Reveal Solution Hide Solution   Discussion   11

Correct Answer: B 🗳️

Question #3 Topic 1

Given the code fragment:

What is the result?

  • A. May 04, 2014T00:00:00.000
  • B. 2014-05-04T00:00: 00.000
  • C. 5/4/14T00:00:00.000
  • D. An exception is thrown at runtime.
Reveal Solution Hide Solution   Discussion   37

Correct Answer: D 🗳️

Question #4 Topic 1

Given the code fragment:

What is the result?

  • A. Sum is 600
  • B. Compilation fails at line n1.
  • C. Compilation fails at line n2.
  • D. A ClassCastException is thrown at line n1.
  • E. A ClassCastException is thrown at line n2.
Reveal Solution Hide Solution   Discussion   23

Correct Answer: C 🗳️

Question #5 Topic 1

What is the name of the Java concept that uses access modifiers to protect variables and hide them within a class?

  • A. Encapsulation
  • B. Inheritance
  • C. Abstraction
  • D. Instantiation
  • E. Polymorphism
Reveal Solution Hide Solution   Discussion   13

Correct Answer: A 🗳️

Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...