关于JAVA领域的外文翻译Word文件下载.doc

上传人:wj 文档编号:1460700 上传时间:2023-04-30 格式:DOC 页数:13 大小:58.50KB
下载 相关 举报
关于JAVA领域的外文翻译Word文件下载.doc_第1页
第1页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第2页
第2页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第3页
第3页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第4页
第4页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第5页
第5页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第6页
第6页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第7页
第7页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第8页
第8页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第9页
第9页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第10页
第10页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第11页
第11页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第12页
第12页 / 共13页
关于JAVA领域的外文翻译Word文件下载.doc_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

关于JAVA领域的外文翻译Word文件下载.doc

《关于JAVA领域的外文翻译Word文件下载.doc》由会员分享,可在线阅读,更多相关《关于JAVA领域的外文翻译Word文件下载.doc(13页珍藏版)》请在冰点文库上搜索。

关于JAVA领域的外文翻译Word文件下载.doc

Asthe1980sapproached,programmerswerewitnessinganotherspurtintheevolutionofprogramminglanguage.ComputertechnologyadvancedbeyondthecapabilitiesoftheCprogramminglanguage.Theproblemwasn’tnew.Itoccurredpreviouslyandcausedthedemiseofgenerationsofprogramminglanguages.Theproblemwasthatprogramswerebecomingtoocomplicatedtodesign,write,andmanagetokeepupwiththecapabilitiesofcomputers.ItwasaroundthistimethatadesignconceptbasedonSimula67andSmalltalk(fromthelate1960s)movedprogrammingtothenextevolutionarystep.Thiswastheperiodwhenobject-orientedprogramming(OOP),andwithitanewprogramminglanguagecalledC++,tookprogrammersbystorm.

In1979,BjarneStroustrupofBellLaboratoriesinNewJerseyenhancedtheCprogramminglanguagetoincludeobject-orientedfeatures.HecalledthelanguageC++.(The++istheincrementaloperatorintheCprogramminglanguage.)C++istrulyanenhancementoftheCprogramminglanguage,anditbeganasapreprocessorlanguagethatwastranslatedintoCsyntaxbeforetheprogramwasprocessedbythecompiler.

Stroustrupbuiltontheconceptofaclass(takenfromSimula67andSmalltalk),fromwhichinstancesofobjectsarecreated.Aclasscontainsdatamembersandmemberfunctionsthatdefineanobject’sdataandfunctionality.Healsointroducedtheconceptofinheritance,whichenabledaclasstoinheritsomeoralldatamembersandmemberfunctionsfromoneormoreotherclasses—allofwhichcomplementstheconceptsofobject-orientedprogramming.

By1988,ANSIofficialsstandardizedStroustrup’sC++specification.

2EnterJava

JustasC++wasbecomingthelanguageofchoiceforbuildingindustrial-strengthapplications,anothergrowthspurtintheevolutionofprogramminglanguagewasbudding,fertilizedbythelatestdisruptivetechnology—theWorldWideWeb.TheInternethadbeenawell-keptsecretfordecadesbeforetheNationalScienceFoundation(whooversawtheInternet)removedbarriersthatpreventedcommercialization.Until1991whenitwasopenedtocommerce,theInternetwasthealmostexclusivedomainofgovernmentagenciesandtheacademiccommunity.Oncethebarriertocommercializationwaslifted,theWorldWideWeb—oneofseveralservicesofferedontheInternet—becameavirtualcommunitycenterwherevisitorscouldgetfreeinformationaboutpracticallyanythingandbrowsethroughthousandsofvirtualstores.

BrowserspowertheWorldWideWeb.AbrowsertranslatesASCIItextfileswritteninHTMLintoaninteractivedisplaythatcanbeinterpretedonanymachine.AslongasthebrowseriscompatiblewiththecorrectversionofHTMLandHTTPimplementation,anycomputerrunningthebrowsercanusethesameHTMLdocumentwithouthavingtomodifyitforaparticulartypeofcomputer,whichwassomethingunheardofatthetime.ProgramswritteninCorC++aremachinedependentandcannotrunonadifferent

machineunlesstheprogramisrecompiled.

ThesuccessoftheInternetgaverenewedfocustodevelopingamachine-independentprogramminglanguage.AndthesameyeartheInternetwascommercialized,fivetechnologistsatSunMicrosystemssetouttodojustthat.JamesGosling,PatrickNaughton,ChrisWarth,EdFrank,andMikeSheridanspent18monthsdevelopingtheprogramminglanguagetheycalledOak,whichwasrenamedJavawhenthisnewlanguagemadeitsdebutin1995.Javawentthroughnumerousiterationsbetween1991and1995,duringwhichtimemanyothertechnologistsatSunmadesubstantialcontributionstothelanguage.TheseincludedBillJoy,ArthurvanHoff,JonathanPayne,FrankYelin,andTimLindholm.

AlthoughJavaiscloselyassociatedwiththeInternet,itwasdevelopedasalanguageforprogrammingsoftwarethatcouldbeembeddedintoelectronicdevicesregardlessofthetypeofCPUusedbythedevice.ThisisknownastheEmbeddedJavaplatformandisincontinuoususetodayforclosedsystems.

