Java 5 New Language Features

Generics

The Generics Tutorial from Sun covers the basic knowledge that is necessary for this category.

  • Create code that uses Generics.
  • Describe the benefits of Generics.
  • Develop code which deals with legacy code that is not generified.

Enhanced "for" Loop
  • Write code that makes appropriate use of the Enhanced for Loop.
  • Identify correct and incorrect usage of the Enhanced for Loop.
  • Explain the limitations of the Enhanced for Loop.
Autoboxing/Unboxing
  • Explain what can be done with Autoboxing / Unboxing.
  • Develop code that use Autoboxing / Unboxing.
  • Discuss the appropriate use of Autoboxing / Unboxing.
  • Know that the values true, false, a byte, a char in the range \u0000 to \u007f, or an int or short number between -128 and 127, have special treatment within boxing conversions. And no assumptions can be made about other values.

Note: Before posting a question about boxing, read paragraph 5.1.7 of the Java Language Specification very carefully (especially the discussion box).

Typesafe Enums
  • Identify the goals of Typesafe Enums.
  • Create enum constructors and explain how to create Enums.
  • Write code that shows the correct and incorrect usage of Typesafe Enums.
  • Use the methods in enums.
  • Work with EnumSet and EnumMap.
Varargs
  • Determine the notation of Varargs.
  • Develop code using Varargs.
  • Explain why it is bad practice to overload methods with Varargs.
Static Import
  • Write code that use Static Import.
  • Compare the old and new way of using static members.
  • Discuss best practices of how to use static import.
Metadata (Annotations)

An introduction from IBM to Annotations is here.
The definition of Annotations can be found in chapter 9.6 & 9.7 of the Java Language Specification and in the description of the java.lang.annotation package.

  • Identify code that use Annotations.
  • Create code that use standard Annotations.
  • Develop custom Annotations.
  • Explain the advantages of Annotations.
  • Describe what marker annotations and meta-annotations are and how to use them.


Not covered: EJB 3 specific things!

根据引用的内容,这段引用中包含了一些Vue.js代码和HTML代码,并讨论了换行符和空格在网页中的使用。其中,引用是关于添加和还原换行符的方法,引用是关于在编辑数据时获取详情和使用textarea的示例代码,引用是关于HTML中空格的处理和字符实体的使用。 问题中提到的&nbsp;是HTML中表示空格的字符实体。HTML通常会自动截取多余的空格,不管你加多少空格,都被看做一个空格。为了在网页中增加空格,可以使用&nbsp;表示空格。此外,还有其他常用的字符实体,如<表示小于号,>表示大于号,&表示&符号,"表示双引号,等等。 需要注意的是,引用的内容中有一些HTML实体被转义了,所以在描述字符实体时需要参考编码转义后的字符。 根据给定的引用内容,我无法直接回答问题,因为问题中的信息不完整。请提供更具体的问题或补充说明,我将尽力为您提供帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [js+v-html+正则表达式去除所有& nbsp和html标签(& nbsp 换行 )](https://blog.csdn.net/xm_w_xm/article/details/91992754)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [html&nbsp;&nbsp;特殊字符(转)](https://blog.csdn.net/feiniu5566/article/details/13624619)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值