Qhov txuas ntxiv ntawm cov chav kawm Java compiled yog dab tsi?
Qhov txuas ntxiv ntawm cov chav kawm Java compiled yog dab tsi?

Video: Qhov txuas ntxiv ntawm cov chav kawm Java compiled yog dab tsi?

Video: Qhov txuas ntxiv ntawm cov chav kawm Java compiled yog dab tsi?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Kaum ib hlis
Anonim

A Java chav kawm file yog ib cov ntaub ntawv (nrog rau. chav kawm npe file txuas ntxiv ) muaj Java bytecode uas tuaj yeem ua tiav ntawm Java Virtual Machine (JVM). A Java chav kawm cov ntaub ntawv feem ntau yog tsim los ntawm a Java compiler los ntawm Java programming lus cov ntaub ntawv (.

Tom qab ntawd, ib tug kuj yuav nug, dab tsi yog cov ntaub ntawv txuas ntxiv ntawm kev sau Java program?

Java qhov chaws code yog muab tso ua ke mus rau bytecode thaum peb siv javac compiler . Cov bytecode tau txais kev cawmdim ntawm lub disk nrog rau cov ntaub ntawv extension . chav kawm. Thaum lub qhov kev pab cuam yog yuav tsum tau khiav, tus bytecode hloov dua siab tshiab, siv lub just-in-time (JIT) compiler.

Tsis tas li ntawd, nyob qhov twg.class cov ntaub ntawv hauv Java? class file hauv java yog generated thaum koj compile. java file siv ib qho Java compiler zoo li Sun's javac uas los ntawm JDK installation thiab tuaj yeem pom hauv JAVA_HOME / bin directory. 2. chav kawm ntawv muaj byte codes.

Ib yam li ntawd, koj tuaj yeem nug, dab tsi yog qhov txuas ntxiv ntawm cov ntaub ntawv qhov chaw?

Daim ntawv teev cov ntaub ntawv Extensions

Cov ntaub ntawv Extension Hom ntaub ntawv
.qib Compiled java source code file.
.cmd ib Compiler command file.
. CPP C++ lus file.
.csv Comma-sparated tus nqi cov ntaub ntawv.

Lub npe txuas ntxiv ntawm Java yog dab tsi?

A Java class file yog ib cov ntaub ntawv (nrog rau. class filename txuas ntxiv ) muaj Java bytecode uas tuaj yeem ua tiav ntawm Java Virtual Machine (JVM). A Java cov ntaub ntawv hauv chav kawm feem ntau yog tsim los ntawm a Java compiler los ntawm Java programming lus cov ntaub ntawv (.

Pom zoo: