Head First Java by kathy Sierra is the best out there for beginners. You might think the book is weird, so many pictures . But the truth is, it expedites the learning process. Of course, there are many free lessons out there. javaranch.com is a great site - started by kathy sierra too.
javascript is a scripting language, a client side scripting used to handle user events before requests are sent to the web server, i.e. mouse move + keypress events, so to speak. Then when the request is sent to the server, java, a programming language, can be used to leverage the workloads; by processing the incoming request. In web "term", you usually call the java objects as servlets. In a nutshell...
~za~
You can't bring back a dead thread!