Vim li cas nws tseem ceeb rau tus programmer kom paub tias Java yog cov lus rhiab heev?
Vim li cas nws tseem ceeb rau tus programmer kom paub tias Java yog cov lus rhiab heev?

Video: Vim li cas nws tseem ceeb rau tus programmer kom paub tias Java yog cov lus rhiab heev?

Video: Vim li cas nws tseem ceeb rau tus programmer kom paub tias Java yog cov lus rhiab heev?
Video: Khuv xim txog hnub tuag kiag 1/30/2019 2024, Kaum ib hlis
Anonim

Java yog cas - rhiab heev vim nws siv C-style syntax. Case rhiab heev muaj txiaj ntsig vim nws tso cai rau koj nkag siab tias lub npe txhais li cas raws li nws cas . Piv txwv li, lub Java tus qauv rau cov npe hauv chav kawm yog qhov loj tshaj thawj tsab ntawv ntawm txhua lo lus (Integer, PrintStream, thiab lwm yam).

Hauv qhov no, dab tsi yog cov ntaub ntawv nkag siab hauv programming?

A cas - rhiab program uas xav kom koj nkag mus rau tag nrho cov lus txib nyob rau hauv cov ntawv loj yuav tsis teb kom raug yog tias koj nkag mus rau ib lossis ntau tus cim hauv tus lej me. Nws yuav kho cov lus txib RUN txawv ntawm kev khiav. Cov kev pab cuam uas tsis paub qhov txawv nruab nrab ntawm cov tsiaj ntawv loj thiab cov ntawv me tau hais tias yog cas - insensitive.

Cov lus programming twg yog qhov tseem ceeb? Hauv programming lus Ib txhia programming lus yog case - rhiab heev rau lawv cov cim (C, C ++, Java, C#, Verilog, Ruby thiab Python). Lwm tus yog cas - insensitive (ie, tsis cas - rhiab heev ), xws li ABAP, Ada, feem ntau BASICs (anexception yog BBC BASIC), Fortran, SQL thiab Pascal.

Tsuas yog li ntawd, Java case rhiab lossis tsis?

Yog, nws yog cas - rhiab heev . Nws yog txoj kev no vim nws cov cuab yeej cuab tam los ntawm C. Kom cov lus paub ntau dua li cov neeg tau siv rau "hnub", lawv tau tso nws li. cas - rhiab heev . Muaj ib qho txiaj ntsig ntxiv txij li Java Cov cim qhia tuaj yeem yog yuav luag txhua tus cim Unicode.

Puas yog cov npe sib txawv ntawm qhov teeb meem?

Case Sensitivity . JavaScript yog a cas - rhiab heev lus. Qhov no txhais tau hais tias cov lus tseem ceeb, sib txawv , ua haujlwm npe , thiab lwm tus neeg txheeb xyuas yuav tsum tau ntaus nrog ib tus lej loj ntawm cov ntawv. Nco ntsoov, txawm li cas los xij, qhov HTML tsis yog cas - rhiab heev.

Pom zoo: