Re: Java 5 and JAva 7
markspace wrote:
ericmiranda7... wrote:
Hello everyone out there. I hope this is the right group to post in.
Yes, it is.
Alright, I'm a total, Total newbie at JAva, Eclipse and the whole
lot. I recently downloaded the book "Java for Dummies 2nd Edition",
which is based on Java 5, and Java 7 is out, am I right? Now the
question is, would it be okay if I continue with the 2nd Edition? Or
is Java 7 totally different? Thank you for your help.
Off the top of my head, later versions of Java were much smaller
incremental changes over Java 5. So you are pretty good.
New features in Java 6:
<http://www.oracle.com/technetwork/java/javase/features-141434.html>
Highlighting one change that affects daily programming:
'@Override' used to be illegal on methods inherited directly from an interface,
being allowed only on methods that overrode a parent class definition.
Since Java 6 you can and should use '@Override' on methods that implement
an interface method directly.
package eg;
public class Example implements Runnable
{
@Override
public void run()
{
}
}
New features in Java 7:
<http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html>
Java 5 is a decent starting point, with generics and the concurrency
library being introduced then. I'm trying to remember for sure, but I
think also the new memory model was introduced with Java 5, which is
Yes, that's right.
The Java 5 JLS, good for Java 5 and 6, is The Java Language Specification,
Third Edition
<http://docs.oracle.com/javase/specs/jls/se5.0/html/j3TOC.html>
For Java 7 it's the "Java SE 7 Edition"
<http://docs.oracle.com/javase/specs/jls/se7/html/index.html>
hugely important. So I think you are OK with Java 5 to start. Also a
"For Dummies" book is unlikely to go into too much detail, so I doubt
you'd run into any of the changes too soon anyway.
The Java tutorials on the oracle.com site aren't a bad place to start.
--
Lew