[一位通过网恋认识了广西老公而嫁入广西柳州的广东姑娘]一位通过SCJD的外国人的心得
【shitiku.jxxyjl.com--JAVA认证交流指导】
today i check and found myself passed scjd. i used to think that sun will email me about the result but it is not necessary. i downloaded the assignment(flight by night) on march 13, 2002, uploaded on may 3rd, 2002(unable to upload first, solved 1 day after i emailed who2contact), and took the essay test (only 5 questions) on may 12th, 2002, got passed on may 23th, 2002. result:
test: sun certified developer for the java 2 platform (310-027)
date taken: 2002-05-23 01:31:17.153
grade: p
score: 0142
general considerations(maximum = 58): 54
documentation(maximum = 20): 20
gui(maximum = 24): 19
server(maximum = 53): 49
my major design choice and considerations are as follows: (almost my designchoice.txt)
i think most of them are common, nothing particular.
1) rmi vs object stream. i use rmi instead of sockets
2) i modify the database class - suncertify.db.data for easy usage. also there are 2 deprecated methods in suncertify.db.data, which need modification.
3) my search logic is pretty simple. for example, say we got three search criteria (origin="xxx", destiny="xxx", carrier="xxx"), i will search three times respectively with each criteria and get three result sets. the record which exists in each of the three result sets is the one we need.
4) local/network
i have a interface named remotedata, which have all the public methods of data. the remotedataimpl is the rmi implementation in server of this interface, which just maps the remote invocations to local ones. also in data class, i have a dobook() method which is used to deal with the booking process in the sequence of lock, read, modify if applicable and unlock the target record. it might mot be very suitable to put this business method in a data class, but this is the easiest way to conform local mode with network mode, and make sure the booking process is in the same thread in server with network mode. so i can use the reference of current thread as the owner of the lock.
5) lock/unlock
i use wait/notify mechanism for lock/unlock. i use the reference to the current thread
as the id(owner) of the lock. when a locked record is to be unlocked, the reference of unlocking thread will be compared with the owner of the lock, if same, unlock the record, otherwise do nothing.
6) server
my data server just instantiates a remotedataimpl object and bind it with a predefined name.
i don"t designs a gui for server.
7) client gui
i hava entry class to start the mainscreen according the mode the user selects
in the command line parameter. the first parameter (-l or -n) indicates the local mode or
network mode. in local mode, the location of db.db is needed as the second parameter.
in network mode, the address and port of data server
as to the deployment, i decide to pack the _stud.class into client.jar instead of downloading it from the server for facilitation. so i do not use a securitymanager for the clients.
i would like to thank mark, sid, sai, adam and javaranch. next i will run for scwcd.
good luck, every one!
leon wang
5-29-2002
本文来源:https://shitiku.jxxyjl.com/javarenzhengjiaoliuzhidao/6253.html
-
【我的安全经验谈】经验谈:我学习使用java的一点体会详细阅读
2002年初,因为公司的业务需要而学习java,并应用java开发项目。由于项目时间紧,没有充裕的时间系统学习java,对java的学习只能是项目需要用什么,就学什么,这种学习方法的上手快,但不扎实,在以后的工作中,因为java学的不扎实,吃了不少苦头。现在我学习应用java已经有一...
-
【j2ee学习路线】J2EE建议的学习路线详细阅读
网络上、书店都提供了很多资料,很多方式都可以得到j2ee方面的资料。如何系统的、高效的学习j2ee这个问题摆在我们面前。比如, 有些人在看完一大堆书后,动起手来时还是不知道怎么开始。等等这些问题是我们最难处理的。如何寻找到一条很好的方式方法呢? 其实, 换一个角度来看,比如,学英...
-
【eclipse osgi环境搭建】基于OSGi搭建动态化的系统详细阅读
搭建动态化的系统是作为java开发人员一直就非常追求的目标,一个系统能够动态化就意味着:★ 添加新功能时不需要重启系统;★ 修改已存在的功能时不需要重启系统;★ 删除一些不需要的功能时不需要重启系统;★ 修改系统中的配置时可以不需要重启系统即刻生效;★ 系统的业务行为可动态的改变。...
-
java语言初学者书籍_对于初学者学习Java语言的建议详细阅读
初学者的任务是掌握java的语言规则和养成良好的编程习惯,其次才谈到对类库使用的熟练程度,再其次是oo思想的掌握与应用,再其次就是design pattern的问题了。 在这里我只想介绍几个对成功完成第一个阶段很有用的资料。 以下按照循序渐进的顺序进行: 1 the ja...
-
在java中_java中LinkedList集合类实现栈和队列详细阅读
栈和队列是两种特殊的线性表,它们的逻辑结构和线性表相同,只是其运算规则较线性表有更多的限制,故又称它们为运算受限的线性表。 linkedlist数据结构是一种双向的链式结构,每一个对象除了数据本身外,还有两个引用,分别指向前一个元素和后一个元素,和数组的顺序存储结构(如:arr...
-
[苹果授权店sun]Sun授权ASEC-Java培训中心名录详细阅读
北京 中软总公司计算机培训中心 010-62179898 清华大学java培训中心 010-62773618 北京大学java培训中心 010-62755660 神州数码(中国)有限公司(北京) 010-68428888 北京新东方...
-
学java的心得_技巧心得:java学习体悟详细阅读
java 出现在我们眼前,时间还很短,当他还只是一个半成品的时候,我们就被告知,java将成为软件发展的规范和希望 然后,java出现了,jdk的出现,我们发现其实java并不习惯,因为我们已经适应了window下的visual编程,对于jdk这种编程方法已经很不喜欢,即使visu...
-
scjp怎么考|考SCJP的失败经历总结详细阅读
终于在上个星期六过了scjp,可惜只有69%!还是说说我准备考试的过程吧。 本人没有java的实际开发经验(但有三五年的c++和delphi开发经验,对oop比较熟悉),为了考这试,准备了一个月左右,但之前看了《thinking in java》和《java2核心技术卷1:基础知识》...
-
java四本圣经_Java行业的圣经-四本最重要的个人藏书详细阅读
java行业的圣经 四本最重要的个人藏书,他们的书名都不含java 作者 thomas e davis 译者 摘要 thomas davis 推荐了四本书,它们可以让你在java开发中受益非浅。这些书扩展了java的基本语法和语义,使你能更全面地理解面...
-
【走向共和】走向J2EE,漫长的道路详细阅读
初次涉及java领域,感觉到java入门是好像没有c,c++入门快,工具也没有什么turbo c,visual c++好用(自己的破机器实在陪不起jbuilder,贪婪的家伙,以后一定要收拾她)。什么java_home,classpath,虚拟机等概念都是初次基础,旁边的人都很少用ja...