Developer Java Interview Questions

30,911 developer java interview questions shared by candidates

Implement a rate limiter that upon construction is given an integer representing the number of times a target resource is accessible during a fixed 1-minute time window. The interface would declare a single method: boolean canAccess() that would return true if a resource can be accessed immediately during the current time window, false otherwise. Additional requirements: * You can't use any helper thread to maintain state. * Must maintain time complexity of O(1) * Must be thread safe.
avatar

Senior Java Developer

Interviewed at Cybereason

2.8
May 18, 2023

Implement a rate limiter that upon construction is given an integer representing the number of times a target resource is accessible during a fixed 1-minute time window. The interface would declare a single method: boolean canAccess() that would return true if a resource can be accessed immediately during the current time window, false otherwise. Additional requirements: * You can't use any helper thread to maintain state. * Must maintain time complexity of O(1) * Must be thread safe.

2nd round live coding: From a blank editor write a function that calculates all possible multiplications between a List of Positions and a List of Scenarios - we do not care about what these are and how the calculation works.
avatar

Java Engineer

Interviewed at Morgan Stanley

3.9
Feb 17, 2022

2nd round live coding: From a blank editor write a function that calculates all possible multiplications between a List of Positions and a List of Scenarios - we do not care about what these are and how the calculation works.

Viewing 3121 - 3130 interview questions

Glassdoor has 30,911 interview questions and reports from Developer java interviews. Prepare for your interview. Get hired. Love your job.