Using Guice for Dependency Injection

Prerequisite For Injecting dependency using guice, you should first know what is Dependency Injection. Please go through this article to understand Dependency Injection. Introduction Now that we know what is Dependency Injection, we can use it in our code. With dependency injection, objects accept dependencies in their constructors. To construct an object, you need first... Continue Reading →

Advertisements

A Beginner Tutorial To Kotlin – 1

Prerequisite IntelliJ Idea or any other IDE that supports Kotlin syntaxJVM (as Kotlin is a JVM based language) Introduction JetBrains started project Kotlin in 2011. Kotlin is designed to be complied as fast as Java and having the features of Scala. Scala, as JetBrain points out, has a high compilation time. Kotlin has saveral variations... Continue Reading →

A Beginner Tutorial on Java Streams

The screenshot above explains the dictionary meaning of stream. And stream in java is no different. The dictionary meaning says: stream - a continuous flow of liquid, air or gasA quick google search Stream in Java is also a sequence of values. As you can make a dam to aggregate the water in case of... Continue Reading →

A Beginner Guide To Decorator Pattern

Which is your favourite Gun in PUBG? Mine is this one in the picture below. Who will name this? SCAR-L! That's right. It needs 5.56 mm bullet and is pretty handy. More about SCAR-L here. But! let's ask our friends in Pochinki? Has someone got 4x zoom? Why? Because you know that the assault rifle... Continue Reading →

A complete tutorial on Binary Tree

Introduction   Figure 1 shows a Binary Search Tree. This post will start with the motivation of studying BST and gradually move to the related definitions. We will do some hands on coding for simple BST operations and we will end the post by analysing the drawbacks. Where do we use Binary Search Tree? Trees... Continue Reading →

Blog at WordPress.com.

Up ↑