Java Software Developer Interview Questions

4,192 java software developer interview questions shared by candidates

Variant of LeetCode 1169. Invalid Transactions and then write a Unit Test to verify the solution. /* Fraud Detection: Find Suspicious Transactions A bank wants to detect fraudulent transactions. A transaction is suspicious if: - The same user makes two transactions within 100 seconds of each other. - A single transaction amount exceeds $10,000. Return a list of users who have made fraudulent transactions. Example Input: transactions = [ { "userId": "Alice", "amount": 5000, "timestamp": 10050 }, { "userId": "Alice", "amount": 2000, "timestamp": 10200 }, { "userId": "Bob", "amount": 12000, "timestamp": 10400 }, { "userId": "Alice", "amount": 6000, "timestamp": 10700 } ] Output: ["Alice", "Bob"] */
avatar

Staff Software Engineer (Java)

Interviewed at Sonar

3
Sep 8, 2025

Variant of LeetCode 1169. Invalid Transactions and then write a Unit Test to verify the solution. /* Fraud Detection: Find Suspicious Transactions A bank wants to detect fraudulent transactions. A transaction is suspicious if: - The same user makes two transactions within 100 seconds of each other. - A single transaction amount exceeds $10,000. Return a list of users who have made fraudulent transactions. Example Input: transactions = [ { "userId": "Alice", "amount": 5000, "timestamp": 10050 }, { "userId": "Alice", "amount": 2000, "timestamp": 10200 }, { "userId": "Bob", "amount": 12000, "timestamp": 10400 }, { "userId": "Alice", "amount": 6000, "timestamp": 10700 } ] Output: ["Alice", "Bob"] */

Viewing 591 - 600 interview questions

Glassdoor has 4,192 interview questions and reports from Java software developer interviews. Prepare for your interview. Get hired. Love your job.