Java 8 has been released in March 2014, so it’s one of the hot topics in java interview questions. If you answer this question clearly, it will show that you like to keep yourself up-to-date with the latest technologies. Java 8 has been one of the biggest releases after Java 5 anno...
Another popular Java tricky question, As I said method overriding is a good topic to ask trick questions in Java. Anyway, you can not override private or static method in Java, if you create similar method with same return type and same method arguments that's called method hiding. 20. Wh...
11. Can you write Critical section code for singleton? check here10 Interview questions on Singleton Pattern in Java 12. Can you write code for iterating over hashmap in Java 4 and Java 5 ? Tricky one but he managed to write using while and for loop. 13. When do you override hashcode...
Singleton in Java is a class with just one instance in whole Java application, for example java.lang.Runtime is a Singleton class. Creating Singleton was tricky prior Java 4 but once Java 5 introducedEnumits very easy. see my articleHow to create thread-safe Singleton in Javafor more detail...
this time we will take a look at40 core Java questions from the telephonic roundofJava Programming interviews. Phone interviews are usually the first step to screen a candidate after selecting his resume. Since it's easy to call a candidate than to schedule a face-to-face interview, book ro...
Tricky Interview Questions: Learn how to navigate and answer complex questions that test your in-depth knowledge of ASP.NET and related technologies. Fundamental Clarity: Rather than just memorizing questions and answers, I emphasize a clear understanding of core concepts and principles. Hands-On Prac...
Tricky Java multithreading interview questions – Part 1 July 18, 2024byT Tak 1. What is the difference between synchronized and volatile? Answer: Sample Code: 2. What is the purpose of the ThreadLocal class? Can you provide a use case? Answer: Use Case: Sample Code: 3. Explain the diff...
The Online Java Test by Mercer | Mettl has been designed to help recruiters evaluate candidates' knowledge and proficiency in Java.