Pinnedanil gola·Jan 19, 2023Nth highest salary using Java Streams APIPrerequisite: One should know how to open streams on Map and how to use sorted by passing Comparator.
Pinnedanil gola·Feb 19, 2023You don’t know Java synchronized keywordWhile taking interviews, I usually asked about synchronized keyword in Java to which I get a proper theoretical answer from nearly…A response icon5A response icon5
Pinnedanil gola·Feb 21, 2023Why have a CompletableFuture when we have an ExecutorService ?I always touch on this topic while interviewing for Java. Why do we need CompletableFuture when we have ExecutorService? Which problem did…A response icon8A response icon8
Pinnedanil gola·May 20, 2023Embracing Virtual Threads in Spring BootIn this blog, we will see how we can take leverage of project loom virtual threads in spring-boot. We will also do some load testing with…A response icon5A response icon5
anil gola·Jan 3, 2024Why Spring Constructor Injection is the recommended approach?This is a question that I have seen candidates struggle to answer. A few months ago, I too used to struggle to answer. For the whole of my…A response icon2A response icon2
anil gola·Jun 24, 2023#4 Asynchronous Programming in Java-Launching Several Tasks with CompletionStage APIsThis blog is in continuation of the previous blog.
anil gola·Jun 18, 2023#3 Asynchronous Programming in Java-Launching Several Tasks ConcurrentlyThis blog is a continuation of my previous blog:
anil gola·Jun 18, 2023Approach to non blocking in Java, part 2This blog is in continuation to my previous blog: https://medium.com/@anil.java.story/concurrent-vs-asynchronous-16a8323c9ccf
anil gola·Jun 6, 2023#1 Asynchronous Programming in Java-Concurrent vs AsynchronousThere are subtle differences between the concurrent and asynchronous programming models, and in this blog, we will precisely define these…
anil gola·Jun 5, 2023CompletableFuture: Querying Multiple Servers Asynchronously, fetching the first resultIn one of our projects, we needed to fetch something from the server, and the result was used further in the code. But the problem with the…A response icon2A response icon2