英汉文翻译.docx

上传人:b****2 文档编号:18157567 上传时间:2023-08-13 格式:DOCX 页数:17 大小:63.64KB
下载 相关 举报
英汉文翻译.docx_第1页
第1页 / 共17页
英汉文翻译.docx_第2页
第2页 / 共17页
英汉文翻译.docx_第3页
第3页 / 共17页
英汉文翻译.docx_第4页
第4页 / 共17页
英汉文翻译.docx_第5页
第5页 / 共17页
英汉文翻译.docx_第6页
第6页 / 共17页
英汉文翻译.docx_第7页
第7页 / 共17页
英汉文翻译.docx_第8页
第8页 / 共17页
英汉文翻译.docx_第9页
第9页 / 共17页
英汉文翻译.docx_第10页
第10页 / 共17页
英汉文翻译.docx_第11页
第11页 / 共17页
英汉文翻译.docx_第12页
第12页 / 共17页
英汉文翻译.docx_第13页
第13页 / 共17页
英汉文翻译.docx_第14页
第14页 / 共17页
英汉文翻译.docx_第15页
第15页 / 共17页
英汉文翻译.docx_第16页
第16页 / 共17页
英汉文翻译.docx_第17页
第17页 / 共17页
亲,该文档总共17页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

英汉文翻译.docx

《英汉文翻译.docx》由会员分享,可在线阅读,更多相关《英汉文翻译.docx(17页珍藏版)》请在冰点文库上搜索。

英汉文翻译.docx

英汉文翻译

毕业设计(论文)附录

课题名称基于swing开发的推箱子游戏

学生姓名吕季干

目录

1.英文原文(附录)2

2.中文译文(附录)12

2012年5月25日

 

英文原文

Java2MicroEditionandtheWorldofJava

1Introduction

Thecomputerrevolutionofthe1970sincreasedthedemandforsophisticatedcomputersoftwaretotakeadvantageoftheever-increasingcapacityofcomputerstoprocessdata.TheCprogramminglanguagebecamethelinchpinthatenabledprogrammerstobuildsoftwarethatwasjustasrobustasthecomputeritranon.

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-bitsmallcomputing

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

当前位置:首页 > 经管营销 > 经济市场

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

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