It’s a great design question and asked a lot in java interviews. This post provides all the differences between abstract class and interface. When should we use interface over the abstract class and vice versa? The post also explains how to use abstract class and interface to create a flexi...
While not requiring very complex algorithms or data structures, this java technical question is still not easy to get completely right on the first try. There are several edge cases that need to be taken into account. Moreover, the question as stated is ambiguous in various ways, forcing the...
Another good question that is usually followed up after answering how hashmap works. The most important constraint in a Map is thatwe must be able to fetch the ‘Value‘ object back in the future using the ‘Key‘ object. Otherwise, there is no use of having such a data structure. If ...
This is a verypopular tricky Java questionand its tricky because many programmer think that finally block always executed. This question challenge that concept by putting return statement in try or catch block or calling System.exit from try or catch block. Answer of this tricky question in Java...
8. What is Java-based Configuration in Spring? The central artifacts in Spring’s java-configuration support are@Configurationannotated classes and@Beanannotated methods. The@Beanannotation is used to indicate that a method instantiates, configures and initializes a new object to be managed by the ...
[Multi threading Interview Question ]Rate Limiter Implementation in java There was one interesting problem I have encounter while preparing for a multithreading coding interview. Question: We have an application for which we need to implement RateLimiter, Rate Limiter is an interface which will pla...
Java Question for InterviewDas gefällt dir vielleicht auch Learn Frontend Web Dev [PRO] Bildung AWS SAA Self Study Bildung Java Programming - Learn code Bildung uCertifyPrep CompTIA ITF+ Bildung Maths Quiz Trivia Bildung Java Interview Questions ...
Spring:https://spring.io/guides Redis :https://redis.io/documentation Dubbo:http://dubbo.apache.org/zh-cn/docs/user/quick-start.html ShardingJDBC:https://shardingsphere.apache.org/document/current/cn/features/ 在线阅读 使用语雀提供了较好的阅读体验 ...
has seen this question on core Java or J2EE interview. Well there are many difference between them but most important isthread-safety,HashMapis not thread-safe whileHashtableis thread-safe collection. SeeHashtable vs HashMap in Javafor more differences between HashMap and Hashtable in Java. ...
java interview question: what is jit? jit stands for “just in time”. as discussed, the jvm executes bytecode. however, if it determines a section of code is being run frequently it can optionally compile a section down to native code to increase the speed of execution. the smallest bloc...