The source code provided with samples and demos for the JDK is meant to illustrate the usage of a given feature or technique andhas been deliberately simplified.
Additional steps required for a production-quality application,such as security checks, input validation, and proper errorhandling, might not be present in the sample code.
Usage of sample code in production environments is stronglydiscouraged.
Applications such as the lightweight HTTP server are shipped with the JDK to help developers deploy and test their code easily. They have not been developed in accordance with software development standards for production-quality applications.
Usage of such test and/or support applications in production environments is strongly discouraged.