• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is learning Java 5 useful?  RSS feed

 
sunusi Muhammad
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I bought java textbook head first java it's excellent I want to learn from it but its java version 5 but I see a lot of java version like 6 and 8 , so i was confused may be I'm learning old java please explain to me about those version. thanks
 
Jason Bullers
Ranch Hand
Posts: 115
11
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That book should still be good enough to teach you the basics of Java. The changes in Java 6 will not have much (if any) impact on the way you write Java code. Java 7 will have only minor, mostly cosmetic impact with features such as the diamond operator (List<String> = new ArrayList<>();), multi-catch (catch (MyException1 | MyException 2 e) { ... }), underscores in numbers (int reallyBigNumber = 1_000_000_000;), etc.

Java 8, on the other hand, represents the largest change to the Java language since Java 5 (arguably an even bigger change since it brings with it a bit of a paradigm shift). That said, you should still be okay learning Java with your book, but be prepared to find additional material that covers Java 8 and everything new that has come with it (especially lambdas, the streams API, and default methods in interfaces).
 
sunusi Muhammad
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you so much
 
Knute Snortum
Sheriff
Posts: 4281
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to learn Java 8, a good book to read after you are proficient in Java basics is Java 8 In Action.
 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch

Head First Java will probably be available second‑hand for a good price. As far as I know, it has not got a more recent edition than that for Java5.
 
Isaac Ade
Greenhorn
Posts: 7
Eclipse IDE Java Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First download Eclipse Luna Mars then, I recommend learning how to produce the HelloWorld code you can do this by looking up a YouTube video, but make sure you understand why it works and how it works as well as understanding what each bit of code does. After you've learnt that move onto variables.
This link contains a bunch of Java tasks you maybe might want to do after you gain more knowledge on Java.
https://drive.google.com/folderview?id=0B45uYYB1Jl7WY3AwcEl3MlY3blk&usp=sharing
 
Campbell Ritchie
Marshal
Posts: 56576
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disagree. You can do more harm than good by starting with IDEs too early, because the IDE has a steep learning curve when you need all the brain‑power you can find. You cannot learn object programming from the usualy hello world program; in my opinion the only use for a hello world program in Java® is to confirm you have installed the JDK correctly.
 
Isaac Ade
Greenhorn
Posts: 7
Eclipse IDE Java Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Disagree. You can do more harm than good by starting with IDEs too early, because the IDE has a steep learning curve when you need all the brain‑power you can find. You cannot learn object programming from the usualy hello world program; in my opinion the only use for a hello world program in Java® is to confirm you have installed the JDK correctly.

Interesting opinion there I have never really thought of the hello word program that way, but I still think that tutorial videos coupled with books are a good way to start.
 
Stevens Miller
Bartender
Posts: 1445
30
C++ Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree that Head First Java is still relevant and a good starting place, even though it has not been updated. (Ought we to consider asking them to do so, or, maybe, offering to do so here in some way?) It's a good book and the basics remain the same. There are a few antiquated classes mentioned, but the concepts are still valid.

On the IDE issue: for a person new to programming, I agree that IDEs can be complicated to the point of intimidating, and they should be avoided. If a skilled programmer just wants to learn a new language, I'd say pick a popular IDE and go wild with it. As to Hello World, I dunno... I think everyone should start any new language with Hello World, but maybe just, as Campbell says, to make sure the thing will compile and run your code. It's always psychologically reassuring to me, to see that, yes, I can write and run a program in HyperFlocaBabble 6.3, or whatever I'm told I have to learn this year.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!