Using Code Examples

This tutorial is here to help you get your job done. In general, you may use the code in this tutorial in your programs and documentation. You do not need to contact Oracle for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this tutorial does not require permission. Selling or distributing a DVD of examples from Oracle tutorials does require permission. Answering a question by citing this tutorial and quoting example code does not require permission. Incorporating a significant amount of example code from this tutorial into your product's documentation does require permission. We appreciate, but do not require, attribution. An attribution usually includes the title, author, uploader, and . For example: "Hardcore Java, by Robert Simmons, Jr. Copyright 2001 Oracle, 0-596-00568-7." If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at permissions@bugmenot.com.

      
Comments