Hais tau deprecated java?

Cov txheej txheem:

Hais tau deprecated java?
Hais tau deprecated java?
Anonim

Ib yam li ntawd, thaum ib chav kawm lossis txoj kev raug tso tseg, nws txhais tau hais tias chav kawm lossis txoj kev yog tsis yog suav tias tseem ceeb. Nws yog qhov tsis tseem ceeb, qhov tseeb, uas nws yuav tsum tsis txhob siv ntxiv lawm, vim tias nws yuav tsis muaj nyob rau yav tom ntej. Qhov xav tau rau kev txiav txim siab los ntawm vim tias raws li chav kawm hloov zuj zus, nws cov API hloov pauv.

Puas Java raug tshem tawm?

Kau xaus (thiab teb kuv cov lus nug), no, Java yuav zaum nyob ua hom lus tseem ceeb rau Android programming ntev. Tab sis qhov no tsis tau txhais hais tias Google tsis tab tom nrhiav lwm txoj hauv kev los txhim kho nyob rau hauv tib lub sijhawm kom khiav deb ntawm Java.

Kuv puas tseem tuaj yeem siv txoj hauv kev tsis txaus ntseeg hauv Java?

Koj tseem tuaj yeem siv cov cai tsis raug cai yam tsis tau hloov pauv, tab sis tag nrho cov ntsiab lus ntawm deprecating ib txoj kev / chav kawm yog qhia rau cov neeg siv paub tias tam sim no muaj txoj hauv kev zoo dua ntawm kev siv nws, thiab hais tias yav tom ntej tso tawm cov cai tsis txaus siab yuav raug tshem tawm.

Yuav ua li cas koj sau deprecated hauv Java?

Pib nrog J2SE 5.0, koj tsis pom zoo rau chav kawm, txheej txheem, lossis teb los ntawm kev siv the @Deprecated annotation. Tsis tas li ntawd, koj tuaj yeem siv @deprecated Javadoc tag qhia cov neeg tsim khoom siv dab tsi hloov. Kev siv cov lus piav qhia ua rau Java compiler los tsim cov lus ceeb toom thaum siv cov chav kawm, txoj kev, los yog teb.

Puas tau tso tseg?

Nyob hauv ntau qhov chaw, kev tsis txaus siab yog qhov kev poob siab ntawm kev siv qee yam lus, kev ua, kev tsim, lossis kev xyaum, feem ntauvim tias nws tau raug hloov pauv lossis tsis suav tias muaj txiaj ntsig lossis muaj kev nyab xeeb, tsis tas yuav tshem tawm lossis txwv tsis pub siv.

Pom zoo: