Classes Interview Questions
6 interview questions in our bank cover Classes, most of them Coding Questions. They average 2.7/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about Classes: Amazon, Blizzard, Bloomberg, Oracle.
Practice these on the problems board →Companies that ask about Classes
Question mix
- Coding Questions6
Difficulty
- 2/5 — easy2
- 3/5 — medium4
Classes questions at Amazon
SimpleDataClass with Sum and Average Subfunctions
2/5Package two small numeric helpers, a total and a mean, inside a class that a team could maintain without surprises. This Amazon question is scored on organisation rather than arithmetic: naming, where validation belongs, and what the mean of an empty list should do. You will keep the two helpers independent, agree on the behaviour for degenerate input, and leave the class easy to extend. A subscription unlocks the complete problem and the reference implementation.
Coding QuestionsAmazonSort and Run Tests
3/5Order a collection of test descriptors by a field chosen at runtime, then execute them all at once while making sure one failure does not sink the batch. This Amazon question mixes reflection-style field access with concurrency and error handling, and the error handling is what it is really about. You will sort by a dynamic key, run the work in parallel, collect per-test outcomes rather than a single exception, and keep the report deterministic. The full problem and the reference solution require a subscription.
Coding QuestionsAmazonManage Party Playlist with Person and Party Classes
3/5Design two classes that together manage a party playlist built from the songs each guest recommends, ordered by popularity and then by when the recommendation arrived. This Amazon question is scored on the structures you pick: the ordering needs counts plus an arrival sequence, and removing a guest has to withdraw their recommendations. You will keep the ordering query cheap, define what happens when a guest recommends the same song twice, and handle removal of someone who never joined. The complete problem and the reference design are available with a subscription.
Coding QuestionsAmazon
More Classes questions
E-Commerce Category Analytics
3/5In this technical challenge reported during a Blizzard interview, candidates must design a robust object-oriented analytics program in Java. The exercise centers on structuring clean class hierarchies and designing effective methods to process and analyze retail product data. It examines your grasp of software design principles, encapsulation, and maintainable architecture within a commercial domain context. To unlock the full problem statement and expert reference solution, a subscription is required.
Coding QuestionsBlizzardDesign a Simple Game using OOD
3/5Design the classes behind a number-guessing game where the system reports whether each guess is high, low, or correct. This Bloomberg question is an object-design exercise, so the marks are in the separation: the secret, the comparison logic, the input loop, and the game state each belong somewhere specific. You will keep the randomness injectable so the game is testable, define when a round ends, and decide what an out-of-range guess does. The full problem and the reference design require a subscription.
Coding QuestionsBloombergMessage Logger with a Chain of Handlers
2/5A coding question on object-oriented design: build a logger that sends each message through an ordered, extensible list of components. It checks interface choice, ordering rules and how messages change as they pass along.
Coding QuestionsOracle
Studied alongside
Classes interview FAQ
- How many Classes interview questions are there?
- 6 reported questions, mostly Coding Questions.
- Which companies ask Classes questions?
- Amazon (3), Blizzard (1), Bloomberg (1), Oracle (1).
- How hard are Classes questions?
- They average 2.7 out of 5: 2 at 2/5, 4 at 3/5.