Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any difference between Oracle's Java and Java used in Android? [closed]

I have started to program in Java SE recently, and I noticed from many articles and heard from rumours, that Android applications are developed in Java, or in a language similar to Java.

I noticed also that there are other packages to use, because we have to develop for mobile devices.

Until recently, I was never interested in mobile devices and applications, like the Android OS, but now I understood that this is the future, and a great chance of a job.

My question is: if in the near future, I want to develop something in Android, do I have to learn a different Java language than I used to program now?

Are there a lot of differences, programmatically, between the Java language and Java used in Android?

Thanks.

like image 547
Alberto Solano Avatar asked Jul 09 '11 10:07

Alberto Solano


People also ask

Is Oracle Java different from Java?

The biggest difference between OpenJDK and Oracle JDK is licensing. OpenJDK is completely open source Java with a GNU General Public License. Oracle JDK requires a commercial license under Oracle Binary Code License Agreement. But there are many other differences within support and cost, too.

Does Android use Oracle Java?

In all, Android uses 11,330 lines (or 0.4 percent) of Java's software interface. After acquiring Java from Sun Microsystems, Oracle sued Google for copyright infringement based on Android's use of the Java software interface.

Is OpenJDK and Oracle JDK same?

OpenJDK and Oracle JDK are implementations of the same Java SE specification.

What version of Java does Oracle use?

Java Platform, Standard Edition 8Java SE 8u351 is the latest release of Java SE 8 Platform. Oracle strongly recommends that all Java SE 8 users upgrade to this release.


2 Answers

There is no difference between Java and Oracle's Java . It's called Oracle Java because Oracle owns Java. You can develop the Android application using Core Java.

If you know Core Java then you just need to learn the Android SDK to develop Android applications.

Refer this site for learning Android: Android Developer Site .

like image 58
Chirag Avatar answered Oct 30 '22 13:10

Chirag


Android applications are written (most of the times) in Java. This is a pure java with additional libraries, minus some of the UI libraries (such as swing). It even compiles to class files, and then converted to .dex files which are the executable for the Dalvik VM.

If you already know Java, you'll need to learn the usage of the Android SDK and operating system, not a new programming language.

See some basics at the Android developer site

like image 21
MByD Avatar answered Oct 30 '22 11:10

MByD