#java
Read more stories on Hashnode
Articles with this tag
Imagine a scenario where you're implementing a stock price ticker. You want to stream real-time stock prices to multiple users. Each user should see...
@SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class,...
When does the garbage collector free up heap memory? All is taken care of by JVM Algorithm used by GC: Mark & Sweep Mark: JVM mark those objects which...
When Inheritance and when Aggregation? Inheritance should be used only if the relationship is-a is maintained throughout the lifetime of the objects...
CompletableFuture It is used to achieve asynchronous computation. Here I have created two different thread pool one for IO bound and another for CPU...
A common real-life example of a shutdown hook in Java is when a server application needs to gracefully shut down and release resources when it...