Puas yog Android siv Oracle Java?
Puas yog Android siv Oracle Java?

Video: Puas yog Android siv Oracle Java?

Video: Puas yog Android siv Oracle Java?
Video: qhia siv xov tooj saib poj niam puas yuav ua hluas los si saib poj niam puas dev hluas 2024, Kaum ib hlis
Anonim

Google lees paub tom ntej Android version yuav siv Oracle's qhib qhov chaw OpenJDK rau Java APIs. Google tab tom hloov nws qhov kev siv ntawm lub Java daim ntawv thov programming interfaces (APIs) hauv Android nrog OpenJDK, qhib qhov version ntawm Oracle's Java Cov khoom siv txhim kho ( JDK ).

Xav txog qhov no, dab tsi version ntawm Java siv Android?

Los ntawm koj txhais, Android ua tsis txhawb ib yam version ntawm Java . Cov java ua thiab cov chav kawm javax hauv cov Android SDK ua tsis raws nraim ib yam version ntawm Java , seb tus lej version (piv txwv li, 6, 7, 8) lossis yam koj xav xav txog Java SE/EE/ME to be.

Qhov thib ob, Android puas siv Java 8? Android ua tsis yog txhawb Java 8 . Nws tsuas txhawb mus txog Java 7 (yog tias koj muaj kitkat) thiab tseem nws tsis muaj invokedynamic, tsuas yog cov suab thaj tshiab. Nws yog gradle build dependency uas integrates retrolambda, ib lub cuab tam uas hloov Java 8 bytecode rov qab mus rau Java 6/7.

Tsis tas li, Android puas khiav ntawm Java?

Thaum feem ntau Android daim ntawv thov raug sau rau hauv Java -zoo li lus, muaj qee qhov sib txawv ntawm cov Java API thiab Android API, thiab Android ua tsis yog khiav Java bytecode los ntawm ib txwm Java virtual tshuab (JVM), tab sis hloov los ntawm Dalvik virtual tshuab hauv cov laus versions ntawm Android ,a ib Android Runtime (ART)

Puas yog Oracle tua Java?

Oracle tua Java thaum lawv tsis lees paub Android thiab nto qaub ncaug rau ntawm lub ntsej muag ntawm Sun xav Java ua.

Pom zoo: