Puas yog khoom siv hom ntaub ntawv hauv Java?
Puas yog khoom siv hom ntaub ntawv hauv Java?

Video: Puas yog khoom siv hom ntaub ntawv hauv Java?

Video: Puas yog khoom siv hom ntaub ntawv hauv Java?
Video: Tus Tseem Poj Laib Ces Yog Kuv | Npauj Nyiag Yaj | Ma Ya | Official MV 2023 2024, Kaum ib hlis
Anonim

A Java qhov kev zov me nyuam tsis tuaj yeem txhais lwm yam tseem ceeb hom ntaub ntawv . Ib khoom yog ib lub cim xeeb loj uas tuaj yeem muaj ntau yam ntawm cov ntaub ntawv nrog rau cov txheej txheem (cov kev pab cuam me me) los ua qhov ntawd cov ntaub ntawv.

Ib yam li ntawd, cov khoom puas yog hom ntaub ntawv?

Hom ntaub ntawv Cov Hom ntaub ntawv yog ib qho kev siv hom . Txawm li cas los xij, Visual Basic kho ib qho Cov khoom sib txawv raws li tus nqi hom thaum nws hais txog cov ntaub ntawv ntawm tus nqi hom.

Ib sab saum toj, dab tsi yog qhov khoom hauv Java? A Java object yog kev sib txuas ntawm cov ntaub ntawv thiab cov txheej txheem ua haujlwm ntawm cov ntaub ntawv muaj. Ib khoom muaj astate thiab coj cwj pwm. Lub xeev ntawm ib khoom yog khaws cia infields (variables), thaum txoj kev (functions) tso saib cov cov khoom tus cwj pwm. Yam khoom yog tsim los ntawm templatesknown ua cov chav kawm.

Tom qab ntawd, dab tsi yog datatype hauv Java?

Hom ntaub ntawv qhia qhov loj thiab hom khoom muaj nqis uas tuaj yeem khaws cia rau hauv tus cim. Cov Java lus isrich nyob rau hauv nws hom ntaub ntawv . Cov ntaub ntawv hom hauv Java tau muab faib ua ob hom: Keeb kwm -uas suav nrog Integer, Cim, Boolean, thiab Floating Point. Non- keeb kwm -uas suav nrog Chav Kawm, Interfaces, thiab Arrays.

Cov ntaub ntawv piv txwv yog dab tsi?

Ib khoom hom yog lub hauv paus tswvyim lossis lub tswv yim ntawm ib qho khoom ; rau piv txwv , lub tswvyim ntawm lub rooj los yog index. An khoom instance yog ib piv txwv ntawm ib khoom hom. Rau piv txwv , lub rooj hu ua CUSTOMER_MASTER yog ib qho piv txwv ntawm khoom hom TAB.

Pom zoo: