#java
Read more stories on Hashnode
Articles with this tag
No, variable access does not use dynamic binding in Java. Instead, variables are resolved at compile-time using static binding. However, methods use...
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...