<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
	<title><![CDATA[中国Java实验室（ChinaJavaLab）技术论坛 - 论坛最新贴]]></title>
	<link>http://www.chinajavalab.com/cgi-bin/leobbs.cgi</link>
	<description><![CDATA[中国Java实验室（ChinaJavaLab）技术论坛 最新 15 个贴子列表]]></description>
	<copyright>中国Java实验室（ChinaJavaLab）技术论坛</copyright>
	<managingEditor>cjl@chinajavalab.com</managingEditor>
	<language>zh-cn</language>
	<generator>LEOBBS X -- http://bbs.leobbs.com/</generator>
	<image><url>http://www.chinajavalab.com/non-cgi/images/lblogo.gif</url>
<title>中国Java实验室（ChinaJavaLab）技术论坛</title>
<link>http://www.chinajavalab.com/cgi-bin</link>
</image>
	<item>
		<title><![CDATA[Which of the following fragments might cause erro&#114;s?]]></title>
		<author>mesum</author>
		<pubDate>2008/07/03 04:53pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1720&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1720</comments>
		<description><![CDATA[Which of the following fragments might cause errors?<br>　　A. String s = &quot;Gone with the wind&quot;&#59;<br>　　String t = &quot; good &quot;&#59;<br>　　String k = s + t&#59;<br>　　B. String s = &quot;Gone with the wind&quot;&#59;<br>　　String t&#59;<br>　　t = s[3] + &quot;one&quot;&#59;<br>　　C. String s = &quot;Gone with the wind&quot;&#59;<br>　　String standard = s.toUpperCase()&#59;<br>　　D. String s = &quot;home directory&quot;&#59;<br>　　String t = s - &quot;directory&quot;&#59;<br>　　翻译下面的哪些程序片断可能导致错误。<br>　　答案　B,D<br>　　解析<br>　　A：String类型可以直接使用+进行连接运算。<br>　　B：String是一种Object，而不是简单的字符数组，不能使用下标运算符取其值的某个元素，错误。<br>　　C：toUpperCase()方法是String对象的一个方法，作用是将字符串的内容全部转换为大写并返回转换后的结果(String类型)。<br>　　D：String类型不能进行减(-)运算，错误。]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析二十六]]></title>
		<author>mesum</author>
		<pubDate>2008/07/02 09:42am</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1719&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1719</comments>
		<description><![CDATA[SCJP考试试题解析二十六<p><br>我的QQ号:2535279 <p> Which statement of assigning a long type variable to a hexadecimal <p>&#118;alue is correct?<br>　　A. long number = 345L&#59;<br>　　B. long number = 0345&#59;<br>　　C. long number = 0345L&#59;<br>　　D. long number = 0x345L<br>　　翻译哪些是将一个十六进制值赋值给一个long型变量。<br>　　答案　D //www.javaedu.com.cn<br>　　解析　十六进制数以0x开头，long型数以L(大小写均可，一般使用大写，<p>因为小写的l和数字1不易区分)。<br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析二十五]]></title>
		<author>mesum</author>
		<pubDate>2008/06/30 09:26pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1718&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1718</comments>
		<description><![CDATA[SCJP考试试题解析二十五<p><br>我的QQ号:2535279 <p><br>Which declarations of identifiers are legal?<br>　　A. &#36;persons<br>　　B. TwoUsers<br>　　C. *point<br>　　D. this<br>　　E. _endline<br>　　翻译下面哪些是合法的标识符。<br>　　答案　A,B,E //www.javaedu.com.cn<br>　　解析　Java的标识符可以以一个Unicode字符，下滑线(_)，美元符(&#36;)开始，后续字符可以是前面的符号和数字，没有长度限制，大小写敏感，不能是保留字。<br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[[原创]★国家级 ,省级正规期刊征集论文 13766862819 张编辑]]></title>
		<author>kjxxyhw</author>
		<pubDate>2008/06/30 07:53am</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=13&amp;topic=487&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=13&amp;topic=487</comments>
		<description><![CDATA[★国家级 ,省级正规期刊征集论文 13766862819 张编辑<br><br>国家级 ,省级正规期刊征集论文，咨询电话:0451—82992144<br>手机:13766862819 （长期有效，请保存） <br>★本刊是经国家科技部和国家新闻出版总署批准在国内外公开发行的大型综合性科技经济类学术期刊，可刊发综合类、建筑、市政、电子、经济、技术、教育、档案、图书馆、信息科学、生态与环境、法律、医药与保健等论文。 <br>★本刊是毕业生和评职称发表论文的理想期刊，来稿以3000字左右为宜，免审稿费，收稿后24小时复函 ，如1周内未接到任何通知，请电话查询0451-82992144欢迎来稿。<br>★在本刊发表的论文符合评定中、高职称的要求，如果有发表时间的要求，请提前2-3个月投稿<br>★网上投稿：yuhongwei497@163.com☆联系人：张编辑 &nbsp;电话：0451-82992144 手机:13766862819 ☆工作QQ：857186127 （请注明论文投稿，谢绝闲聊）<br>主页：http://qingrenyu.ttsite.com<br>地址：黑龙江省哈尔滨市南岗区宣信街15号 张编辑<br><br><br>]]></description>
		<category>『 会员交流 』</category>
	</item>
	<item>
		<title><![CDATA[[原创]★国家级 ,省级正规期刊征集论文 13766862819 张编辑]]></title>
		<author>kjxxyhw</author>
		<pubDate>2008/06/30 07:52am</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1717&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1717</comments>
		<description><![CDATA[★国家级 ,省级正规期刊征集论文 13766862819 张编辑<br><br>国家级 ,省级正规期刊征集论文，咨询电话:0451—82992144<br>手机:13766862819 （长期有效，请保存） <br>★本刊是经国家科技部和国家新闻出版总署批准在国内外公开发行的大型综合性科技经济类学术期刊，可刊发综合类、建筑、市政、电子、经济、技术、教育、档案、图书馆、信息科学、生态与环境、法律、医药与保健等论文。 <br>★本刊是毕业生和评职称发表论文的理想期刊，来稿以3000字左右为宜，免审稿费，收稿后24小时复函 ，如1周内未接到任何通知，请电话查询0451-82992144欢迎来稿。<br>★在本刊发表的论文符合评定中、高职称的要求，如果有发表时间的要求，请提前2-3个月投稿<br>★网上投稿：yuhongwei497@163.com☆联系人：张编辑 &nbsp;电话：0451-82992144 手机:13766862819 ☆工作QQ：857186127 （请注明论文投稿，谢绝闲聊）<br>主页：http://qingrenyu.ttsite.com<br>地址：黑龙江省哈尔滨市南岗区宣信街15号 张编辑<br><br><br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析二十四]]></title>
		<author>mesum</author>
		<pubDate>2008/06/28 10:24pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1716&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1716</comments>
		<description><![CDATA[SCJP考试试题解析二十四<br><br><br>我的QQ号:2535279 <br><br><br>　<br><br>Which of the following range of short is correct?<br>　　A. -27 -- 27-1<br>　　B. 0 -- 216-1<br>　　C. ?215 -- 215-1<br>　　D. ?231 -- 231-1<br>　　翻译下面哪些是short型的取值范围。<br>　　答案　C<br>　　解析　短整型的数据类型的长度是16 bits，有符号。另外需要说明的是java中所有的整(Integral)数(包括byte,short,int,long)全是有符号的。//www.javaedu.com.cn<br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析二十三]]></title>
		<author>mesum</author>
		<pubDate>2008/06/26 10:22pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1715&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1715</comments>
		<description><![CDATA[SCJP考试试题解析二十三<br><br><br>我的QQ号:2535279 <br><br><br><a href=http://www.javaedu.com.cn　 target=_blank>www.javaedu.com.cn　</a><br><br>What happens when you try to compile and run the following application? Choose all correct options. <br><br>　　1. public class Z { <br><br>　　2. public static void main(String[] args) { <br><br>　　3. new Z()&#59; <br><br>　　4. } <br><br>　　5. <br><br>　　6. Z() { <br><br>　　7. Z alias1 = this&#59; <br><br>　　8. Z alias2 = this&#59; <br><br>　　9. synchronized(alias1) { <br><br>　　10. try { <br><br>　　11. alias2.wait()&#59; <br><br>　　12. System.out.println(“DONE WAITING”)&#59; <br><br>　　13. } <br><br>　　14. catch (InterruptedException e) { <br><br>　　15. System.out.println(“INTERR <br><br>　　UPTED”)&#59; <br><br>　　16. } <br><br>　　17. catch (Exception e) { <br><br>　　18. System.out.println(“OTHER EXCEPTION”)&#59; <br><br>　　19. } <br><br>　　20. finally { <br><br>　　21. System.out.println <br><br>　　(“FINALLY”)&#59; <br><br>　　22. } <br><br>　　23. } <br><br>　　24. System.out.println(“ALL DONE”)&#59; <br><br>　　25. } <br><br>　　26. } <br><br>　　A. The application compiles but doesn&#039;t print anything. <br><br>　　B. The application compiles and print “DONE WAITING” <br><br>　　C. The application compiles and print “FINALLY” <br><br>　　D. The application compiles and print “ALL DONE” <br><br>　　E. The application compiles and print “INTERRUPTED” <br><br>　　解答：A <br><br>　　点评 ...]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析二十二]]></title>
		<author>mesum</author>
		<pubDate>2008/06/25 08:34pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1714&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1714</comments>
		<description><![CDATA[SCJP考试试题解析二十二<br><br><br>我的QQ号:2535279 <br><br><br><a href=http://www.javaedu.com.cn target=_blank>www.javaedu.com.cn</a><br><br>What does the following paint() method draw? <br><br>　　1. public void paint(Graphics g) { <br><br>　　2. g.drawString(“Any question”, 10, 0)&#59; <br><br>　　3. } <br><br>　　A. The string “Any question?”, with its top-left corner at 10,0 <br><br>　　B. A little squiggle coming down from the top of the component. <br><br>　　解答：B <br><br>　　点评：drawString(String str, int x, int y)方法是使用当前的颜色和字符，将str的内容显示出来，并且最左的字符的基线从（x,y）开始。在本题中，y=0，所以基线位于最顶端。我们只能看到下行字母的一部分，即字母‘y’、‘q’的下半部分。 <br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析二十一]]></title>
		<author>mesum</author>
		<pubDate>2008/06/24 07:37pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1713&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1713</comments>
		<description><![CDATA[SCJP考试试题解析二十一<br><br><br>我的QQ号:2535279 <br><br><br><a href=http://www.javaedu.com.cn target=_blank>www.javaedu.com.cn</a><br><br>　True or False: Readers have methods that can read and return floats and doubles. <br><br>　　A. Ture <br><br>　　B. False <br><br>　　解答：B <br><br>　　点评： Reader/Writer只处理Unicode字符的输入输出。float和double可以通过stream进行I/O. <br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析二十]]></title>
		<author>mesum</author>
		<pubDate>2008/06/23 09:21pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1712&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1712</comments>
		<description><![CDATA[SCJP考试试题解析二十<br><br><br>我的QQ号:2535279 <br><br><br><a href=http://www.javaedu.com.cn target=_blank>www.javaedu.com.cn</a><br><br><br>Which two statements are true for the class java.util.TreeSet? (Choose two) <br><br>　　A. The elements in the collection are ordered. <br><br>　　B. The collection is guaranteed to be immutable. <br><br>　　C. The elements in the collection are guaranteed to be unique. <br><br>　　D. The elements in the collection are accessed using a unique key. <br><br>　　E. The elements in the collection are guaranteed to be synchronized <br><br>　　解答：A, C <br><br>　　点评：TreeSet类实现了Set接口。Set的特点是其中的元素惟一，选项C正确。由于采用了树形存储方式，将元素有序地组织起来，所以选项A也正确。 <br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[★正规期刊征稿（发表职称论文）]]></title>
		<author>xuxuk</author>
		<pubDate>2008/06/23 03:47pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1711&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1711</comments>
		<description><![CDATA[★正规期刊征稿（发表职称论文）<br> <br><br>★正规省级期刊《***科技信息》：经国家科技部和国家新闻出版总署批准、由黑龙江省科学技术协会主办的综合性科技经济类期刊。国内外公开发行，国内统一刊号：CN 23-1400/G3；国际标准刊号ISSN 1673-1328，为半月刊。在本刊发表符合评定中、高职称及毕业的要求。<br><br>★内设科技、财经、信息、工程、市政、教育、管理、档案、图书馆等栏目，是广大科研、文教工作者、各行业技术人员发表职称论文及硕士、博士研究生发表学位论文的理想刊物。<br><br>★稿件要求：论点鲜明、论据充分、文字精炼、数据可靠；3000字左右为宜， 以word文档编辑并附作者联系方式；保证文章版权的独立性，请勿一稿多投。<br><br><br>　联系人：李编辑 QQ：954179078<br> &nbsp;电话：0451-86437465 &nbsp; 13796050458 (也可发短信)<br> &nbsp;投稿邮箱：xuxukj@163.com &nbsp; kejixinxi2006@163.com（请两个信箱同时发稿）<br><br>★收稿后三天内复函，如1周内未接到任何通知，请电话查询。若论文发表有时间要求，请提前2-3个月投稿；亦可推荐到其它省级、国家级刊物（如发国家级来稿时注明）。 <br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析十九]]></title>
		<author>mesum</author>
		<pubDate>2008/06/21 04:59pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1710&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1710</comments>
		<description><![CDATA[<br>SCJP考试试题解析十九<br><br><br>我的QQ号:2535279 <br><br><br><a href=http://www.javaedu.com.cn　 target=_blank>www.javaedu.com.cn　</a><br><br>　Which two demonstrate a &quot;has a&quot; relationship? (Choose two) <br><br>　　A. public interface Person { } <br><br>　　public class Employee extends Person{ } <br><br>　　B. public interface Shape { } <br><br>　　public interface Rectandle extends Shape { } <br><br>　　C. public interface Colorable { } <br><br>　　public class Shape implements Colorable <br><br>　　{ } <br><br>　　D. public class Species{ } <br><br>　　public class Animal{private Species species&#59;} <br><br>　　E. interface Component{ } <br><br>　　class Container implements Component{ <br><br>　　private Component[] children&#59; <br><br>　　} <br><br>　　解答：D, E <br><br>　　点评： 在Java中代码重用有两种可能的方式，即组合（“has a”关系）和继承（“is a”关系）。“has a”关系是通过定义类的属性的方式实现的；而“is a”关系是通过类继承实现的。本例中选项A、B、C体现了“is a”关系；选项D、E体现了“has a”关系。 <br><br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析十八]]></title>
		<author>mesum</author>
		<pubDate>2008/06/20 08:55pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1709&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1709</comments>
		<description><![CDATA[<br>SCJP考试试题解析十八<br><br><br>我的QQ号:2535279 <br><br><br><a href=http://www.javaedu.com.cn　 target=_blank>www.javaedu.com.cn　</a><br><br>Which of the following lines of code will compile without error？ <br><br>　　A. <br><br>　　int i=0&#59; <br><br>　　if (i) { <br><br>　　System.out.println(“Hi”)&#59; <br><br>　　} <br><br>　　B. <br><br>　　boolean b=true&#59; <br><br>　　boolean b2=true&#59; <br><br>　　if(b==b2) { <br><br>　　System.out.println(“So true”)&#59; <br><br>　　} <br><br>　　C. <br><br>　　int i=1&#59; <br><br>　　int j=2&#59; <br><br>　　if(i==1|| j==2) <br><br>　　System.out.println(“OK”)&#59; <br><br>　　D. <br><br>　　int i=1&#59; <br><br>　　int j=2&#59; <br><br>　　if (i==1 &amp;| j==2) <br><br>　　System.out.println(“OK”)&#59; <br><br>　　解答：B, C <br><br>　　点评：选项A错，因为if语句后需要一个boolean类型的表达式。逻辑操作有^、&amp;、| 和 &amp;&amp;、||,但是“&amp;|”是非法的，所以选项D不正确。 <br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析十七]]></title>
		<author>mesum</author>
		<pubDate>2008/06/19 09:35pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1708&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1708</comments>
		<description><![CDATA[<br><br><br>SCJP考试试题解析十七<br><br><br>我的QQ号:2535279 <br><br><br><a href=http://www.javaedu.com.cn target=_blank>www.javaedu.com.cn</a><br><br>　Consider the following class: <br><br>　　1. class Test(int i) { <br><br>　　2. void test(int i) { <br><br>　　3. System.out.println(“I am an int.”)&#59; <br><br>　　4. } <br><br>　　5. void test(String s) { <br><br>　　6. System.out.println(“I am a string.”)&#59; <br><br>　　7. } <br><br>　　8. <br><br>　　9. public static void main(String args[]) { <br><br>　　10. Test t=new Test()&#59; <br><br>　　11. char ch=“y”&#59; <br><br>　　12. t.test(ch)&#59; <br><br>　　13. } <br><br>　　14. } <br><br>　　Which of the statements below is true?(Choose one.) <br><br>　　A. Line 5 will not compile, because void methods cannot be overridden. <br><br>　　B. Line 12 will not compile, because there is no version of test() that rakes a char argument. <br><br>　　C. The code will compile but will throw an exception at line 12. <br><br>　　D. The code will compile and produce the following output: I am an int. <br><br>　　E. The code will compile and produce the following output: I am a String. <br><br>　　解答：D <br><br>　　点评：在第12行，16位长的char型变量ch在编译时会自动转化为一个32位长的int型，并在运行时传给void test(int i)方法。 <br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
	<item>
		<title><![CDATA[SCJP考试试题解析十六]]></title>
		<author>mesum</author>
		<pubDate>2008/06/18 09:39pm</pubDate>
		<link>http://www.chinajavalab.com/cgi-bin/topic.cgi?forum=1&amp;topic=1707&amp;show=0</link>
		<comments>http://www.chinajavalab.com/cgi-bin/post.cgi?action=reply&amp;forum=1&amp;topic=1707</comments>
		<description><![CDATA[<br><br>SCJP考试试题解析十六<br><br><br>我的QQ号:2535279 <br><br><br><a href=http://www.javaedu.com.cn target=_blank>www.javaedu.com.cn</a><br><br>　How can you force garbage collection of an object? <br><br>　　A. Garbage collection cannot be forced <br><br>　　B. Call System.gc(). <br><br>　　C. Call System.gc(), passing in a reference to the object to be garbage collected. <br><br>　　D. Call Runtime.gc(). <br><br>　　E. Set all references to the object to new &#118;alues（null, for example）. <br><br>　　解答：A <br><br>　　点评：在Java中垃圾收集是不能被强迫立即执行的。调用System.gc()或Runtime.gc()静态方法不能保证垃圾收集器的立即执行，因为，也许存在着更高优先级的线程。所以选项B、D不正确。选项C的错误在于，System.gc()方法是不接受参数的。选项E中的方法可以使对象在下次垃圾收集器运行时被收集。 <br><br>]]></description>
		<category>『 JavaSE 技术 』</category>
	</item>
</channel>
</rss>
