`
wqy159
  • 浏览: 56027 次
  • 性别: Icon_minigender_2
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

Tiger in the house

阅读更多

网站:JavaEye 作者:hideto 发表时间: 2007-07-14 02:49 此文章来自于 http://www.iteye.com
声明:本文系JavaEye网站原创文章,未经JavaEye网站或者作者本人书面许可,任何其他网站严禁擅自发表本文,否则必将追究法律责任!
原文链接: http://www.iteye.com/topic/100961

很高兴花周五晚上2个小时的时间来阅读这样一本实用的书 -- 《Java 5.0 Tiger》

很多我面试过的朋友,工作经验两年以上,到今天都只用过JDK1.4,中WebSphere/WebLogic的毒不浅
智,日日知新也

一、新的类库
1, java.util.Arrays
提供对数组的一大堆实用的static方法:
binarySearch([], key): 使用二分搜索法来在指定数组中搜索指定值,返回搜索值的索引
toString([]): 打印数组内容
deepToString([]): 深层打印数组内容,适用于多维数组
equals([], []): 数组比较
deepEquals([], []): 深层比较,适用于多维数组
fill([], val): 给数组的每个元素赋值
sort([]): 对数组升序排序

2, java.util.Queue
FIFO(先进先出)的必需品:
offer(E): 进
poll(): 出
Queue是接口,Queue q = new LinkedList();

3, java.util.Comparator
结合java.util.Priority构造自己排序的Queue:
compare(t1, t2): 实现自己的compare方法来排序

4, Override返回类型
Tiger让方法覆盖时连返回类型也可以Override:

代码

Test2运行结果为: Test2
返回类型可以为superclass返回类型的extension

5, Unicode
Tiger前的Java版本支持Unicode 3.0,所有Unicode字符容于16位(一个char)
而Tiger改为支持Unicode4.0,它定义了不能容于16位的字符,这些字符不能容于一个char
这时我们用int类型的codePoint来表示该字符
codepoint是一个代表特定字符的数字,如0x3C0是π这个符号的codepoint
我们需要关注Character类的新方法

6, StringBuilder
不担心thread安全的情况下使用StringBuilder代替StringBuffer是最好的方式

引用

Where possible, it is recommended that this class be used in preference to StringBuffer as it will be faster under most implementations.




《 Tiger in the house 》 的评论也很精彩,欢迎您也添加评论。查看详细 >>

推荐相关文章:
  基于开源工作流引擎OSWorkflow的业务系统实例——请假审批系统
  Grails常见误解




JavaEye推荐
上海乐福狗信息技术有限公司:诚聘技术经理和开发工程师
免费下载IBM社区版软件--它基于开放的标准,支持广泛的开发类型,让您的开发高效自主!
京沪穗蓉四地免费注册,SOA技术高手汇聚交锋.
上海:优秀公司德比:高薪诚聘 资深Java工程师
广州:优易公司:诚聘Java工程师,开发经理
上海:尤恩斯国际集团:诚聘开发工程师
北京:优秀公司NHNChina招聘:WEB开发,系统管理,JAVA开发, DBA


分享到:
评论

相关推荐

    1五上U5Readandwrite.ppt

    通过列举的例子,如 "There is a tiger in the house."(房子里有一只老虎。),我们可以理解 "In" 用于表示在某个空间内。 对于位置关系,PPT还介绍了 "Beside"(在...旁边)、"In front of"(在...前面)、...

    中考英语专题复习冠词张PPT课件.pptx

    1. 表示"一"的概念,例如:"There is a tiger in the zoo."(动物园里有一只老虎。) 2. 表示一类人或事物,如:"A tiger can be dangerous."(老虎可能有危害性。) 3. 表示"每一"的意思,如"We go swimming four ...

    天津市滨海新区七年级英语下册Module8StorytimeUnit3Languageinuse导学案无答案新版外研版20180

    Once upon a time, there lived a tiger in the forest." - 否定句构造:如"我书包里什么也没有。There was nothing in my bag." - 一般疑问句及肯定回答:如"你昨天给父母打电话了吗?—是的。Did you call your ...

    冠词的用法.pdf

    2. 它可以表示"一个"的概念,如"There is a tiger in the zoo."(动物园里有一只老虎)。 3. 表示一类人或事物,比如"A tiger can be dangerous."(老虎可能有危害性)。 4. 表示"某一个",例如"A gentleman wants ...

    5A牛津英语(1~9)单元练习.doc

    对于"Is there a tiger in the garden?",否定回答是"No, there isn't.";对于"Are there any oranges on the table?",肯定回答是"Yes, there are.";对于"Are there any boys in the zoo?",否定回答是"No, there ...

    初中真题+考点中考英语重点单词用法.doc

    例如:“I was terrified of the tiger when I first saw it.” 和 “He is terrified of speaking English in class.” 这里的 `terrified` 比 `afraid` 表达的恐惧感更强烈。 3. **Practice**: - 作为动词,`...

    精品(2021-2022年)资料苏教版五年级上学期英语期末语法复习和练习.doc

    例如:"There is a bed and three bears in the house."(房子里有一张床和三只熊。) 5. 一般疑问句:用 "Be there..." 开头。例如:"Is there a library in our school?"(我们学校有一个图书馆吗?) 6. 特殊...

    初中英语重点单词用法.docx

    可以使用"be terrified of sth./ doing sth.",比如"I was terrified of the tiger when I first saw it."(我第一次看见老虎时吓坏了)和"He is terrified of speaking English in class."(他害怕在课堂上讲英语)...

    初升高复习——冠词讲解和练习.docx

    - the + 形容词的复数形式,表示一家人或夫妇,如 The Browns have lived in this house for many years.(布朗一家在这个房子里住了许多年。) - the + 形容词(部分)表示一类人,如 the rich(富人),the poor...

    新译林版5A Unit1测试题1精选.doc

    1. "在森林里" 是 "in the forest"; 2. "一座漂亮的房子" 对应 "a beautiful house"; 3. "正合适" 翻译为 "just right"; 4. "在她的前面" 是 "in front of her"; 5. "在书桌旁边" 为 "beside the desk"; 6. "太...

    定语从句练习题及答案.pdf

    3. **Many people who had seen the film were afraid to go to the forest when they remembered the scenes _______ people were eaten by the tiger.** - 答案:**D. in which** - 解析:此处scenes作为先行词...

    【广州版】六年级英语上册考试题-(2).pdf

    例如,听句子选择句中含有的信息,涉及了after class, after school, after dinner等时间表达,以及The Line King, The Monkey King, The Tiger King等专有名词,还有Tree Planting Day, Mother's Day, Spring ...

    高中英语选修6第一单元知识点、语法及练习.docx

    动词"aim"可以表示瞄准,如"He aimed his gun at the tiger",也可以表示计划或立志做某事,如"Harry aims at being a doctor."。形容词"aimless"则表示无目标的。 6. **Evident**:"evident"意为明显的或明白的,...

    新冀教版三年级下册小学英语全册单元知识点小结.docx

    此外,还有一些了解词汇,如特殊疑问词what, where,动词swim, fly等,以及农场相关的单词如farmhouse, chicken等。 二、核心句型 本单元强调了几个关键句型的运用: 1. 询问物体是什么的句型:"What’s this?",...

    21春南开大学《大学英语(二)》在线作业参考答案.docx

    9. "We () in the same house when we were students in Britain." 此题考察固定搭配。选项C "used to live" 表示过去常常住在同一所房子里。 10. "We have ____ with the company for 10 tons of steel." 此题考察...

    新目标七年级下册英语教学大纲.doc

    post office, pay phone, across from, next to, in front of, on the right等短语,以及指路用语,如take a walk, have fun, take a taxi, turn left, go straight, between...and..., the way to my house。...

    2018年小学英语毕业模拟卷.doc

    - on holiday in the UK:在英国度假 - 好习惯:good habits - the man next to me:我旁边的那位男士 - 端午节:Dragon Boat Festival - eat lots of delicious food:吃很多美味的食物 - 赏月:enjoy the ...

    外研版小学四年级英语上册期中测试卷.pdf

    - 冠词和介词:涉及到了不定冠词a/an(如“I'm the winner.”)和介词的使用(如“next to the house”)。 4. **单项选择**: - 考察了动词的形式(如cooking vegetables),情态动词的回答(如No, I can't.),...

    2018年秋九年级英语上册Unit6TVprogrammesPeriod2Reading同步练习新版牛津版

    In the film, a wealthy doctor was found dead in his house. - 直到最后一刻,你才会找到答案。You will not find the answer until the very end. - 如果你喜欢破解疑案,你可能会喜欢这部电影。If you enjoy ...

    小学生英语短文背诵.doc

    The strongest power in the world:该短文讲述了人类的潜力和能力,帮助学生了解人生的价值和意义。 Passage 54. Who is the God:该短文讲述了宗教和信仰的重要性,帮助学生了解文化和宗教的多样性。 Passage...

Global site tag (gtag.js) - Google Analytics