Blog Archives

06: HashMap & HashSet and how do they internally work? What is a hashing function?

HashMap & HashSet are not only one of the frequently used data structures, but also one of the popular interview topics.… … Read more ›...



5 Java Object class methods interview questions & answers

Q1. What are the non-final methods in Java Object class, which are meant primarily for extension? A1. The non-final methods are … … Read more ›...



8 Java immutable objects interview questions & answers

Best Practice: “Classes should be immutable unless there’s a very good reason to make them mutable….If a class cannot be … … Read more ›...



Java enum interview questions & answers

Covers the power of enumand 3 design patterns that can be applied with the help of enums. Q1. Why is … … Read more ›...



Java serialization, cloning, and casting interview Q&A

Q1. Which Java interface must be implemented by a class whose instances are transported via a Web service? a. Accessible b. … … Read more ›...



Mocks, stubs, domain, and anemic objects interview Q&A

Q1. What are mock objects? A1. Mock objects are used in unit testing to ensure that your tests don’t fail due … … Read more ›...



Object equals Vs == and pass by reference Vs value

Q1. What is the difference between “==” and equals(..) method when comparing 2 objects?
A1.It is important to understand the …

Read more ›



Java & Big Data Categories

Top