The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.
XML processing can sometimes be a memory intensive operation. Applications, especially those that accept XML, XSD and XSL from untrusted sources, should take steps to guard against excessive memory consumption by using the JAXP processing limits provided in the JDK.
Developers should evaluate their application's requirements and operating environment to determine the acceptable limits for their system configurations and set these limits accordingly. The size related limits can be used to prevent malformed XML sources from being processed without consuming large amount of memory, while an EntityExpansionLimit will allow an application to control memory consumption under an acceptable level.
In this tutorial, you are introduced to the limits, and you will learn how to use them properly.