Oracle

1z0-829 practice test

Practice with 15 free Testara sample questions, or choose paid access to the full 30-question bank.

Provider
Oracle
Question bank
30
Free sample
15 questions
Publisher
Testara

About this practice material

This page covers Testara's practice question bank for 1z0-829, a certification listed under Oracle. Questions use original, exam-style scenarios and are not questions from the official certification exam.

Testara is an independent practice platform and is not affiliated with, endorsed by, or authorized by Oracle. The certification credential is issued by Oracle, not Testara. Certification and provider names belong to their respective owners.

Start practicing

The guest demo does not save an attempt. Sign in before buying access.

Try 15 questions free

Available without signing in

Free sample questions

These 15 questions and their explanations are server-rendered so you can inspect the material before opening the interactive demo.

  1. Question 1 · 1

    Given the code fragment: and Which is true?

    Choose one answer.

    Question illustration 1
    Question illustration 2
    • The program prints t1 : 1 : t2 : 1: t1 : 2 : t2 : 2 : in random order.
    • The program prints t1 : 1 : t2 : 1: t1 : 2 : t2 : 2 :
    • The program prints t1 : 1 : t2 : 1: t1 : 1 : t2 : 1 : indefinitely.
    • The program prints an exception.
  2. Question 2 · 1

    Given: What is the result?

    Choose one answer.

    Question illustration 1
    • Compilation fails.
    • there
    • hello
    • A NumberFormatException is thrown.
  3. Question 3 · 1

    Given the code fragment: What is the result?

    Choose one answer.

    Question illustration 1
    • ABBCDE // the order of elements is unpredictable
    • ABCDE
    • ABCDE // the order of elements is unpredictable
    • ADEABCB // the order of elements is unpredictable
  4. Question 4 · 1

    Given: What is the result?

    Choose one answer.

    Question illustration 1
    • {bicycle=7, car=7, motorcycle=7, truck=7}
    • {3:bicycle, 0:car, 6:motorcycle, 5:truck}
    • Compilation fails.
    • {bicycle=1, car=3, motorcycle=1, truck=2}
    • {bicycle, car, motorcycle, truck}
  5. Question 5 · 1

    Which statement is true about modules?

    Choose one answer.

    • Only unnamed modules are on the module path.
    • Automatic and named modules are on the module path.
    • Only automatic modules are on the module path.
    • Only named modules are on the module path.
    • Automatic and unnamed modules are on the module path.
  6. Question 6 · 1

    Given the code fragment: Which code at line n1, obtains the java.io.Console object?

    Choose one answer.

    Question illustration 1
    • Console console = Console.getInstance();
    • Console console = System.console();
    • Console console = new Console(System.in);
    • Console console = new Console(new InputStreamReader(System.in));
    • Console console = System.console(System.in);
  7. Question 7 · 1

    Given the content of the in.txt file: 0123456789 and the code fragment: What is the content of the out.txt file?

    Choose one answer.

    Question illustration 1
    • 012345678
    • 01234567801234
    • 01234567
    • 0123456789
    • 012345678901234
    • 0123456789234567
  8. Question 8 · 1

    Given the code fragment: What is the result?

    Choose one answer.

    Question illustration 1
    • true:true:false:false
    • true:false:true:false
    • true:false:true:true
    • true:false:false:false
  9. Question 9 · 1

    Given the code fragment: What is the result?

    Choose one answer.

    Question illustration 1
    • 888
    • 8109
    • 7107
    • 777
    • 71010
    • 81111
  10. Question 10 · 1

    Which statement is true?

    Choose one answer.

    • IllegalStateException is thrown if a thread in waiting state is moved back to runnable.
    • A thread in waiting state consumes CPU cycles.
    • After the timed wait expires, the waited thread moves to the terminated state.
    • A thread in waiting state must handle InterruptedException.
  11. Question 11 · 1

    Given: What is the result?

    Choose one answer.

    Question illustration 1
    • 4
    • 2
    • 6
    • Compilation fails.
    • A runtime exception is thrown.
    • Nothing is printed because of an indefinite loop.
    • 5
    • 3
  12. Question 12 · 1

    Which statement is true?

    Choose one answer.

    • The lock() method returns a boolean indicator immediately regardless if it has or has not managed to acquire the lock.
    • The lock() method returns a boolean indicator immediately if it has managed to acquire the lock, otherwise it waits for the lock acquisition.
    • The tryLock() method returns a boolean indicator immediately if it has managed to acquire the lock, otherwise it waits for the lock acquisition.
    • The tryLock() method returns a boolean indicator immediately regardless if it has or has not managed to acquire the lock.
  13. Question 13 · 1

    Given: Which action enables the code to compile?

    Choose one answer.

    Question illustration 1
    • Replace 2 with static String name;
    • Replace 7 with public static void display(String design) {
    • Replace 3 with private static void display() {
    • Replace 15 with Item.display("Flower");
  14. Question 14 · 1

    Given: What is the result?

    Choose one answer.

    Question illustration 1
    • B A D
    • D A D
    • B A C
    • D D D
  15. Question 15 · 1

    Given: What is the result?

    Choose one answer.

    Question illustration 1
    • runsruns
    • flipsruns
    • runsflips
    • Compilation fails.
    • flipsflips

Each purchase applies to this certification. Prices are one-time payments, not monthly subscriptions.

Starter

$29 USD one time

Full access to one certification's question bank in standard practice mode for 60 days.

  • Full question bank for one certification
  • 60 days of access
  • Standard practice mode
  • Question notes and community discussions
  • Attempt scores and answer review

Professional

$49 USD one time

Full access to one certification's question bank, custom test controls and advanced analytics for 60 days.

  • Custom test builder
  • Timers and question selection
  • Randomized question and answer order
  • Advanced performance and weak-question analytics
  • Priority customer support
Try 15 questions free