<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/tag/ocajp/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Sun, 22 Nov 2026 18:29:28 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/tag/ocajp/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>Oracle Certified Professional, Java SE 8 Programmer (OCPJP)国际原厂认证</title><link>https://magiclen.org/cn/ocajp-ocpjp/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/07/P1060705-220x162.jpg" srcset="https://magiclen.org/wp-content/uploads/2016/07/P1060705-220x162.jpg 1x, https://magiclen.org/wp-content/uploads/2016/07/P1060705-440x324.jpg 2x, https://magiclen.org/wp-content/uploads/2016/07/P1060705-660x486.jpg 3x" alt>
笔者自高中二年级之后就开始在学承电脑上 Java 课程，因为自己本身有在使用 Linux，所以非常了解 Java 语言跨平台的好处，自从接触 Java 编程语言之后就爱上了它，之后还陆续买了许多本 Java 的书籍。后来拿到了 TQC+ 的 Java 编程专业人员认证，觉得应该要再来拿拿 Oracle 的原厂认证，好跟国际接轨，便报考了 Java 8 的 Oracle Certified Asso...]]></description><category>Java</category><category>OCAJP</category><category>OCPJP</category><category>Oracle</category><guid>https://magiclen.org/cn/ocajp-ocpjp</guid><pubDate>Sat, 16 Jul 2016 20:50:35 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP] 封装 2</title><link>https://magiclen.org/cn/ocajp-encapsulation-2/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
Which two options, when inserted independently inside class Base, ensure that the class is being properly encapsulated and allow the program to execute and print the square of the number?]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>OCAJP</category><guid>https://magiclen.org/cn/ocajp-encapsulation-2</guid><pubDate>Thu, 28 Apr 2016 12:02:07 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP] 相同签名的方法</title><link>https://magiclen.org/cn/ocajp-same-signature-method/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
What is the result?
A. One
B. Two
C. Three
D. Compilation fails.]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>OCAJP</category><guid>https://magiclen.org/cn/ocajp-same-signature-method</guid><pubDate>Thu, 28 Apr 2016 10:40:40 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP]switch 的用法 3</title><link>https://magiclen.org/cn/ocajp-switch-3/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
What is the result?
A. simaple A
B. Capital A
C. simaple A default Capital A
D. simaple A default
E. Compilation fails.]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>OCAJP</category><guid>https://magiclen.org/cn/ocajp-switch-3</guid><pubDate>Thu, 28 Apr 2016 09:05:34 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP] 如何输出 0？</title><link>https://magiclen.org/cn/ocajp-how-to-print-0/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?
A. this.amount = 0;
B. amount = 0;
C. acct(0);
D. acct.amount = 0;
E. acct.getAmount() = 0;
F. acct....]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>OCAJP</category><guid>https://magiclen.org/cn/ocajp-how-to-print-0</guid><pubDate>Thu, 28 Apr 2016 07:15:07 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP] 如何印出 COJ？</title><link>https://magiclen.org/cn/ocajp-how-to-print-coj/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
Which code fragment, when inserted at line //insert code here, enables the code to print COJ?]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>OCAJP</category><guid>https://magiclen.org/cn/ocajp-how-to-print-coj</guid><pubDate>Thu, 28 Apr 2016 04:53:46 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP]for 循环 6</title><link>https://magiclen.org/cn/ocajp-for-loop-6/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
What is the result?
A.
2 4
B.
0 2 4 6
C.
0 2 4
D. Compilation fails]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>OCAJP</category><guid>https://magiclen.org/cn/ocajp-for-loop-6</guid><pubDate>Thu, 28 Apr 2016 04:36:30 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP][OCPJP] 当 foreach 遇到 null</title><link>https://magiclen.org/cn/ocajp-foreach-null/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
What is the result?
A. null
B. Compilation fails
C. An exception is thrown at runtime
D. 0]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>1Z0-809</category><category>OCAJP</category><category>OCPJP</category><guid>https://magiclen.org/cn/ocajp-foreach-null</guid><pubDate>Thu, 28 Apr 2016 04:13:07 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP]try-catch</title><link>https://magiclen.org/cn/ocajp-try-catch/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
What is the result?
A.
Caught java.lang.RuntimeException: Exception
Exception in thread &#34;main&#34; java.lang.Error: Error
at TestApp.doList(TestApp.java: 14)
at TestApp.main(TestApp.java: 6)
B.
E...]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>OCAJP</category><guid>https://magiclen.org/cn/ocajp-try-catch</guid><pubDate>Thu, 28 Apr 2016 04:09:37 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>[OCAJP] 输出现在时间</title><link>https://magiclen.org/cn/ocajp-print-current-time/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2016/02/java-220x162.png 1x, https://magiclen.org/wp-content/uploads/2016/02/java-440x324.png 2x, https://magiclen.org/wp-content/uploads/2016/02/java-660x486.png 3x" alt>
Which of the following will print current time?
A. System.out.print(new LocalTime().now());
B. System.out.print(new LocalTime());
C. System.out.print(LocalTime.now());
D. System.out.print(LocalTime.t...]]></description><category>题库解析</category><category>Java</category><category>1Z0-808</category><category>OCAJP</category><guid>https://magiclen.org/cn/ocajp-print-current-time</guid><pubDate>Thu, 28 Apr 2016 03:40:40 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>