Software licence where no licence is found
<p>Is it correct that I can't take the source code from an educational book and write/use in my website or use it for my own teaching purposes? </p>

<p>Or can such code be considered "generic code" without copyright e.g. basic examples of what is new in Java 8 and the study code for Java 8 in the study guide from Oracle. </p>

<p>It would surprise me if I could do what I want with the code, and it would also surprise me if I'm forbidden to use the code, especially if I improve the code and put it in an executable context (now the code is just printed on the page in snippets and never in an executional environment). </p>

<p>Same question for computer science books, I suppose sometimes there is a licence found in computer science books for the source code, and sometimes we may use the source any way we like. </p>

<p>Spec. I'm wondering about the source code in the Java study guides for the Java certificates. I find it cumbersome to use a CD and I would like simple <code>HTML</code>forms with the code to practice and even run the examples where I can and step thru the code examples with a debugger if/when I don'e understand. </p>

<p>Written down computer code is subject to copyright. If you do not have the permission of the owner to copy it you are breaching their copyright unless your use constitutes fair use/dealing.</p>

copyright software open-source-software