The Java Development Kit (JDK) The JDK also contains a Java Runtime Environment (JRE), which enables Java programs, such as Eclipse, to run on your system . If you are using a Macintosh running a version of Mac OS X supported by the Android SDK, the JDK is already installed.
Read moreDo you need Java SDK?
A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and this is the JDK version we recommend you use for your Android projects. So if you are using the newest version, you won’t need any additional JDK .
Read more