Showing posts with label JAVA. Show all posts
Showing posts with label JAVA. Show all posts

Sunday, 5 September 2021

XML and Json Response Format using Jackson

There will be some scenarios, where you need to send both the XML and JSON output based on the calling client requests. This might become sometimes tricky if we are using...

MapStruts

It's always tough for me to set the values for the POJO classes. If the POJO going to be complex it will kill my whole day. Hence I was googling and...

Sunday, 18 July 2021

Object Mappers in Java

What is the mean by object mapper? As the name suggests mapping the data from one object to another? Consider the situation where you want to convert the object from one form...

Saturday, 10 July 2021

Generating the Pojo Classes automatically

There are scenarios, where we need to add the new attributes often, then the creation of POJO automatically will be helpful to you. You No need to make a lot of...

Monday, 5 July 2021

Create Xml Using the Stax Processor

StAX is a standard XML processing API that allows you to stream XML data from and to your application.This API is better than the DOM parser in the case of Performance....

Create XML Using DOM Parser in JAVA

The Document Object Model (DOM) is an official recommendation of the World Wide Web Consortium (W3C). DOM reads the entire document and will be useful in case of the size of...

Tuesday, 17 March 2020

The Word Static

Static means the data tied to class, instead of the instance of the object.  With ordinary non-static method, you have to create an instance of the class and use it...

Wednesday, 7 August 2019

Object Cloning in Java

Object cloning is nothing but creating the extra copy of the object. The clone( ) method generates a duplicate copy of the object on which it is called. Only classes...

Sort Using Comparable and Comparator in Java

Using Comparable First we can understand what is comparable. A comparable object is capable of comparing itself with another object. Its Interface and when we want to sort any Pojo...

Tuesday, 23 July 2019

Lamda Expression

What is Lamda Expression. It is essentially, an  anonymous (that is unnamed) method. However this method is not executed on its own. Instead it is used to implement a method...