J2SE vs J2EE
Java yog ib qho ntawm cov khoom siv dav dav siv cov lus hais lus programming, uas yog siv los ntawm kev tsim kho software mus rau kev txhim kho lub vev xaib niaj hnub no. Nws yog ib lub hom phiaj dav dav thiab ib hom lus programming. Nws yog Ameslikas tsim los ntawm Sun Microsystems hauv 1995. James Gosling yog leej txiv ntawm Java programming lus. Oracle Corporation tam sim no muaj Java (tom qab yuav Sun Microsystems tsis ntev los no). Java yog ib hom lus zoo heev uas txhawb nqa ntau lub platform los ntawm Windows mus rau UNIX. Java muaj ntawv tso cai raws li GNU General Public License. Txij li thaum nws pib tso tawm xyoo 1995 (Java 1.0) nws tau loj hlob thiab dhau los ua hom lus tseem ceeb rau kev tsim cov ntawv thov hauv web. J2SE yog Java 2 Platform Standard Edition, uas muab cov chav kawm yooj yim thiab APIs. Java 6 yog nws qhov kev tso tawm ruaj khov tam sim no. J2EE yog Java 2 Platform Enterprise Edition, uas muab cov thev naus laus zis siab thiab APIs ua rau sab saum toj ntawm kev ua haujlwm tau muab los ntawm J2SE. Cov neeg tsim tawm ntawm Java tau hloov npe ntawm tag nrho cov ntawv tsis ntev los no, thiab tam sim no J2SE thiab J2EE hu ua Java SE thiab Java EE feem.
J2SE yog dab tsi?
J2SE yog ib phau ntawm cov chav kawm Java thiab APIs. Nws qhov tseeb version Java 6 (tseem hu ua Java Standard Edition 6.0 lossis Java SE 6 lossis Java 1.6), codenamed Mustang, tau tso tawm thaum Lub Kaum Ob Hlis, 2006. Kev kho tam sim no yog Hloov Kho 26, uas tau tso tawm rau lub Rau Hli, 2011. Nws muaj 3700. + chav kawm thiab interfaces. Nws tsom mus rau cov kev qhia tshwj xeeb tshiab thiab APIs suav nrog XML, Web Services, JDBC version 4.0, programming raws li Cov Lus Qhia, API rau Java compiler thiab Application client GUI. Qhov no yog nyob rau sab saum toj ntawm uas twb muaj lawm nta xws li Annotations, Generics thiab Autoboxing. Cov lus piav qhia yog ib lub tswv yim rau kev sau cov chav kawm nrog metadata kom lawv tuaj yeem siv tau los ntawm cov phiaj xwm metadata-paub. Generics yog ib qho txheej txheem ntawm kev qhia txog hom rau cov khoom uas muaj nyob rau hauv kev sau xws li Arraylists, yog li ntawd hom kev nyab xeeb yog guaranteed nyob rau hauv compile lub sij hawm. Autoboxing tso cai rau kev hloov pauv tsis siv neeg ntawm hom qub (piv txwv li int) thiab hom wrapper (piv txwv li Integer). Tsis tas li ntawd, kev txhawb nqa rau cov laus versions ntawm Windows (Win9x series) raug tshem tawm pib los ntawm Kev Hloov Kho 7.
J2EE yog dab tsi?
J2EE muab lub server programming platform hauv Java. J2EE ntxiv cov haujlwm ua haujlwm (qib qiv) rau kev xa tawm ntawm kev faib tawm thiab ntau qib java daim ntawv thov khiav ntawm daim ntawv thov servers. Tam sim no version ntawm J2EE yog Java EE 6. JDBC (Java Database Connectivity), RMI (Remote Method Invocation), JMS (Java Message Service), web services and XML is some of the specifications offered by Java EE. Tsis tas li ntawd, qhov tshwj xeeb tshwj xeeb rau Java EE xws li Enterprise JavaBeans (EJB), Connecters, Servlets, portlets, Java Server Pages (JSP) kuj muaj. Lub hom phiaj ntawm qhov no yog tso cai rau cov programmer tsim cov ntawv thov nrog kev ua haujlwm siab thiab nqa tau yooj yim. Java EE cov neeg tsim khoom tuaj yeem tsom mus rau kev lag luam logic (tshwj tsis yog kev tsim kho vaj tse / kev sib koom ua ke) vim tias daim ntawv thov servers yuav saib xyuas kev lag luam, kev ruaj ntseg thiab kev sib koom ua ke.
J2SE thiab J2EE yog dab tsi?
J2SE yog ib phau ntawm cov chav kawm hauv paus thiab APIs uas muab kev ua haujlwm yooj yim (Java lus, lub tshuab virtual thiab cov tsev qiv ntawv hauv paus) rau kev tsim cov qauv siv Java, thaum J2EE muab cov kev sau ntawm cov thev naus laus zis thiab APIs rau kev tsim cov ntawv thov kev lag luam ntau qib.. Hauv lwm lo lus, J2SE yog siv los tsim cov ntawv thov uas ua raws li cov khoos phis tawj ib leeg lossis applets, tab sis J2EE feem ntau yog siv los sau cov ntawv thov uas ua rau hauv lub thawv J2EE. J2EE muaj tag nrho cov haujlwm ntawm J2SE. Tab sis, nws muaj kev ua haujlwm ntxiv xws li EJB, JSP, Servelts thiab XML thev naus laus zis. Nws kuj suav nrog cov kev ntsuam xyuas rau kev soj ntsuam kev ua raws li daim ntawv thov nrog cov ntawv thov uas twb muaj lawm uas txhawb J2EE.