• BlockingQueue in java
    05 December

    BlockingQueue in java

    BlockingQueue is introduced in java with concurrent package with ConcurrentHashMap. It is thread safe queue to put and take elements from it. BlockingQueue is special type of queue which is used when one thread produces object and another thread consumes it. Producer thread will keep inserting objects to queue until it reaches upper limit. Once […]

  • 17 November

    Get Level of A Node in Binary Tree in Java

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. 1. Overview In this article, we will explore how to get the level of node in a binary tree in Java using recursive and iterative solutions. 2. Introduction to Problem Statement We will search for a node […]

  • 12 November

    Add two numbers represented by Linked List in java

    If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. Java Linked List Interview Programs: How to reverse a linked list in java How to reverse a linked list in pairs in java How to find middle element of linked list in java How to detect […]

  • 06 November

    Vertical sum of binary tree in java

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. This is 10th part of java binary tree tutorial. In this post, we will see how to print vertical sum of binary tree nodes in java. Below diagram will show vertical sum for binary tree. Algorithm: Steps […]

  • 28 October

    RESTful Web Services (JAX-RS) @QueryParam Example

    This post is in continuation with web service tutorial (Part -9). Introduction to web services Web services interview questions SOAP web service introduction RESTful web service introduction Difference between SOAP and REST web services SOAP web service example in java using eclipse JAX-WS web service eclipse tutorial JAX-WS web service deployment on tomcat Create RESTful […]

  • 04 October

    Jackson Streaming API – read and write json

    In this post,we will see how can we will use jackson streaming API to read and write JSON . Java JSON Tutorial Content: JSON Introduction JSON.simple example-read and write JSON GSON example-read and write JSONJackson example – read and write JSON Jackson Streaming API – read and write JSON In previous post, we have seen […]

  • 04 October

    Jackson example – Read and write JSON

    In this post,we will see how can we read and write JSON using Jackson. Java JSON Tutorial Content: JSON Introduction JSON.simple example-read and write JSONGSON example-read and write JSONJackson example – read and write JSONJackson Streaming API – read and write JSON After  reading and writing JSON using GSON,we will use another way(i.e. Jackson) of […]

  • 03 October

    RESTful web services JAXRS json example using jersey

    In this post, we will see RESTful web services JAXRS json example using jersey. Introduction to web services Web services interview questions SOAP web service introduction RESTful web service introduction Difference between SOAP and REST web services SOAP web service example in java using eclipse JAX-WS web service eclipse tutorial JAX-WS web service deployment on tomcat […]

  • 14 September

    Spring Restful web services json example

    In this post, we will see Spring Restful web services json example. Introduction to web services Web services interview questions SOAP web service introduction RESTful web service introduction Difference between SOAP and REST web services SOAP web service example in java using eclipse JAX-WS web service eclipse tutorial JAX-WS web service deployment on tomcat Create RESTful […]