Welcome to HTS DogLoad!
First thing's first, Java != JavaScript. Basic 4 and 5 used
JavaScript injection. Not Java. Java is a compiled, multi-platform, multipurpose sand-boxy language, while JavaScript is a very versatile web scripting language used for many different user interface features in websites.
If you are new to programming and web hacking in general, head over to
http://www.w3schools.com where you can study HTML and JavaScript a bit more in-depth, and then proceed to learning languages such as PHP, CSS, etc. But w3schools relates mostly to web programming, if you want to make programs to run on your computer and do fancy hacks of all sorts, you must learn the C programming language, or some similar programming language. If you want to specialize in Windows hacking, C really is the #1 way to go because people have invented how to do absolutely anything in C. Unfortunately I don't have a good site for C tutorials, may someone else please post one?
If you want to look for books on programming and hacking, look at the books forum, we have a wide variety of books listed there which we discussed and described.
And one of the most commonly repeated pieces of advice here is 'google is your friend' (or you can use the forums search function to get a much more narrow field of topics).
-WallShadow <3