预览模式: 普通 | 列表

【TOP】M商城V1.9(增加商品搜索、最新商品功能,修正BUG)

【TOP】Java坦克大战网络对战平台V4.8(完善功能、发布程序) 

【TOP】Java坦克大战图片版V3.6(修正BUG,发布程序)

离开古城,南下。。。

稍后更新。。。
分类:Other | 固定链接 | 禁止评论 | 引用: 0 | 查看次数: 18

《古剑奇谭》签售会

分类:Other | 固定链接 | 禁止评论 | 引用: 0 | 查看次数: 86

Java中垃圾回收的条件——SCJP真题解析Q74

QUESTION 74:
Given the exhibit:

*************************
相关代码内详
*************************

Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?
A. Line 11
B. Line 12
C. Line 13
D. Line 14
E. The object is NOT a candidate for garbage collection.

查看更多...

Tags: Java SCJP 310-055 真题解析 垃圾回收 条件

分类:J2SE | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 179

Java中枚举的用法——SCJP真题解析Q73

QUESTION 73:
Given the exhibit:
enumExample { ONE, TWO, THREE }
Which statement is true?
A. The expressions (ONE == ONE) and ONE.equals(ONE) are both guaranteed to be true.
B. The expression (ONE < TWO ) is guaranteed to be true and ONE.compareTo(TWO) is guaranteed to be less than one.
C. The Example values cannot be used in a raw java.util.HashMap.; instead, the programmer must use a java.util.EnumMap.
D. The Example values can be used in a java.util.SortedSet, but the set will not be sorted because enumerated Type do not implement java.lang.Comparable.

查看更多...

Tags: Java SCJP 310-055 真题解析 枚举 Enum

分类:J2SE | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 120

Java泛型类的边界控制——SCJP真题解析Q72

QUESTION 72:
Given the exhibit:

*************************
相关代码内详
*************************

Which two, inserted at line 1 will allow the code to compile? (Choose Two)
A. public class MinMax<?> {
B. public class MinMax<? extends Number> {
C. public class MinMax<N extends Object> {
D. public class MinMax<N extends Number> {
E. public class MinMax<? extends Object> {
F. public class MinMax<N extends Integer> {

查看更多...

Tags: Java SCJP 310-055 真题解析 泛型 边界控制

分类:J2SE | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 100

Java的HashMap中使用自定义类——SCJP真题解析Q71

QUESTION 71:
Given the exhibit:

*************************
相关代码内详
*************************

A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap.
Which two methods should be overridden to assure that key works correctly as a key? (choose two)
A. public int hashCode()
B. public boolean equals(Key k)
C. public int compareTo(Object o)
D. public boolean equals(Object o)

查看更多...

Tags: Java SCJP 310-055 真题解析 HashMap 自定义类

分类:J2SE | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 105
QUESTION 70:
Given the exhibit:

*************************
相关代码内详
*************************

What is the result?
A. apple:apple
B. carrot:apple
C. apple:banana
D. banana:apple
E. carrot:carrot
F. carrot:banana

查看更多...

Tags: Java SCJP 310-055 真题解析 优先级 队列 PriorityQueue

分类:J2SE | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 125