Puas yog Java tsis muaj zog ntaus lossis ntaus ntaus?
Puas yog Java tsis muaj zog ntaus lossis ntaus ntaus?

Video: Puas yog Java tsis muaj zog ntaus lossis ntaus ntaus?

Video: Puas yog Java tsis muaj zog ntaus lossis ntaus ntaus?
Video: UA LI CAS THIAJ TSI MUAJ MENYUAM 2024, Kaum ib hlis
Anonim

Java yog statically- ntaus ntawv lus. Hauv ib tsis muaj zog ntaus ntawv hom lus, qhov sib txawv tuaj yeem cuam tshuam rau cov hom tsis sib xws, whereas hauv a ntaus ntawv heev lus lawv tsis tuaj yeem, thiab yuav tsum tau hloov dua siab tshiab. Ob leeg Java thiab Python yog ntaus ntawv heev yam lus. Piv txwv ntawm tsis muaj zog ntaus ntawv Cov lus yog Perl thiab Rexx.

Hauv qhov no, dab tsi yog qhov txawv ntawm qhov sib zog ntaus thiab ntaus tsis muaj zog?

Lub ntsiab txawv , roughly hais lus, nruab nrab a ntaus ntawv heev lus thiab a tsis muaj zog ntaus ntawv ib ni a tsis muaj zog ntaus ntawv ib tug ua kev hloov dua siab tshiab nruab nrab yam tsis muaj kev cuam tshuam implicitly, thaum a ntaus ntawv heev ib qho feem ntau tsis tso cai rau kev hloov pauv tsis raug nruab nrab yam tsis sib xws.

Ib yam li ntawd, qhov tsis muaj zog ntaus ntawv txhais li cas? Qhov opposite ntawm "muaj zog ntaus ntawv " yog " tsis muaj zog ntaus ntawv ", qho txhais tau tias koj ua tau ua hauj lwm nyob ib ncig ntawm lub hom system. C yog tsis muaj npe tsis muaj zog ntaus ntawv vim txhua yam pointer yog convertible rau lwm yam pointer yam yooj yim los ntawm casting.

vim li cas Java thiaj li ntaus ntawv?

Java yog a ntaus ntawv heev programming lus vim txhua qhov sib txawv yuav tsum tau tshaj tawm nrog cov ntaub ntawv hom. Ib qho kev hloov pauv tsis tuaj yeem pib lub neej yam tsis paub txog qhov ntau ntawm qhov tseem ceeb nws tuaj yeem tuav, thiab thaum nws tau tshaj tawm, cov ntaub ntawv hom ntawm qhov sib txawv tsis tuaj yeem hloov pauv.

Dab tsi yog meant los ntawm kev ntaus ntawv?

A muaj zog - ntaus ntawv programming lus yog ib qho ntawm txhua tus hom ntawm cov ntaub ntawv (xws li tus lej, tus cwj pwm, hexadecimal, packed decimal, thiab lwm yam) yog predefined raws li ib feem ntawm lub programming lus thiab tag nrho cov tsis tu ncua los yog variables txhais rau ib qho kev pab cuam yuav tsum tau piav qhia nrog ib qho ntawm cov ntaub ntawv hom.

Pom zoo: