Java Collection Interview Questions

1. What is Java Collection Framework? List out some benefits of the Collection framework.Java Collection Framework is a collection of data structure tools with the best-optimized performance, for example, fetching data from ArrayList gives O(1) times complexity and updating data in LinkedList takes O(1) times complexity. It provides many tools…

Continue reading

Non-blocking Algo

Pre-requisites – Multi-threading. What is blocking?Blocking algorithm allows only one thread at a time to access a shared resource in a multi-threaded environment. A resource needs to be shared among a huge number of users but only one user is allowed to use it, a user uses a thread to…

Continue reading