Software Developer Java Interview Questions

4,194 software developer java interview questions shared by candidates

You are required to design and implement a stack data structure that supports the following operations, all in O(1) time complexity: 1️⃣ push(x) — Pushes an integer x onto the stack. 2️⃣ pop() — Removes the element on the top of the stack. 3️⃣ top() — Gets the top element of the stack. 4️⃣ getMin() — Retrieves the minimum element currently in the stack. 5️⃣ getMax() — Retrieves the maximum element currently in the stack.
avatar

Software Engineer - Java Developer

Interviewed at IBS Software

3.7
Jun 22, 2025

You are required to design and implement a stack data structure that supports the following operations, all in O(1) time complexity: 1️⃣ push(x) — Pushes an integer x onto the stack. 2️⃣ pop() — Removes the element on the top of the stack. 3️⃣ top() — Gets the top element of the stack. 4️⃣ getMin() — Retrieves the minimum element currently in the stack. 5️⃣ getMax() — Retrieves the maximum element currently in the stack.

What would you implement to process this string containing this arithmetical expression? (compiler exercise for 3h) What algorithm would you implement for finding at which step of the ladder the eggs would break if you had 1 egg only? if you had a basket of eggs...? What did you learn about yourself in the last 3-4 months? Cite 4 qualities of yours. What problem did you have at work recently? What did you do in there?
avatar

Software Engineer - Java Developer

Interviewed at Sonar

3
Aug 26, 2022

What would you implement to process this string containing this arithmetical expression? (compiler exercise for 3h) What algorithm would you implement for finding at which step of the ladder the eggs would break if you had 1 egg only? if you had a basket of eggs...? What did you learn about yourself in the last 3-4 months? Cite 4 qualities of yours. What problem did you have at work recently? What did you do in there?

Tech 1: Write a function which looks for two elements in an array whose sum is a specific number. Can you do it in O(1) time? Tech 2: A very simple parser of expressions. Build a syntax tree, evaluate the expression and find operations resulting in division by zero.
avatar

Java Software Developer

Interviewed at Sonar

3
Sep 5, 2022

Tech 1: Write a function which looks for two elements in an array whose sum is a specific number. Can you do it in O(1) time? Tech 2: A very simple parser of expressions. Build a syntax tree, evaluate the expression and find operations resulting in division by zero.

Viewing 3191 - 3200 interview questions

Glassdoor has 4,194 interview questions and reports from Software developer java interviews. Prepare for your interview. Get hired. Love your job.