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?
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.
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).
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.
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
HTMLforms 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.