Senior Developer Java Interview Questions

5,281 senior 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.

Viewing 411 - 420 interview questions

Glassdoor has 5,281 interview questions and reports from Senior developer java interviews. Prepare for your interview. Get hired. Love your job.