Kafka Producer Using Java
Implementation of Kafka Producer using Java
Implementation of Kafka Producer using Java
In this tutorial, we’ll learn about Immutable Class and its benefits in thread-safety, caching and collections. We will also look at rules to create immutable classes and eventually we’ll write an Immutable Class from scratch in Java.
Fibonacci series implementation in java is frequently asked question in interview at fresher level. Moreover, it is a very famous example to show how to use recursive function in java.
Bubble Sort is nothing but a comparison algorithm where -
This way large elements are moving towards the last indexes and hence small elements are moving towards the starting indexes which is also termed as smaller elements “bubble” to the top of the list that is why it is called bubble sort.
Implementation of Elevator or Lift has been asked in many interviews. I have tried to implement it using muti-threading and TreeSet. TreeSet is used to store incoming request. It is a good choice here as it removes the duplicate requests and implements NavigableSet which provide you methods such as floor and ceiling.
Elevator in this program implements following features -
This is my favorite weight puzzle which have been asked from me in many interviews over the past few years.
This is my favorite weight puzzle which have been asked from me in many interviews over the past few years.
This puzzle is a mix of weight and math puzzle.
The Contaminated Pills Puzzle also one of my favorite puzzle which is frequently asked in interviews.