Sr Java Developer Interview Questions

5,563 sr java developer 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 441 - 450 interview questions

See Interview Questions for Similar Jobs

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