Practice 1Z0-829 Utilizing Java Object-Oriented Approach questions with full explanations on every answer.
Start practicing
Utilizing Java Object-Oriented Approach — choose a session length
Free · No account required
Click any question to see the full explanation and answer options, or start a focused practice session above.
Refer to the exhibit. Two Java classes are defined as shown. What is the output when the Sub class is executed?
2Which TWO statements are true about the sealed class feature in Java 17?
3You are designing a logging framework for a microservices application. The framework must support multiple output destinations (console, file, database) and allow new destinations to be added without modifying existing code. Additionally, each destination should be able to format the log message differently. The team prefers composition over inheritance. Which design pattern should you recommend?
4Arrange the steps to override equals() and hashCode() correctly in Java.
5Match each functional interface to its abstract method signature.
6A developer writes a class `Employee` with a private field `salary`. Which approach correctly allows subclasses to access `salary` directly without breaking encapsulation?
7Given the following code snippet: `List<Integer> list = new ArrayList<>(); list.add(10); list.add(20); list.remove(1); System.out.println(list);` What is the output?
8A class `Transaction` is declared as `sealed`. Which statement correctly implements a permitted subclass?
9Which design pattern is best suited for creating a family of related objects without specifying their concrete classes?
10A class `Account` has a method `public void deposit(double amount)`. Which approach correctly demonstrates method overloading?
11Given a record `Point(int x, int y)`, which statement is true about the automatically generated constructor?
12A developer needs to ensure that a class `Shape` cannot be instantiated but can be extended. Which modifier should be used?
13Which TWO statements about Java interfaces are true? (Choose two.)
14Which TWO access modifiers can be applied to a top-level class in Java? (Choose two.)
15Which THREE conditions must be true for a method to override another method in a subclass? (Choose three.)
16Given the exhibit, what is a key difference between a materialized view and a regular view?
17Given the exhibit, which statement about calling this function in a SELECT statement is true?
18A financial services company runs a Java 17 Spring Boot application that processes real-time stock trades. The application uses a class `TradeProcessor` containing a method `void process(Trade trade)`. This method is invoked by multiple threads concurrently. The `Trade` class is immutable and has fields like `String symbol`, `int quantity`, `double price`. The `TradeProcessor` method updates a shared `HashMap<String, Double>` that tracks the average price per symbol. The update logic is: retrieve the current average for the symbol, compute a new average, and put it back. During high-load testing, the average prices are occasionally incorrect. The development team suspects a race condition. Which course of action should be taken to fix the issue with minimal performance impact?
19Which two statements are true about records in Java? (Choose two.)
20Which statement about the code is correct?
21You are designing a logging framework for a distributed application. The framework must support multiple output destinations (console, file, network socket) and allow clients to dynamically add new destinations at runtime without modifying existing code. Currently, the application uses a single static Logger class with methods like logToConsole(String msg) and logToFile(String msg). The team needs to refactor the code to adhere to the Open/Closed Principle and support extensibility. After reviewing the requirements, you propose using a combination of an interface and a strategy pattern. However, a senior developer argues that using a simple enum with abstract methods would be sufficient. Which course of action best adheres to object-oriented design principles and allows the most flexibility for future extensions?
22Refer to the exhibit. What is the output?
23Refer to the exhibit. What is the result?
24Refer to the exhibit. Which statement about this Singleton implementation is correct?
25Refer to the exhibit. What is the result?
26Refer to the exhibit. What is the output?
The Utilizing Java Object-Oriented Approach domain covers the key concepts tested in this area of the 1Z0-829 exam blueprint published by Oracle. Courseiva provides free domain-focused practice, mock exams, missed-question review, and readiness tracking across all 1Z0-829 domains — no account required.
The Courseiva 1Z0-829 question bank contains 26 questions in the Utilizing Java Object-Oriented Approach domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Utilizing Java Object-Oriented Approach domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included