TheJavateamfromSunsucceededincreatingaportableprogramminglanguage,somethingthathadeludedprogrammerssincecomputerswerefirstprogrammed.Theirsuccess,however,wasfarbeyondtheirwildestdreams.ThesameconceptusedtomakeJavaprogramsportabletoelectronicdevicesalsocouldbeusedtomakeJavaprogramsrunoncomputersrunningMicrosoftWindows,UNIX,andMacintosh.Timingwasperfect.TheInternet/intranethadwhettedcorporateAmerica’sappetiteforcost-effective,portableprogramsthatcouldreplacemission-criticalapplicationswithinthecorporation.AndJavahadprovenitselfasaprogramminglanguageusedtosuccessfullydevelopmachine-independentapplications.

3JavaVirtualMachine

WritingJavaprogramsissimilartowritingC++programsinthattheprogrammerwritessourcecodethatcontainsinstructionsintoaneditor,orinanintegrateddevelopment

environment,andthenthesourcecodeiscompiled.However,that’swhereJavaandC++

partways.ThecompilingandlinkingprocessofaC++programresultsinanexecutable

thatcanberunonanappropriatemachine.Incontrast,theJavacompilerconvertsJava

sourcecodeintobytecodethatisexecutedbytheJavaVirtualMachine(JVM).

Machine-specificinstructionsarenotincludedinbytecode.Instead,theyalreadyresideintheJVM,whichismachinespecific.ThismeansthatthebytecodemightcontainfewerinstructionsthatneedtobetranslatedthanacomparableC++program.

AlthoughtheJavacompilergeneratesbytecodethatmustbeinterpretedbytheJVM

atruntime,thenumberofinstructionsthatneedtranslationareusuallyminimaland

havealreadybeenoptimizedbytheJavacompiler.

4BacktotheFuture:

J2ME

RememberthatJavabeganasaprogramminglanguagetocreateprogramsforembeddedsystems—microcomputersfoundinconsumerandindustrialproductssuchasthoseusedtocontrolautomobilesandappliances.ThedevelopmentteamatSunworkedonJavaintheearly1990stoaddresstheprogrammingneedsofthefledglingembeddedcomputermarket,butthateffortwassidetrackedbymorecompellingopportunitiespresentedbytheInternet.

Asthoseopportunitieswereaddressed,anewbreedofportablecommunicationsdevicesopenedotheropportunitiesattheturnofthecentury.CellphonesexpandedJ2ME:

TheCompleteReferencefromvoicecommunicationsdevicestovoiceandtextcommunicationsdevices.Pocketelectronictelephonedirectoriesevolvedintopersonaldigitalassistants.Chipmakerswerereleasingnewproductsatthistimethatweredesignedtotransfercomputingpowerfromadesktopcomputerintomobilesmallcomputersthatcontrolledgaspumps,cabletelevisionboxes,andanassortmentofotherappliances.

ThetimewasrightforthenextevolutionofJava.However,insteadofbeefingupJavawithadditionalAPIs,theteamatSun,alongwiththeJavaCommunityProcessProgram,dismantledboththeJavaprogramminglanguageandtheJavaVirtualMachine.They

strippeddownJavaAPIsandtheJVMtotheminimumcodingrequiredtoprovide

intelligencetoembeddedsystemsandmicrocomputerdevices.Thiswasnecessary

becauseofresourceconstraintsimposeduponthehardwaredesignofthesedevices.The

resultoftheireffortsisJ2ME.J2MEisareducedversionoftheJavaAPIandJavaVirtualMachinethatisdesignedtooperatewithinthesparseresourcesavailableinthenewbreedofembeddedcomputersandmicrocomputers.

5HowJ2MEIsOrganized

Traditionalcomputingdevicesusefairlystandardhardwareconfigurationssuchasadisplay,keyboard,mouse,andlargeamountsofmemoryandpermanentstorage.However,thenewbreedofcomputingdeviceslackshardwareconfigurationcontinuityamongdevices.Somedevicesdon’thaveadisplay,permanentstorage,keyboard,ormouse.Andmemoryavailabilityisinconsistentamongsmallcomputingdevices.ThelackofuniformhardwareconfigurationamongthesmallcomputingdevicesposesaformidablechallengefortheJavaCommunityProcessProgram,whichischargedwithdevelopingstandardsfortheJVMandtheJ2MEforsmallcomputingdevices.

J2MEmustservicemanydifferentkindsofsmallcomputingdevices,includingscreenphones,digitalset-topboxesusedforcabletelevision,cellphones,andpersonaldigitalassistants.ThechallengefortheJavaCommunityProcessProgramistodevelopaJavastandardthatcanbeimplementedonsmallcomputingdevicesthathavenonstandard

hardwareconfigurations.TheJavaCommunityProcessProgramhasusedatwofoldapproachtoaddressingtheneedsofsmallcomputingdevices.First,theydefinedtheJavarun-timeenvironmentandcoreclassesthatoperateoneachdevice.Thisisreferredtoastheconfiguration.AconfigurationdefinestheJavaVirtualMachineforaparticularsmallcomputingdevice.Therearetwoconfigurations,oneforhandhelddevicesandtheotherforplug-indevices.Next,theJavaCommunityProcessProgramdefinedaprofileforcategoriesofsmallcomputingdevices.Aprofileconsistsofclassesthatenabledeveloperstoimplementfeaturesfoundonarelatedgroupofsmallcomputingdevices.

6J2MEconfigurations

TherearetwoconfigurationsforJ2MEasofthiswriting.TheseareConnectedLimitedDeviceConfiguration(CLDC)andtheConnectedDeviceConfiguration(CDC).TheCLDCisdesignedfor16-bitor32-bitsmallcomputingdeviceswithlimitedamountsofmemory.

CLDCdevicesusuallyhavebetween160KBand512KBofavailablememoryandar

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 外语学习 > 英语学习

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2