JAVA学习过程 毕业论文外文翻译.doc_第1页
JAVA学习过程 毕业论文外文翻译.doc_第2页
JAVA学习过程 毕业论文外文翻译.doc_第3页
JAVA学习过程 毕业论文外文翻译.doc_第4页
JAVA学习过程 毕业论文外文翻译.doc_第5页
免费预览已结束,剩余5页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

附录4 外文原文外文原文java learning path processeach persons study method is different, a persons method suits another person not necessarily, i only can discuss own study method. because i study java am study independently completely, has not asked others, therefore the study process basically is completely oneself tries to find out. i did not know whether this method is the quite good method, only could give everybody to provide refers. studies java first step installs good jdk, writes hello world? actually the jdk study is not so simple, has two questions about jdk is very easy to puzzle the java programmer continuously the place: is the classpath question, actually said from the principle, is how must make clear jre classloader increase class; another question is package and the import question, how seeks the kind of way question. these two questions tried to find out clear, eliminated has studied java and uses jdk the biggest barrier. the recommendation looked wang sen the java depth experiences dangers, has carried on the thorough discussion to these two questionssecond step is studies java the grammar. the java grammar is kind of c+, the basically mainstream programming language is not kind of c, is kind of c+, does not have what new thing, therefore the grammar study, probably was the quite a while time is enough. only needs to pay attention is has the key words usage which several is not easy to make clear, public, protected, private, static, when uses, why has to use, how uses, this possible need some people to direct, i initially was own ponder over completely, has spent the very long time. but afterwards i saw above this book spoke these concepts to thinking in java.third step is studies java the object-oriented programming language characteristic place. for instance inherits, structure, abstract class, the connection, the method are many condition, heavy load, cover, java exception handling mechanism. said regarding a not object-oriented language background person that, i thought this process needs to spend the very long very long time, because studies in front of java does not have c+ the experience, only then the c experience, i was have probably spent for a month, all made clear only then thoroughly these concepts, book example above repeatedly estimating, the revision, the attempt, repeatedly looked at that several chapter of contents, looked, looked has not gotten down 5, comprehended only then thoroughly. but i thought if has the c+ experience, should 12 days time be enough. then in this process, may have a look thinking in java this book, opposite is extremely thorough to the object explanation. what a pity is i studies, has not seen to this book, therefore own have spent the massive time, and estimates through own attempt learns.fourth step starts a familiar java kind of storehouse. the java foundation class storehouse actually is jdk installs under the table of contents jrelibrt.jar this package. the study foundation class storehouse studies rt.jar. inside the foundation class storehouse kind are extremely extremely many. it is said some more than 3,000, i have not counted. but said the most core truly regarding us only then 4, respectively is java.lang.*; java.io.*; java.util.*; java.sql.*; these four packages study, each package study all may write thick teaching material, but oreilly also truly is does this. i thought if time quite tight, is impossible through to read four books to study. i thought the quite good study method is such: first must read through entire package the frame, understood entire package class, interface, the exception constitution, should better be can find the introduction entire package frame the article. these introduced specially package of books the first several chapters should be these overall frame content introductions. is not must be familiar with each kind of usage to the package of overall frame assurance, which attributes remembers it have, the method. wants to record also cannot remember. but is must know which aspects the package does have a kind of constitution, these kind of uses are any, most core several classifications maybe complete any function. i in the time which trains to the human generally is a class speaks a package, therefore not impossible detailed introduction each kind of usage, but i repeatedly stress, how do i speak these packages to you am must tell you a kind of method am transfer, also does not request you to remember the kind of method transfer, but wants you to understand, which kinds java has provided to us, each kind is uses in any situation, when i meet the question the time, i knew which kind, or which several kind of combinations can solve my problem, thatall! when we write the procedure specifically time, so long as you knew which kind should complete your work with to be enough. codes, the concrete method transfer, writes the code, documentation, all things all inside documentation, will not request you certainly to remember, are actual you also not to be able to remember more than 3,000 kinds altogether the nearly 100,000 methods transfers. therefore changes to each package overall frame assurance extremely importantly.fifth step, through above study, if study the quite solid speech, built the java foundation, is left over the work which had to do is sweeps clean inside documentation besides above 4 packages other some comparisons to have the use the kind. believed progressed to this step, java studies independently the ability already to raise, might to study documentation directly horizontal. besides must make the gui programming, inside jdk other can have the use the package is these: java.text.*; java.net.*; javax.naming.*; these packages of inside real correct uses quite many kinds very are actually few, only then several, therefore does not need to spend the very much time.sixth step, java web programming the web programming core is the http agreement, the http agreement and java irrelevant, if not familiar http agreement, although also may learn servlet/jsp programming, but cannot achieve extrapolates, by knowing one method you will know all boundary. therefore the http agreement study is necessary. if has been familiar with http agreement, also had the java programming good foundation, studies servlet/jsp is simply easy as pie, i study servlet/jsp has used not to week-long time, then started with jsp to make the project. in servlet/in the jsp study, heavy still was servlet documentation. servlet the api most commonly used kind are very few, the flowered quite few time might grasp. these kinds all looked at, writes several examples to try. servlet/the jsp programming essence is transferring these kinds to come repeatedly through the http agreement converses between web server and brower. moreover to jsp, but also needs to be familiar with several commonly used jsp the mark, the concrete mode of writing cannot remember the speech, looks up temporarily and thats the end of. in addition java the web programming study must place web application with emphasis in the design pattern, how carries on the service logic the analysis, and carries on the reasonable design, according to the mvc design pattern request, completes the different logical level separately using servlet and jsp, how grasps carries on the flow between servlet and jsp the control and data sharing, as well as how web should application dispose and the deployment.seventh step, j2ee programming the above study process if is quite smooth, carries on to this step, the difficulty enhances suddenly. because the above knowledge content all only involves an aspect, but likes ejb, jms, core the and so on jta j2ee standard often is several kind of java technology synthesis utilization crystallization, therefore grasps the difficulty quite to be big. first certainly must study good jndi, jndi is app the server localization server resources (the ejb module, datasouce, jms) searches the method, if to jndi not familiar, ejb, jms these things cannot study nearly. jndi actually is javax.naming.* this package, utilizes is very simple. the difficulty lies in the server resources document the disposition. regarding the server resources document disposition, needed to have a look the special documents to be standard, for instance web.xml mode of writing, ejb-jar.xml mode of writing and so on. in view of each kind of different app server, but also has own service resources disposition document, also is needs to be familiar with. then may study jta, mainly is must understand jta regarding business control method, as well as should use jta in any situation. here may simple cite an example, we knew the ordinary circumstances may carry on business regarding a database connection (conn.setautocommit (false).,conn.commit (), does is an atomic operation, but the supposition my service demand is needs to hold artificially to two different databases is an atomic operation, you can do to? at this time only could use jta. the supposition operating process inserts a record first toward the a database, then deletes the b database another record, we wrote the code are cannot control entire hold artificially are an atomic operation. with the jta speech, completes the control by app server. in studies in front of ejb must study the object sequence and rmi, rmi is the ejb foundation. then studies jms and ejb, said regarding ejb, most is essential is must understand how ejb is realizes through rmi to the far-end object transfer, as well as must use in any situation to ejb. in studies ejb, after jms these things, you possibly can realize must extremely anxiously study two domains the knowledge, is uml, another is design pattern. the java enterprise software design takes the frame extremely (framework) the design, a good software frame is the software develops the successful essential condition. in this time, should start the study key point to place the design pattern and in the frame study, experiences through the study and the actual programming grasps ejb the design pattern and the j2ee core pattern. inside j2ee standard, except ejb, jms, jta, servlet/jsp, outside jdbc also has the very many very many enterprises technology, here 11 did not carry on introducedmoreover also has newest domain web services. web services also completely does not have any new thing, it likes is one kind of adhesive, may unify the different service provides a unified transfer connection, said as the user, i so long as obtain the service provider for mine wsdl (to service description), has sufficed, i did not know completely the server tenderer provides actually the service is the ejb module,the net module, any corba module, other any realizations, i do not need to know. web the services greatest place lies in through the unified service provides the way and the transfer way, has realized the entire internet service sharing, is an extremely excited area of technology. web services resembles at present not to have any very good books, but may through look up the material above the network the way to study.附录5 外文译文java学习过程每个人的学习方法是不同的,一个人的方法不见得适合另一个人,我只能是谈自己的学习方法。因为我学习java是完全自学的,从来没有问过别人,所以学习的过程基本上完全是自己摸索出来的。我也不知道这种方法是否是比较好的方法,只能给大家提供一点参考了。 学习java的第一步是安装好jdk,写一个hello world,其实jdk的学习没有那么简单,关于jdk有两个问题是很容易一直困扰java程序员的地方:一个是classpath的问题,其实从原理上来说,是要搞清楚jre的classloader是如何加载class的;另一个问题是package和import问题,如何来寻找类的路径问题。把这两个问题摸索清楚了,就扫除了学习java和使用jdk的最大障碍。推荐看一下王森的java深度历险,对这两个问题进行了深入的探讨。 第二步是学习java的语法。java的语法是类c+的,基本上主流的编程语言不是类c,就是类c+的,没有什么新东西,所以语法的学习,大概就是半天的时间足够了。唯一需要注意的是有几个不容易搞清楚的关键字的用法,public,protected,private,static,什么时候用,为什么要用,怎么用,这可能需要有人来指点一下,我当初是完全自己琢磨出来的,花了很久的时间。不过后来我看到thinking in java这本书上面是讲了这些概念的。 第三步是学习java的面向对象的编程语言的特性的地方。比如继承,构造器,抽象类,接口,方法的多态,重载,覆盖,java的异常处理机制。对于一个没有面向对象语言背景的人来说,我觉得这个过程需要花很长很长时间,因为学习java之前没有c+的经验,只有c的经验,我是大概花了一个月左右吧,才彻底把这些概念都搞清楚,把书上面的例子反复的揣摩,修改,尝试,把那几章内容反复的看过来,看过去,看了不下5遍,才彻底领悟了。不过我想如果有c+经验的话,应该一两天时间足够了。那么在这个过程中,可以多看看thinking in java这本书,对面向对象的讲解非常透彻。可惜的是我学习的时候,并没有看到这本书,所以自己花了大量的时间,通过自己的尝试和揣摩来学会的。 第四步就是开始熟悉java的类库。java的基础类库其实就是jdk安装目录下面jrelibrt.jar这个包。学习基础类库就是学习rt.jar。基础类库里面的类非常非常多。据说有3000多个,我没有统计过。但是真正对于我们来说最核心的只有4个,分别是:java.lang.*;java.io.*;java.util.*; java.sql.*;这四个包的学习,每个包的学习都可以写成一本厚厚的教材,而oreilly也确实是这样做的。我觉得如果时间比较紧,是不可能通过读四本书来学习。我觉得比较好的学习方法是这样的:首先要通读整个package的框架,了解整个package的class,interface,exception的构成,最好是能够找到介绍整个包框架的文章。这些专门介绍包的书籍的前几章应该就是这些总体的框架内容介绍。对包整体框架的把握并不是要熟悉每个类的用法,记住它有哪些属性,方法。想记也记不住的。而是要知道包有哪些方面的类构成的,这些类的用途是什么,最核心的几个类分别是完成什么功能的。我在给人培训的时候一般是一次课讲一个包,所以不可能详细的介绍每个类的用法,但是我反复强调,我给你们讲这些包的不是要告诉你们类的方法是怎么调用的,也不要求你们记住类的方法调用,而是要你们了解,java给我们提供了哪些类,每个类是用在什么场合,当我遇到问题的时候,我知道哪个类,或者哪几个类的组合可以解决我的问题,thatall!,当我们具体写程序的时候,只要你知道该用哪个类来完成你的工作就足够了。编码的时候,具体的方法调用,是边写代码,边查documentation,所有的东西都在documentation里面,不要求你一定记住,实际你也记不住3000多个类的总共将近10万个方法调用。所以对每个包的总体框架的把握就变得极为重要。第五步,通过上面的学习,如果学的比较扎实的话,就打好了java的基础了,剩下要做的工作是扫清documentation里面除了上面4个包之外的其他一些比较有用处的类。相信进展到这一步,java的自学能力已经被培养出来了,可以到了直接学习documentation的水平了。除了要做gui编程之外,jdk里面其他会有用处的包是这些:java.text.*; .*; javax.naming.*;这些包里面真正用的比较多的类其实很少,只有几个,所以不需要花很多时间。 第六步,java web 编程 web编程的核心是http协议,http协议和java无关,如果不熟悉http协议的话,虽然也可以学好servlet/jsp编程,但是达不到举一反三,一通百通的境界。所以http协议的学习是必备的。如果熟悉了http协议的话,又有了java编程的良好的基础,学习servlet/jsp简直易如反掌,我学习servlet/jsp就用了不到一周的时间,然后就开始用jsp来做项目了。 在servlet/jsp的学习中,重头仍然是servlet documentation。servlet api最常用的类很少,花比较少的时间就可以掌握了。把这些类都看一遍,多写几个例子试试。servlet/j

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论