Convert object having date to/from JSON in java (Jackson ObjectMapper example)
Given the user defined object or POJO having date field, we would like to serialize the POJO to JSON. During serialization, we […]
Given the user defined object or POJO having date field, we would like to serialize the POJO to JSON. During serialization, we […]
Given a list of user defined objects, we would like to convert list of pojo objects to JSON (and JSON to list
Given an array of user defined objects, we would like to convert array of object to JSON and JSON to array
Given Map of String & object (Map<String,Object>), we would like to convert Map to/from JSON. We will use the jackson’s objectmapper to serialize
Given user defined object in java. Serialize deserialize POJO to JSON string – jackson objectmapper i.e. convert data members of object to json string.
Given the list of objects, convert list of objects to map. We will use lambda streams to convert list objects
Initialize One, Two & Three dimensional array in java. Create & print or loop/iterate static & dynamic multi-dimensional array in java (example).
Given the user defined object or POJO, having Date field, we would like to serialize the POJO to JSON. During serialization, we would
Given an list of user defined objects, we would like to convert list of pojo objects to JSON (and JSON to list
Given an array of user defined objects , we need to convert array of POJOs to JSON String. Also, we will convert
Given the Map of String and object (Map<String,Object>), we would like to convert Map to JSON and vice versa. We will use the
1. Read file using java 8 lambda stream Given a file, read input file by line by line using lambda
Java 8 has introduced default method for interfaces, which provides the default implementation of method. Prior to java 8 interfaces
1. What is functional interface in java8? The interface having one abstract method is called functional interface. The interface can
1. Functional Interface java 8: The interface having one abstract method is called the functional interface. E.g. Comparator, Runnable interface.
Given user defined object or POJO, we would like to serialize object in java. We will use Externalizable interface, so that
Given an array of integers , find out maximum & minimum number in array using linear search. e.g. input array is { 50,
Given sorted integer array in java. Find or search element/integer in an array using binary search algorithm (with example). Binary
Binary search is a divide and conquer algorithm. Divide and conquer algorithm is process of dividing the input data-set after
RESTFul web service using spring AOP log request,response information. Create PointCut expression Before, After, Around in REST Web Service.
Aspect Oriented programming in spring The aspect oriented programming (aop) is very important module of spring framework. As the nomenclature
Custom thread pool implementation in java example without executor framework. Create thread class & thread pool using blocking queue (example)
File upload is very common scenario in today’s web application. In this post, We will discuss about RESTFul web service exposing
What is Filter in real world ? The literal meaning of Filter “a porous device for removing impurities or solid
Given a base & concrete class in java. Base class is not Serializable Concrete class implements Serializable interface and extending
Given a base & concrete class in java. Base class is Serializable (implements Serializable interface). Concrete class is extending the
Serialization is the process of saving the objects loaded in the memory to corresponding streams. e.g Save the objects to
Serialization is the process of saving the objects loaded in the memory to corresponding streams e.g Saving the objects to
Given a user defined object, we would like to convert Object( or POJO) to JSON and vice versa. We will use the Google gson
Given the arraylist of user defined objects or POJO (let we have person class). List <Person> personList Find or Search