Author Archives: Saurabh Gupta

About Saurabh Gupta

My Name is Saurabh Gupta, I have approx. 10 Year of experience in Information Technology World manly in Java/J2EE. During this time I have worked with multiple organization with different client, so many technology, frameworks etc.

How to Reverse Number?


How to Reverse Number Java Program? Continue reading

Posted in Java, Algorithm, Programming Test | Tagged , , | Leave a comment

How to Prints Alphabets by Java Loops


How to Prints Alphabets by Java Loops Continue reading

Posted in Java, Algorithm, Data Structure, Programming Test | Tagged , , , , | Leave a comment

Frequently Asked Algorithms and Programs in Interviews


Frequently Asked Algorithms and Programs in Interviews to test logic Continue reading

Posted in Algorithm, Data Structure, Java, Programming Test | 7 Comments

How to Swap two Numbers with and with out temporary variable.


How to Swap two Numbers with and with out temporary variable. 1: swap Numbers with temporary variable 2: Swap Numbers without temporary variable by Addition and Subtraction 3: Swap Numbers without temporary variable by multiplication and division Continue reading

Posted in Algorithm, Data Structure, Java, Programming Test, Uncategorized | Tagged , , , , , | 1 Comment

How to exclude fields from JSON while parsing by GSON/GsonBuilder?


exclude fields from JSON while parsing by GSON/GsonBuilder?
@Expose and CustomeExclusionStrategy Continue reading

Posted in GSON, JSON, Uncategorized | Tagged , , , , , , , | 1 Comment

How to do JSON pretty formatting and Null Serialization (GSON/GsonBuilder)


How to do JSON pretty formatting and Null Serialization (GSON/GsonBuilder) Continue reading

Posted in GSON, JSON, Uncategorized | Tagged , , , , , , | 2 Comments

How to convert Java object to / from JSON by (GSON)


GSON comes with simple JAVA API’s toJson()/fromJson() to convert JAVA object to/from JSON. Below is very simple example to convert Employee Java object to JSON and Vice versa Continue reading

Posted in GSON, JSON | Tagged , , , | 2 Comments

GSON Introduction


Gson is an open source Java library to serialize and de-serialize Java objects to/from JSON. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source code. Continue reading

Posted in GSON, JSON, Uncategorized | 1 Comment

Log4j2 JSON Configuration for Java Logging Severity Levels, Formatting and Appenders


Log4j2 JSON Configuration for Java Logging Severity Levels, Formatting and Appenders Continue reading

Posted in Centralize logging, Java Logging, LOG4J2, Logstash | Tagged , , , , | 1 Comment

Log4j2 New Features,Compare with Log4j and other Logging Framework


Log4j2 New Features,Compare with Log4j and other Logging Framework benchmark for performance. Continue reading

Posted in Java, Java Logging, LOG4J2 | Tagged , , , , , , ,