• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Any good resources for learning java?

Ill be enrolled in some uni modules to do with java, ive done some basic stuff with javascript and the modules im studying are designed to take into account what ive learned before so im not being thrown in at the deep end but i would still like to get a bit of a head start anyway over summer. I gather java is a different beast from javascript but the syntax is similar?

Any ideas guys?
 
Funnily enough that uni course you are doing would be an ideal place to learn Java. You're gonna be very bored if you learn Java over the summer, but then perhaps you could use your free time to pursue other more interesting work.

First I recommend reading up on Java itself, and its JVM. A very basic intro - unlike Javascript, Java is a compiled language. That is, it has to be compiled before it can be run. Unlike C and C++, its not compiled into native code, but into bytecode. Native code is code that your machine could run directly, bytecode is code that can be run by a virtual machine. Think of a virtual machine as a hypothetical machine that has its own architecture. The virtual machine then runs on your PC. So, instead of writing code for say Windows, you write code for the JVM, which runs on pretty much all platforms and a lot of CPU architectures.

Then, just find a list of tutorials and go through them. Download eclipse or netbeans. Both very easy to use.
 
In terms of books Deitel & Deitel's Java: How to Program is another good one if you can't get ahold of Head First. Admittedly, Head First is more fun to read. Both describe what's going on under the hood rather than simply throwing out code examples for your own use later. At the same time, both provide code examples that are helpful.

I am surprised, however, that you are being referred to an IDE to start. Usually new users are recommended to use the command line compiler. Not that I started with it, but still 🙂

You'll want to head on over to Oracle's web site & download the latest JDK (which will have the developer's kit & the JRE that is needed to run java programs).

For a great web resource: www.javaranch.com
 
I am surprised, however, that you are being referred to an IDE to start. Usually new users are recommended to use the command line compiler. Not that I started with it, but still

Really? I guess that's one way to winnow out the lightweights.
 
Excellent thanks for the help guys, ill check this stuff out.

Funnily enough that uni course you are doing would be an ideal place to learn Java. You're gonna be very bored if you learn Java over the summer, but then perhaps you could use your free time to pursue other more interesting work.

Yup definitely ill be starting the starter module for it in october, however ill only be about 60% finished on that starter module when i begin the slightly more advanced module in february, its the open university so its not a set curriculum. I just wanna make sure i dont get in over my head and i get a good start with java.
 
Ha. I pretty much know Java but was at the book store and checked out Head First Java and ended up buying it. It's very entertaining.
 
Back
Top