Generic Breadth First Search in Java

Posted on April 19, 2018
When I ask a candidate to code a Breadth First Search in Java, he does it using array of nodes and assuming that nodes are always integer. But when I go deeper and ask them to generalize the Graph where the nodes can be any object like Integer, String or any Custom object which is basically a Generic Graph and ask them to code the BFS for the same, they struggle a lot.

When I ask a candidate to code a Breadth First Search in Java, he does it using array of nodes and assuming that nodes are always integer. But when I go deeper and ask them to generalize the Graph where the nodes can be any object like Integer, String or any Custom object which is basically a Generic Graph and ask them to code the BFS for the same, they struggle a lot.
Read More

Proper Synchronization in Java

Posted on March 8, 2018
In this article I will explain how to properly use synchronization in Java. Many developers think that synchronization is for mutual exclusion. But there is more to it. You can end up with hard to detect bug if synchronization is not properly used.

In this article I will explain how to properly use synchronization in Java. Many developers think that synchronization is for mutual exclusion. But there is more to it. You can end up with hard to detect bug if synchronization is not properly used.
Read More

Custom Annotation in Java

Posted on March 3, 2018
In this post I will explain how to write your own custom annotation in Java.

Annotations are really great. They explain a lot about your method, field or class. For example if you annotate a method as @Test, it will convey the information to Junit to run it as a test method. @Override annotation makes the compiler to check that if the method presents in the super class or not. In fact it may help you to resolve some silly mistakes. In this post I will explain how to write your own custom annotation.
Read More

The Java Enums

Posted on Feb. 25, 2018
java-enums

In this post I will discuss the power of Java enums. Java enums are very powerful. Generally most java developers are not aware of the full potential of the Java enums. I will show you how Java enums weigh much higher over int constants.
Read More

Design a Parking Lot

Posted on Feb. 19, 2018
design-a-parking-lot

In this post I will discuss how to approach any design problem and we will design a parking lot for an example.
Read More

Email Service with Spring Boot

Posted on Nov. 11, 2017
email-service-with-spring-boot

In this article I will explain how to write an Email Service using Spring Boot. I will also show you how to use Rabbit MQ to receive the message to be sent using the email service.
Read More

Send Image in Form Data in Angular

Posted on Nov. 11, 2017
send-image-in-form-data-angular

I struggled a lot while trying to send an image in form data in angular js to REST end point. I hope this article will help you to successfully send an image in form data.
Read More

Send form data using Feign in Spring Boot

Posted on Nov. 11, 2017
send-form-data-using-feign-spring-boot

Feign acts as a proxy to hide the actual services. The user has the impression that it's getting the response from only one service. But behind the scene Feign acts on behalf of the user and requests the corresponding services to get or set data. In this article I will explain how we can send form data using Feign to an actual service.
Read More

Oauth Integration with Spring Security

Posted on Nov. 10, 2017
oauth-spring-security-integration

I will explain about Spring Security using oauth 2.0 in details with runnable code. I will explain how to create a authorization server and generate authorization token and use the same to access the protected resources.
Read More

profile image

Kaushik Baruah


ABOUT

My name is Kaushik Baruah and I am the chief blogger on this Blog and here I like to share my experience as software engineer and research engineer with my online readers. I will try to focus on career planning, latest emerging technologies and tutorials on various computer science subjects. You can follow me on Twitter, Facebook and Google+

GET FREE UPDATES

POPULAR POSTS