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.
Sr Java Developer Interview Questions
5,563 sr java developer interview questions shared by candidates
1)if you get 1000 requests for you api developed, but your hardware can handle only 200 then how can you handle load?
difference between HashMap , HashTable ConcurrentHashMap?
Do you know react. Js
Where you have used spring aop?
How to achive responsiveness using css what is media query
If parent class is serialized then how can we avoid serialization for the sub class ?
What is Deadlock?
What is method overloading and method overriding?
What is deadlock in java?
Viewing 441 - 450 interview questions