Memorynotfound Java Programming Tutorials
Sorted List Example – Simple Reverse and Comparable Sort
In this Sorted List Example we will show how you can sort a java.util.List using the java.util.Collections Class. We can sort collections in Ascending or Descending order. We also show you how you can...
Create and Configure Log4j2 Async Logger
Project structure In this example we will configure a Log4j2 Async Logger. Asynchronous logging can improve your application’s performance by executing the I/O operations in a separate thread. Asynchronous Loggers internally use the Disruptor,...
How to Configure Maven Character Encoding
In this example we will explain how you can configure Maven Character Encoding. There are various ways you can specify encoding for Maven. Each with there benefits and drawbacks. The problem Whenever you see...
Custom Error Handler while Validating XML against XSD Schema
In this example we create a Custom Error Handler while Validating XML against XSD. We use the javax.xml.validation.Validator to check the XML document against the XSD schema. We can create a custom error handler...
Get Line Number from XML Validation against XSD Schema
In this example we will grab the Line and column number from the validation exception while validate XML against XSD Schema. We use the javax.xml.validation.Validator to check the XML document against the XSD schema....
Validate XML against XSD Schema using Java
In this example we will Validate XML against XSD Schema. We use the javax.xml.validation.Validator to check the XML document against the XSD schema. Be careful because the validator is not thread safe. It is...
Get Last Day Of The Month From Date Object
In this example we show you how you can get the last day of the month. Most of the time we use a java.util.Date Object to represent a Date. We can use the java.util.Calendar...
Get The First Day Of The Month From Date Object
In this example we show you how you can get the first day of the month. Most of the time we use a java.util.Date Object to represent a Date. We can use the java.util.Calendar...
Disable Http Session in Java Web Application
In this example we will enforce the prevention of using Http Session in a Web Application. If you are working in a Team and you want to enforce your team to not using the...