Pinnedanil golaNth highest salary using Java Streams APIPrerequisite: One should know how to open streams on Map and how to use sorted by passing Comparator.Jan 19, 2023Jan 19, 2023
Pinnedanil golaYou 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…Feb 19, 20235Feb 19, 20235
Pinnedanil golaWhy 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…Feb 21, 20237Feb 21, 20237
Pinnedanil golaEmbracing 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…May 20, 20235May 20, 20235
anil golaWhy 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…Jan 32Jan 32
anil gola#4 Asynchronous Programming in Java-Launching Several Tasks with CompletionStage APIsThis blog is in continuation of the previous blog.Jun 24, 2023Jun 24, 2023
anil gola#3 Asynchronous Programming in Java-Launching Several Tasks ConcurrentlyThis blog is a continuation of my previous blog:Jun 18, 2023Jun 18, 2023
anil golaApproach to non blocking in Java, part 2This blog is in continuation to my previous blog: https://medium.com/@anil.java.story/concurrent-vs-asynchronous-16a8323c9ccfJun 18, 2023Jun 18, 2023
anil gola#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…Jun 6, 2023Jun 6, 2023
anil golaCompletableFuture: 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…Jun 5, 20232Jun 5, 20232