Open Source Code is Copyrighted Material

Because of this, the source code you find in JExamples can be used in one of two ways:
  1. Read the code and learn from it.
  2. Copy the code into the code you are developing, for example, by copy-and-paste. But doing that makes your code a derivative work, and therefore it must obey the license terms of the open source product you are copying from.

    The search results contain a © symbol, which can be clicked to view the license for the product that provides the java example. The search results also show the product's icon or name, which can be clicked to visit the open source product's home page.

Example - Derivative Work Copyright Notices

Here is an example of the copyright notices for a derivative work. This example was taken from a source file in Apache Ant.
 * Copyright  2003-2004 The Apache Software Foundation
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.

 * This code is based on code Copyright (c) 2002, Landmark Graphics
 * Corp that has been kindly donated to the Apache Software
 * Foundation.

Learn More

Recommended book: