Just launched Java, should I continue with 7 or 6, so that the code for Android?

As described in the title, I started learning Java from various sources (currently this is a playlist on YouTube). I have JDK 7 installed.

The question is, is there anything that I would learn using java 7 as a starter that would not work on 6? Is there any significant difference from the language?

The language specifics and various things I found on the Internet were too difficult to understand.

+6
source share
4 answers

1) Officially JDK 7 "not supported" for Android

2) No biggie - JDK 7 still works fine with Android. Just go into Eclipse and install compatibility for "Java 6".

3) There is also one minor issue with a .jar subscription. It is probably already fixed in the latest Eclipse / Ant combination (Eclipse 4.2 / Juno), but the workaround is here:

4) BOTTOM LINE: If you have JDK 7, just hold JDK 7.

+1
source

The Android SDK is compatible with Java 6, not Java 7. Learning the specific language features of Java 7 will not do you any good if you plan to code the Android SDK.

The Android SDK has a lot to do with the JDK, but it is not the same. some things are missing and some things are added. if you want to develop on Android, get the Android SDK. then no question.

+2
source

Learn the latest, keep the mental translations.

I learned Java a few years ago and found Ivor Horton The Beginning of Java is a very useful link that I kept forever !. I see it before Java 7 Edition http://www.wrox.com/WileyCDA/WroxTitle/Ivor-Horton-s-Beginning-Java-Java-7-Edition.productCd-0470404140.html

The appeal of the Wrox book series is that you can download sample code that is a useful link, even if you are not using the book. Review the outline of the chapter and you can determine what the author is showing.

If you're ok with the read code, just download the examples.

Good luck.

+1
source

JDK - current standard version; 6 and 5 reached the end of their support.

In any case, continue to work with JDK 7.

0
source

Source: https://habr.com/ru/post/924373/


All Articles