SCJP _Standard Edition 5.0考试大纲翻译(继)

本文深入探讨Java集合框架的使用技巧,包括如何选择合适的集合类及接口实现特定设计需求,理解并区分hashCode与equals方法的正确覆盖,掌握泛型版本的Set、List和Map接口的应用,以及如何利用java.util包中的功能进行数据操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

总算是翻译完了

Section 6: Collections / Generics
类集框架/普通(?)
--------------------------------------------------------------------------------


Given a design scenario, determine which collection classes and/or interfaces should be used to properly implement that design, including the use of the Comparable interface.
在给定的一个设计下,判断哪些类集框架中的类 并且/或者 接口应该使用什么样的适当方法去实现这个设计,包括Comparable 接口的使用.

Distinguish between correct and incorrect overrides of corresponding hashCode and equals methods, and explain the difference between == and the equals method.
区别正确的和不正确的overrides of corresponding hashCode(overrides应该怎么翻译)和equals 方法,并描述==和equals 方法之间的区别


Write code that uses the generic versions of the Collections API, in particular, the Set, List, and Map interfaces and implementation classes. Recognize the limitations of the non-generic Collections API and how to refactor code to use the generic versions.
写出使用普通版本的类集API的代码,特别是Set,List, 和Map接口和实现它们的类.辨别特殊类集API的局限性和怎么refactor(该怎么翻译?)代码去使用普通版本的类集API

Develop code that makes proper use of type parameters in class/interface declarations, instance variables, method arguments, and return types; and write generic methods or methods that make use of wildcard types and understand the similarities and differences between these two approaches.
type parameters是什么意思,generic methods和wildcard types又是什么意思?
写出在类/接口声明,实例变量,方法参数和返回类型中使用type parameters的代码,并且写generic methods或使用wildcard types的方法,并明白它们之间的相似点和不同点


Use capabilities in the java.util package to write code to manipulate a list by sorting, performing a binary search, or converting the list to an array. Use capabilities in the java.util package to write code to manipulate an array by sorting, performing a binary search, or converting the array to a list. Use the java.util.Comparator and java.lang.Comparable interfaces to affect the sorting of lists and arrays. Furthermore, recognize the effect of the "natural ordering" of primitive wrapper classes and java.lang.String on sorting.
使用java.util包中的功能写出代码对list进行排序,执行二进制的搜索,或将list转换为数组
使用java.util包中的功能写出代码对数组进行排序,执行二进制的搜索,或将数组转换为list
使用java.util.Comparator 和java.lang.Comparable接口改变数组和list的排序顺序,此外分辨出原始类型包装类和java.lang.String在排序时的自然顺序.

Section 7: Fundamentals
基本原理
--------------------------------------------------------------------------------


Given a code example and a scenario, write code that uses the appropriate access modifiers, package declarations, and import statements to interact with (through access or inheritance) the code in the example.
在给定的代码和的情形下,写代码使用恰当的访问修改词,包声明和导入语句作用(在整个访问或继承的过程中)于示例中的代码

Given an example of a class and a command-line, determine the expected runtime behavior.
给定一个类的例子和命令行,确定程序进行时的行为

Determine the effect upon object references and primitive values when they are passed into methods that perform assignments or other modifying operations on the parameters.
确定当把对象的引用和原始类型数据做为参数传到方法中,然后执行某个任务或对它们进行修改操作后,将对它们产生什么样的效果

Given a code example, recognize the point at which an object becomes eligible for garbage collection, and determine what is and is not guaranteed by the garbage collection system. Recognize the behaviors of System.gc and finalization.
给定一段代码示例,分辨在什么情况下一个对象将变得符合垃圾回收的条件,并确定哪些对象会确保被除数垃圾回收机制处理,哪些不会?能够区别GC系统和finalization的行为.

Given the fully-qualified name of a class that is deployed inside and/or outside a JAR file, construct the appropriate directory structure for that class. Given a code example and a classpath, determine whether the classpath will allow the code to compile successfully.
给定一个配置在JAR文件并且/或者不在JAR的类的名字,为这个类创建一个适当的目录结构.给定了一个代码示例和路径,判断这个路径是否能使这个类被成功编译.

Write code that correctly applies the appropriate operators including assignment operators (limited to: =, +=, -=), arithmetic operators (limited to: +, -, *, /, %, ++, --), relational operators (limited to: <, <=, >, >=, ==, !=), the instanceof operator, logical operators (limited to: &, |, ^, !, &&, ||), and the conditional operator ( ? : ), to produce a desired result. Write code that determines the equality of two objects or two primitives.
写出代码正确使用运算符进行操作,包括赋值运算(限制于:=, +=, -),算术运算(限制于:+, -, *, /, %, ++, --),关系运算(限制于: <, <=, >, >=, ==, !=),逻辑运算 (限制于: &, |, ^, !, &&, ||),和条件运算( ? : ),最后得到需要的结果.写代码判断两个对象或原始类型数据是否相等

后来在Core Java2(第7版)看到一个表,里面有JAVA历次版本新增的内容:

Table 1-1. Evolution of the Java Language

Version

New Language Features

1.0

The language itself

1.1

Inner classes

1.2

None

1.3

None

1.4

Assertions

5.0

Generic classes, "for each" loop, varargs, autoboxing, metadata, enumerations, static import

其中比如像Generic classes我都不知道怎么翻译.autoboxing, metadata好像是从C#中借鉴过来的.待我慢慢看来吧
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值