Skip to main content
GameDev.net gamedev.net
🔒 Locked

Learning Java: Where to start?

Started by mrwaffles829 Oct 8, 2011 at 9:20 AM 12 replies 5.3k views
Original Post
mrwaffles829
mrwaffles829
I was wondering if anyone had some good resources for learning java and some tips on the best order in which to learn the concepts of java.

I have some coding experience (Interactive C and minor C++ basics) but know nothing about java (syntax wise. I understand the pros and cons of the language and JIT compiler)

My goal is to eventually use LWJGL for some hobbyist game development but for some reason I'm having a hard time finding up to date java resources on the web.
dfcollinson
dfcollinson
I guess you could start with some simple tutorials just to get a feel for the syntax, even though it is similar to c++.
This is a good website to get your started:
http://www.freejavaguide.com/corejava.htm

If you haven't already, download netbeans. I don't know any others but netbeans is okay, can be annoying if you're use to visual studio though.
mrwaffles829
mrwaffles829

I guess you could start with some simple tutorials just to get a feel for the syntax, even though it is similar to c++.
This is a good website to get your started:
http://www.freejavag...om/corejava.htm

If you haven't already, download netbeans. I don't know any others but netbeans is okay, can be annoying if you're use to visual studio though.


Thank you very much
spacekid434
spacekid434
I might get flamed for this, but the way me and my friend both learned Java was by making mods for Minecraft and Bukkit.

It really helped us and when we didn't understand something, Google was our friend or we could just look at the source code/javadoc.

I found that modding really helped me learn Java and I know consider myself quite proficient in it. The rest I learned from the Oracle website.
RanBlade
RanBlade
What I have found useful with Java (since its sytnax is so much like c++) when you need a specific topic (ie I/O , containers..) just google that topic for java.. That is how I have done it and it has worked out quite well.

With the netbeans suggestion out there I would also suggest Eclipse as your IDE (it is very nice, especially if you plan to move to android development)... Also if you ever get to to 3D development , Unity3D (game engine) lets you use java as scripting language for development, as well as UDK (another engine) which uses a form of Java for its scripting.

Also make sure you understand the java pass by value/pass by refrence argument... It can trip a lot of people up.This is a good read on the topic


Edit: Both Unity and UDK are free and perfect for hobbyist. I cant speak for UDK but Unity is also powerful enough to go farther with it if you ever decide to.
Eric Ranaldi a.k.a RanBlade
[size=1]"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...
[size=1]Passion is where great games come from, if you dont live and breathe games you shouldn't be in the games industry."
Morley
Morley
The following link is REALLY useful because it uses real-world examples to explain everything. The code is also well explained and documented when presented to you.



Since its from the developers of the language, its usually up to date with the current version of java.
http://download.oracle.com/javase/tutorial/java/

Hope that helps! PM me with any issues you may have with your early-on projects and I can help to an extent. With difficult errors, always feel free to post on GameDev.net where everyone is really friendly and willing to help.

Cheers!
Morley

Aspiring programmer, modeler and game designer.
Oluf
Oluf
[color=#1C2837][size=2] Unity3D (game engine) lets you use java as scripting language for development[/quote]


Just to clarify: Unity uses javascript, and not java. Just so there is no confusion if you decide to use unity at some point
Its all a matter of will power
JonBonazza
JonBonazza

[color="#1C2837"] Unity3D (game engine) lets you use java as scripting language for development



Just to clarify: Unity uses javascript, and not java. Just so there is no confusion if you decide to use unity at some point
[/quote]

Same with UDK. With that said, both of them use a their own form of javascript with their own tweaks. Untiy's javascript implementation has been officially dubbed UnityScript. Likewise, UDK has dubbed their javascript implementation UnrealScript.
Co-founder/Lead Programmer
Bonafide Software, L.L.C.
Fairmont, WV 26554 US
RanBlade
RanBlade

[quote name='Oluf' timestamp='1318320703' post='4871374']
[color="#1C2837"] Unity3D (game engine) lets you use java as scripting language for development



Just to clarify: Unity uses javascript, and not java. Just so there is no confusion if you decide to use unity at some point
[/quote]

Same with UDK. With that said, both of them use a their own form of javascript with their own tweaks. Untiy's javascript implementation has been officially dubbed UnityScript. Likewise, UDK has dubbed their javascript implementation UnrealScript.
[/quote]

You are right. I am sorry for the mis-information, and thank you for correcting my mistake. I still do recommend both tools though.

Eric Ranaldi a.k.a RanBlade
[size=1]"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...
[size=1]Passion is where great games come from, if you dont live and breathe games you shouldn't be in the games industry."
JonBonazza
JonBonazza

[quote name='jonbonazza' timestamp='1318355240' post='4871512']
[quote name='Oluf' timestamp='1318320703' post='4871374']
[color="#1C2837"] Unity3D (game engine) lets you use java as scripting language for development



Just to clarify: Unity uses javascript, and not java. Just so there is no confusion if you decide to use unity at some point
[/quote]

Same with UDK. With that said, both of them use a their own form of javascript with their own tweaks. Untiy's javascript implementation has been officially dubbed UnityScript. Likewise, UDK has dubbed their javascript implementation UnrealScript.
[/quote]

You are right. I am sorry for the mis-information, and thank you for correcting my mistake. I still do recommend both tools though.


[/quote]

Don't take it the wrong way. I wasn't trying to correct you. Just adding to the discussion.
Co-founder/Lead Programmer
Bonafide Software, L.L.C.
Fairmont, WV 26554 US
RanBlade
RanBlade

[quote name='RanBlade' timestamp='1318356042' post='4871516']
[quote name='jonbonazza' timestamp='1318355240' post='4871512']
[quote name='Oluf' timestamp='1318320703' post='4871374']
[color="#1C2837"] Unity3D (game engine) lets you use java as scripting language for development



Just to clarify: Unity uses javascript, and not java. Just so there is no confusion if you decide to use unity at some point
[/quote]

Same with UDK. With that said, both of them use a their own form of javascript with their own tweaks. Untiy's javascript implementation has been officially dubbed UnityScript. Likewise, UDK has dubbed their javascript implementation UnrealScript.
[/quote]

You are right. I am sorry for the mis-information, and thank you for correcting my mistake. I still do recommend both tools though.


[/quote]

Don't take it the wrong way. I wasn't trying to correct you. Just adding to the discussion.
[/quote]

I am not taking it the wrong way but you were right and I wanted to acknowlege that so the OP was clear that everyone agree's on the actual fact. I appreciate the fact I was corrected and not left contributing to confusing the OP
Eric Ranaldi a.k.a RanBlade
[size=1]"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...
[size=1]Passion is where great games come from, if you dont live and breathe games you shouldn't be in the games industry."
r4idontmy
r4idontmy

I guess you could start with some simple tutorials just to get a feel for the syntax, even though it is similar to c++.
This is a good website to get your started:
http://www.freejavag...om/corejava.htm

If you haven't already, download netbeans. I don't know any others but netbeans is okay, can be annoying if you're use to visual studio though.


Thanks, this looks fairly well for the beginners.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.