计算机专业毕业论文中英文资料外文翻译文献 Java技术及SSH框架毕业论文中英文对照资料外文翻译文献 (2)文档格式.docx
《计算机专业毕业论文中英文资料外文翻译文献 Java技术及SSH框架毕业论文中英文对照资料外文翻译文献 (2)文档格式.docx》由会员分享,可在线阅读,更多相关《计算机专业毕业论文中英文资料外文翻译文献 Java技术及SSH框架毕业论文中英文对照资料外文翻译文献 (2)文档格式.docx(63页珍藏版)》请在冰点文库上搜索。
![计算机专业毕业论文中英文资料外文翻译文献 Java技术及SSH框架毕业论文中英文对照资料外文翻译文献 (2)文档格式.docx](https://file1.bingdoc.com/fileroot1/2023-4/29/e87bac1d-d046-47c0-9333-1c1fd86af458/e87bac1d-d046-47c0-9333-1c1fd86af4581.gif)
2、外文翻译译文内容应与学生的专业或毕业设计(论文)内容相关,不得少于
XXXX印刷符号。
3.外文翻译译文用A4纸打印,需包含中文翻译和英文原文。
4、年月日等的填写,用阿拉伯数字书写,要符合《关于出版物上数字用法的试行规定》,如“2017年5月26日”。
5、所有签名必须手写,不得打印。
附件:
外文原文
History
Duke,theJavamascotJamesGosling,MikeSheridan,andPatrickNaughtoninitiatedtheJavalanguageprojectinJune1991.Javawasoriginallydesignedforinteractivetelevision,butitwastooadvancedforthedigitalcabletelevisionindustryatthetime.ThelanguagewasinitiallycalledOakafteranoaktreethatstoodoutsideGosling'
soffice;
itwentbythenameGreenlater,andwaslaterrenamedJava,fromalistofrandomwords.GoslingaimedtoimplementavirtualmachineandalanguagethathadafamiliarC/C++styleofnotation.
SunMicrosystemsreleasedthefirstpublicimplementationasJava1.0in1995.Itpromised"
WriteOnce,RunAnywhere"
(WORA),providing
no-costrun-timesonpopularplatforms.Fairlysecureandfeaturingconfigurablesecurity,itallowednetwork-andfile-accessrestrictions.MajorwebbrowserssoonincorporatedtheabilitytorunJavaappletswithinwebpages,andJavaquicklybecamepopular.WiththeadventofJava2(releasedinitiallyasJ2SE1.2inDecember1998–1999),newversionshadmultipleconfigurationsbuiltfordifferenttypesofplatforms.Forexample,J2EEtargetedenterpriseapplicationsandthegreatlystripped-downversionJ2MEformobileapplications(MobileJava).J2SEdesignatedtheStandardEdition.In2006,formarketingpurposes,SunrenamednewJ2versionsasJavaEE,JavaME,andJavaSE,respectively.In1997,SunMicrosystemsapproachedtheISO/IECJTC1standardsbodyandlatertheEcmaInternationaltoformalizeJava,butitsoonwithdrewfromtheprocess.Javaremainsadefactostandard,controlledthroughtheJavaCommunityProcess.Atonetime,SunmademostofitsJavaimplementationsavailablewithoutcharge,despitetheirproprietarysoftwarestatus.SungeneratedrevenuefromJavathroughthesellingoflicensesforspecializedproductssuchastheJavaEnterpriseSystem.SundistinguishesbetweenitsSoftwareDevelopmentKit(SDK)andRuntimeEnvironment(JRE)(asubsetoftheSDK);
theprimarydistinctioninvolvestheJRE'
slackofthecompiler,utilityprograms,andheaderfiles.OnNovember13,2006,SunreleasedmuchofJavaasopensourcesoftwareunderthetermsoftheGNUGeneralPublicLicense(GPL).On
May8,2007,Sunfinishedtheprocess,makingallofJava'
scorecodeavailableunderfreesoftware/open-sourcedistributionterms,asidefromasmallportionofcodetowhichSundidnotholdthecopyright.Sun'
svice-presidentRichGreenhassaidthatSun'
sidealrolewithregardstoJavaisasan"
evangelist."
FollowingOracleCorporation'
sacquisitionofSunMicrosystemsin2009–2010,Oraclehasdescribeditselfasthe"
stewardofJavatechnologywitharelentlesscommitmenttofosteringacommunityofparticipationandtransparency"
.
PrinciplesTherewerefiveprimarygoalsinthecreationoftheJavalanguage:
1.Itshouldbe"
simple,objectoriented,andfamiliar"
、2.Itshouldbe"
robustandsecure"
3.Itshouldbe"
architectureneutralandportable"
、4.Itshouldexecutewith"
highperformance"
、5.Itshouldbe"
interpreted,threaded,anddynamic"
JavaPlatformMainarticles:
Java(softwareplatform)andJavaVirtualMachine
OnecharacteristicofJavaisportability,whichmeansthatcomputerprogramswrittenintheJavalanguagemustrunsimilarlyonanysupportedhardware/operating-systemplatform.ThisisachievedbycompilingtheJavalanguagecodetoanintermediaterepresentationcalledJavabytecode,insteadofdirectlytoplatform-specificmachinecode.Java
bytecodeinstructionsareanalogoustomachinecode,butareintendedtobeinterpretedbyavirtualmachine(VM)writtenspecificallyforthehosthardware.End-userscommonlyuseaJavaRuntimeEnvironment(JRE)installedontheirownmachineforstandaloneJavaapplications,orinaWebbrowserforJavaapplets.Standardizedlibrariesprovideagenericwaytoaccesshost-specificfeaturessuchasgraphics,threading,andnetworking.
Amajorbenefitofusingbytecodeisporting.However,theoverheadofinterpretationmeansthatinterpretedprogramsalmostalwaysrunmoreslowlythanprogramscompiledtonativeexecutableswould.Just-in-Timecompilerswereintroducedfromanearlystagethatcompilebytecodestomachinecodeduringruntime.ImplementationsSunMicrosystemsofficiallylicensestheJavaStandardEditionplatformforLinux,MacOSX,andSolaris.AlthoughinthepastSunhaslicensedJavatoMicrosoft,thelicensehasexpiredandhasnotbeenrenewed.Throughanetworkofthird-partyvendorsandlicensees,alternativeJavaenvironmentsareavailablefortheseandotherplatforms.
Sun'
strademarklicenseforusageoftheJavabrandinsiststhatallimplementationsbe"
compatible"
.ThisresultedinalegaldisputewithMicrosoftafterSunclaimedthattheMicrosoftimplementationdidnotsupportRMIorJNIandhadaddedplatform-specificfeaturesoftheirown.Sunsuedin1997,andin2001wonasettlementofUS$20million,as
wellasacourtorderenforcingthetermsofthelicensefromSun.Asaresult,MicrosoftnolongershipsJavawithWindows,andinrecentversionsofWindows,InternetExplorercannotsupportJavaappletswithoutathird-partyplugin.Sun,andothers,havemadeavailablefreeJavarun-timesystemsforthoseandotherversionsofWindows.Platform-independentJavaisessentialtotheJavaEEstrategy,andanevenmorerigorousvalidationisrequiredtocertifyanimplementation.Thisenvironmentenablesportableserver-sideapplications,suchasWebservices,JavaServlets,andEnterpriseJavaBeans,aswellaswithembeddedsystemsbasedonOSGi,usingEmbeddedJavaenvironments.ThroughthenewGlassFishproject,Sunisworkingtocreateafullyfunctional,unifiedopensourceimplementationoftheJavaEEtechnologies.SunalsodistributesasupersetoftheJREcalledtheJavaDevelopmentKit(commonlyknownastheJDK),whichincludesdevelopmenttoolssuchastheJavacompiler,Javadoc,Jar,anddebugger.Javaperformanceandgarbagecollectors
ProgramswritteninJavahaveareputationforbeingslowerandrequiringmorememorythanthosewritteninC.However,Javaprograms'
executionspeedimprovedsignificantlywiththeintroductionofJust-in-timecompilationin1997/1998forJava1.1,theadditionoflanguagefeaturessupportingbettercodeanalysis(suchasinnerclasses,StringBufferclass,optionalassertions,etc.),andoptimizationsintheJava
VirtualMachineitself,suchasHotSpotbecomingthedefaultforSun'
sJVMin2000.Currently,JavacodehasapproximatelyhalftheperformanceofCcode.
SomeplatformsofferdirecthardwaresupportforJava;
therearemicrocontrollersthatcanrunjavainhardwareinsteadofasoftwareJVM,andARMbasedprocessorscanhavehardwaresupportforexecutingJavabytecodethroughitsJazelleoption.
AutomaticmemorymanagementJavausesanautomaticgarbagecollectortomanagememoryintheobjectlifecycle.Theprogrammerdetermineswhenobjectsarecreated,andtheJavaruntimeisresponsibleforrecoveringthememoryonceobjectsarenolongerinuse.Oncenoreferencestoanobjectremain,theunreachablememorybecomeseligibletobefreedautomaticallybythegarbagecollector.Somethingsimilartoamemoryleakmaystilloccurifaprogrammer'
scodeholdsareferencetoanobjectthatisnolongerneeded,typicallywhenobjectsthatarenolongerneededarestoredincontainersthatarestillinuse.Ifmethodsforanonexistentobjectarecalled,a"
nullpointerexception"
isthrown.
OneoftheideasbehindJava'
sautomaticmemorymanagementmodelisthatprogrammerscanbesparedtheburdenofhavingtoperformmanualmemorymanagement.Insomelanguages,memoryforthecreationofobjectsisimplicitlyallocatedonthestack,orexplicitlyallocatedanddeallocatedfromtheheap.Inthelattercasethe
responsibilityofmanagingmemoryresideswiththeprogrammer.Iftheprogramdoesnotdeallocateanobject,amemoryleakoccurs.Iftheprogramattemptstoaccessordeallocatememorythathasalreadybeendeallocated,theresultisundefinedanddifficulttopredict,andtheprogramislikelytobecomeunstableand/orcrash.Thiscanbepartiallyremediedbytheuseofsmartpointers,buttheseaddoverheadandcomplexity.Notethatgarbagecollectiondoesnotprevent"
logical"
memoryleaks,i.e.thosewherethememoryisstillreferencedbutneverused.
Garbagecollectionmayhappenatanytime.Ideally,itwilloccurwhenaprogramisidle.Itisguaranteedtobetriggeredifthereisinsufficientfreememoryontheheaptoallocateanewobject;
thiscancauseaprogramtostallmomentarily.ExplicitmemorymanagementisnotpossibleinJava.
JavadoesnotsupportC/C++stylepointerarithmetic,whereobjectaddressesandunsignedintegers(usuallylongintegers)canbeusedinterchangeably.Thisallowsthegarbagecollectortorelocatereferencedobjectsandensurestypesafetyandsecurity.
AsinC++andsomeotherobject-orientedlanguages,variablesofJava'
sprimitivedatatypesarenotobjects.Valuesofprimitivetypesareeitherstoreddirectlyinfields(forobjects)oronthestack(formethods)ratherthanontheheap,ascommonlytrueforobjects(butseeEscapeanalysis).
ThiswasaconsciousdecisionbyJava'
sdesignersforperformancereasons.Becauseofthis,Javawasnotconsideredtobeapureobject-orientedprogramminglanguage.However,asofJava5.0,autoboxingenablesprogrammerstoproceedasifprimitivetypeswereinstancesoftheirwrappercl