收藏文章 楼主
免费Sun 310-055 Exam Demo
网友【alix】 2007-09-05 14:34:15 分享在【我的地盘我做主】版块    5768    1    9
7.HP0-450HP0-210HP0-240000-872000-234 }

What is required at line 5 in class SomeApp to use the process method of BitUtils?

A: process(bytes);

B: BitUtils.process(bytes);

C: app.BitUtils.process(bytes);

D: util.BitUtils.process(bytes);

E: import util.BitUtils.*; process(bytes);

F: SomeApp cannot use the process method in BitUtils.

Correct Answers:F

7. 000-238000-385000-993000-078000-141Given:

12.NumberFormat nf = NumberFormat.getInstance();

13.nf.setMaximumFractionDigits(4);

14.nf.setMinimumFractionDigits(2);

15.String a = nf.format(3.1415926);

16.String b = nf.format(2);

Which two statements are true about the result if the default locale is Locale.US? (Choose two.)

A:The value of b is 2.

B:The value of a is 3.14.

C:The value of b is 2.00.

D:The value of a is 3.141.

E:The value of a is 3.1415.

F:The value of a is 3.1416.

G:The value of b is 2.0000.

Correct Answers:C, F

8. 000-236000-235310-015000-994000-630Given a correctly compiled class whose source code is:

1. package com.sun.sjcp;

2. public class Commander {

3.public static void main(String[] args) {

4.// more code here

5.}

6. }

Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains "." (current directory).

Which command line correctly runs Commander?

A: java Commander

B: java com.sun.sjcp.Commander

C: java com/sun/sjcp/Commander

D: java -cp com.sun.sjcp Commander

E: java -cp com/sun/sjcp Commander

Correct Answers:B

9. 000-094920-172920-322920-450920-569310-202 Given:

12. System.out.format("Pi is approximately %d.", Math.PI);

What is the result?

A: Compilation fails.

B: Pi is approximately 3.

C: Pi is approximately 3.141593.

D: An exception is thrown at runtime.

Correct Answers:D

10. MCSE70-29970-22970-21870-22070-23770-28570-30170-62170-622Given:

11. public class Person {

12.private name;

13.public Person(String name) {

14.this.name = name;

15.}

16.public int hashCode() {

17.return 420;

18.}

19. }

Which statement is true?

A: The time to find the value from HashMap with a Person key depends on the size of the map.

B: Deleting a Person key from a HashMap will delete all map entries for all keys of type Person.

C: Inserting a second Person object into a HashSet will cause the first Person object to be removed as a duplicate.

D: The time to determine whether a Person object is contained in a HashSet is constant and does NOT depend on the size of the map.

Correct Answers:A
meiguo.com 发布人签名/座右铭这家伙浪费了“黄金广告位”,啥也没签!
大家都在看
回复/评论列表
默认   热门   正序   倒序
meiguo.com 创始人

emotion

9   2007-09-05 14:34:15  回复

回复/评论:免费Sun 310-055 Exam Demo

暂无用户组 升级
退出
等级:0级
美果:
美过

美国动态 美果转盘 美果商店

Your IP: 44.223.31.148, 2024-03-29 07:34:53

Processed in 0.41042 second(s)

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息
已有0次打赏
(9) 分享
分享
取消