<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1902399111005458531</id><updated>2011-11-27T19:35:25.935-05:00</updated><category term='Coding Guidelines'/><category term='IE'/><category term='310-065'/><category term='SCJP'/><category term='JavaScript'/><category term='Java'/><category term='MyFamily'/><title type='text'>Welcome ShouJun's Blog</title><subtitle type='html'>All about web/Java development</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-1193155809803809660</id><published>2011-04-16T22:36:00.000-04:00</published><updated>2011-04-16T22:36:48.008-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Wrapper Classes and Their Constructor Arguments</title><content type='html'>&lt;table border="1"&gt;&lt;tr&gt; &lt;td&gt;&lt;b&gt;Primitive&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Wrapper Class&lt;/b&gt;&lt;/td&gt; &lt;td&gt;&lt;b&gt;Constructor Arguments&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt; &lt;td&gt;boolean&lt;/td&gt;&lt;td&gt;Boolean&lt;/td&gt;&lt;td&gt;boolean or String&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;char&lt;/td&gt;&lt;td&gt;Character&lt;/td&gt;&lt;td&gt;char&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;byte&lt;/td&gt;&lt;td&gt;Byte&lt;/td&gt;&lt;td&gt;byte or String&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;short&lt;/td&gt;&lt;td&gt;Short&lt;/td&gt;&lt;td&gt;short or String&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;int&lt;/td&gt;&lt;td&gt;Integer&lt;/td&gt;&lt;td&gt;int or String&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;long&lt;/td&gt;&lt;td&gt;Long&lt;/td&gt;&lt;td&gt;long or String&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;float&lt;/td&gt;&lt;td&gt;Float&lt;/td&gt;&lt;td&gt;float, double, or String&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;double&lt;/td&gt;&lt;td&gt;Double&lt;/td&gt;&lt;td&gt;double or String&lt;/td&gt; &lt;/tr&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-1193155809803809660?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/1193155809803809660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2011/04/wrapper-classes-and-their-constructor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1193155809803809660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1193155809803809660'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2011/04/wrapper-classes-and-their-constructor.html' title='Wrapper Classes and Their Constructor Arguments'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-245606226222519474</id><published>2011-04-16T22:15:00.003-04:00</published><updated>2011-04-16T22:37:39.425-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Default Values for Primitives and Refrence Types in Java</title><content type='html'>&lt;table border="1"&gt;&lt;tr&gt; &lt;td&gt;&lt;b&gt;Variable Type&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Default Value&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;Object reference&lt;/td&gt;&lt;td&gt;null (not referencing any object)&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;byte, short, int, long&lt;/td&gt;&lt;td&gt;0&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;float, double&lt;/td&gt;&lt;td&gt;0.0&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;boolean&lt;/td&gt;&lt;td&gt;false&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;char&lt;/td&gt;&lt;td&gt;'\u0000'&lt;/td&gt; &lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-245606226222519474?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/245606226222519474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2011/04/default-values-for-primitives-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/245606226222519474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/245606226222519474'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2011/04/default-values-for-primitives-and.html' title='Default Values for Primitives and Refrence Types in Java'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-4237507263937423718</id><published>2011-04-16T21:50:00.002-04:00</published><updated>2011-04-16T22:02:44.740-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 11 - Access instance variable/method from static mathod</title><content type='html'>One of the mistakes most often made by new Java programmers is attempting to access an instance variable (which means nonstatic variable) from the static &lt;b&gt;&lt;i&gt;main()&lt;/i&gt;&lt;/b&gt; method (which doesn't know anything about any instances, so it can't access the variable).  The following code is an example of illegal access of a nonstatic variable from a static method:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    int x = 3;&lt;br /&gt;    public static void main(String[] args) {&lt;br /&gt;        system.out.println("x is " + x);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Understand that this code will never compile, because you can't access a nonstatic (instance) variable from a static method.  Just think of the compiler saying, "Hey, I have no idea which Foo object's x variable you're trying to print!".  Remember, it's the class running the &lt;b&gt;&lt;i&gt;main()&lt;/i&gt;&lt;/b&gt; method, not an instance of the class.&lt;br /&gt;&lt;br /&gt;Of course, the tricky part for the exam is that the question won't look as obvious as the preceding code.  The problem you're being tested for accessing a nonstatic variable from a static method will be buried in code that might appear to be testing something else.  For example, the preceding code would be more likely to appear as &lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    int x = 3;&lt;br /&gt;    float y = 4.3f;&lt;br /&gt;    public static void main(String[] args) {&lt;br /&gt;        for (int z - x; z &amp;lt; ++x; z--, y = y + z) {&lt;br /&gt;            // complicated looping and branching code&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;So, while you're trying to follow the logic, the real issue is that x and y can't be used within &lt;b&gt;&lt;i&gt;main()&lt;/i&gt;&lt;/b&gt;, because x and y are instance, not static, variables!  The same applies for accessing nonstatic methods from a static method.  The rule is, a static method of a class can't access a nonstatic (instance) method or variable of its own class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-4237507263937423718?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/4237507263937423718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2011/04/scjp-exam-watch-11-static-and-instance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/4237507263937423718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/4237507263937423718'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2011/04/scjp-exam-watch-11-static-and-instance.html' title='SCJP Exam Watch 11 - Access instance variable/method from static mathod'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-1771629904013946981</id><published>2011-04-10T23:52:00.001-04:00</published><updated>2011-04-16T22:38:28.531-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Compiler generated constractor code</title><content type='html'>&lt;pre class="brush: java;"&gt;class Foo {}&lt;br /&gt;&lt;/pre&gt;======&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    Foo() {&lt;br /&gt;        super();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;hr/&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    Foo() {}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;======&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    Foo() {&lt;br /&gt;        super();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;hr/&gt;&lt;pre class="brush: java;"&gt;public class Foo {}&lt;br /&gt;&lt;/pre&gt;======&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;public class Foo {&lt;br /&gt;    public Foo() {&lt;br /&gt;        super();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;hr/&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    Foo(String s) {}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;======&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    Foo(String s) {&lt;br /&gt;        super();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;hr/&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    Foo(String s) {&lt;br /&gt;        super();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;======&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Nothing, compiler doesn't need to insert anything.&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr/&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    void Foo() {}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;======&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    void Foo() {}&lt;br /&gt;    Foo() {&lt;br /&gt;        super();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;(void Foo() is a method, not a constructor.)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-1771629904013946981?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/1771629904013946981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2011/04/compiler-generated-constractor-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1771629904013946981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1771629904013946981'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2011/04/compiler-generated-constractor-code.html' title='Compiler generated constractor code'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-1394438409920332896</id><published>2011-04-10T23:20:00.000-04:00</published><updated>2011-04-10T23:20:30.645-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 10 - Methods return an abstract class or interface</title><content type='html'>Watch for methods that declare an abstract class or interface return type, and know that any object that passes the IS-A test (in other words, would test true using the instanceof operator) can be returned from that method - for example:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;public abstract class Animal {}&lt;br /&gt;public class Bear extends Animal {}&lt;br /&gt;public class Test {&lt;br /&gt;    public Animal go () {&lt;br /&gt;        return new Bear();    // OK, Bear "is-a" Animal&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This code will compile, the return value is a subtype.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-1394438409920332896?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/1394438409920332896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2011/04/scjp-exam-watch-10-methods-return.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1394438409920332896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1394438409920332896'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2011/04/scjp-exam-watch-10-methods-return.html' title='SCJP Exam Watch 10 - Methods return an abstract class or interface'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-7293944255742486511</id><published>2010-08-28T20:09:00.001-04:00</published><updated>2010-08-28T20:11:36.180-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 9 - Class and Interface Declaration</title><content type='html'>Look for illegal uses of extends and implements.&amp;nbsp; The following shows examples of legal and illegal class and interface declarations:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Foo {}                        // OK&lt;br /&gt;class Bar implements Foo {}         // No! Can't implement a class&lt;br /&gt;interface Baz {}                    // OK&lt;br /&gt;interface Fi {}                     // OK&lt;br /&gt;interface Fee implements Baz {}     // No! Interface can't implement an interface&lt;br /&gt;interface Zee implements Foo {}     // No! Interface can't implement a class&lt;br /&gt;interface Zoo extends Foo {}        // No! Interface can't extend a class&lt;br /&gt;interface Boo extends Fi {}         // OK&lt;br /&gt;class Toon extends Foo, Button {}   // No! Class can't extend multiple classes&lt;br /&gt;class Zoom implements Fi, Baz {}    // OK&lt;br /&gt;interface Vroom extends Fi, Baz {}  // OK&lt;br /&gt;class Yow extends Foo implements Fi {}    // OK&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Burn these in, and watch for abuses in the questions you get on the exam.&amp;nbsp; Regardless of what the question appears to be testing, the real problem might be the class or interface declaration.&amp;nbsp; Before you get caught up in, say, tracing a complex threading flow, check to see if the code will even compile. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-7293944255742486511?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/7293944255742486511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/08/scjp-exam-watch-9-class-and-interface.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/7293944255742486511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/7293944255742486511'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/08/scjp-exam-watch-9-class-and-interface.html' title='SCJP Exam Watch 9 - Class and Interface Declaration'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-8078855386575750673</id><published>2010-08-26T22:06:00.003-04:00</published><updated>2010-08-26T22:10:12.703-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MyFamily'/><title type='text'>My sons</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;My sons picture!&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;Great!&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_WsmJRA2L-7Q/THccvbdqGMI/AAAAAAAAADU/MF9SpjBhGgs/s1600/IMG_5392.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="265" ox="true" src="http://3.bp.blogspot.com/_WsmJRA2L-7Q/THccvbdqGMI/AAAAAAAAADU/MF9SpjBhGgs/s400/IMG_5392.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;They are in China now, I miss them and my wife.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-8078855386575750673?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/8078855386575750673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/08/my-sons.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/8078855386575750673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/8078855386575750673'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/08/my-sons.html' title='My sons'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_WsmJRA2L-7Q/THccvbdqGMI/AAAAAAAAADU/MF9SpjBhGgs/s72-c/IMG_5392.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-126419600361842421</id><published>2010-08-26T21:14:00.001-04:00</published><updated>2010-08-26T21:25:51.268-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 8 - Obfuscate</title><content type='html'>The exam creators will tell you that they're forced to jam tons of code into little spaces "because of the exam engine."  While that's partially true, they ALSO like to obfuscate.&lt;br /&gt;&lt;br /&gt;The following code:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;Animal a = new Dog();&lt;br /&gt;Dog d = (Dog)a;&lt;br /&gt;d.doDogStuff();&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Can be replaced with this easy-to-read bit of fun:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;Animal a = new Dog();&lt;br /&gt;((Dog)a).doDogStuff();&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;In this case the compiler needs all of those parentheses, otherwise it thinks it's been handed an incomplete statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-126419600361842421?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/126419600361842421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/08/scjp-exam-watch-8-obfuscate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/126419600361842421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/126419600361842421'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/08/scjp-exam-watch-8-obfuscate.html' title='SCJP Exam Watch 8 - Obfuscate'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-7485356520198985913</id><published>2010-05-18T15:40:00.001-04:00</published><updated>2010-08-26T21:04:43.941-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 7 - Object Orientation (3)</title><content type='html'>Don't be fooled by a method that's overloaded but not overridden by a subclass.  It's perfectly legal to do the following:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;public class Foo {&lt;br /&gt;    void doStuff() {}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class Bar extends Foo {&lt;br /&gt;    void doStuff(String s) {}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The Bar class has two &lt;b&gt;doStuff()&lt;/b&gt; methods: the no-arg version it inherits from Foo (and does not override), and the overloaded &lt;b&gt;doStuff(String s)&lt;/b&gt; defined in the Bar class. Code with a refrence to a Foo can invoke only the no-arg version. but code with a reference to a Bar can invoke either of the overloaded versions.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-7485356520198985913?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/7485356520198985913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-7-object-orientation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/7485356520198985913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/7485356520198985913'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-7-object-orientation.html' title='SCJP Exam Watch 7 - Object Orientation (3)'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-1447696188417963450</id><published>2010-05-18T15:31:00.006-04:00</published><updated>2010-08-26T21:02:31.000-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 6 - Object Orientation (2)</title><content type='html'>Be careful to recognize when a method is overloaded rather than overridden.  You might see a method that appears to be violating a rule for overriding, but that is actually a legal overload, as follows:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;public class Foo {&lt;br /&gt;    public void doStuff(int y, String s) {}&lt;br /&gt;    public void moreThings(int x) {}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class Bar extends Foo {&lt;br /&gt;    public void doStuff(int y, long s) throws IOException {}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;It's tempting to see the &lt;b&gt;IOException&lt;/b&gt; as the problem, because the overridden &lt;b&gt;doStuff()&lt;/b&gt; method doesn't declare an exception, and &lt;b&gt;IOException&lt;/b&gt; is checked by the compiler.&lt;br /&gt;&lt;br /&gt;But the &lt;b&gt;doStuff()&lt;/b&gt; method &lt;span style="color:#F00; font-weight:bold;"&gt;is not overridden&lt;/span&gt;!  Subclass Bar &lt;span style="color:#F00; font-weight:bold;"&gt;overloads&lt;/span&gt; the &lt;b&gt;doStuff()&lt;/b&gt; method, by varying the argument list, so the &lt;b&gt;IOException&lt;/b&gt; is fine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-1447696188417963450?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/1447696188417963450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-6-oo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1447696188417963450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1447696188417963450'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-6-oo.html' title='SCJP Exam Watch 6 - Object Orientation (2)'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-611529965448492508</id><published>2010-05-18T15:20:00.005-04:00</published><updated>2010-08-26T21:03:17.491-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 5 - Object Orientation (1)</title><content type='html'>If a method is overridden but you use a polymorphic (supertype) reference to refer to the subtype object with the overriding method, the compiler assumes you're calling the supertype version of the method.  &lt;br /&gt;&lt;br /&gt;If the supertype version declares a checked exception, but the overriding subtype method does not, the compiler still thinks you are calling a method that declares an exception.&lt;br /&gt;&lt;br /&gt;Let's take a look at an example:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Animal {&lt;br /&gt;    public void eat() throws Exception {&lt;br /&gt;        // throws an Exception&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class Dog extends Animal {&lt;br /&gt;    public void eat() {&lt;br /&gt;        /*no Exceptions*/&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public static void main(String[] args) {&lt;br /&gt;        Animal a = new Dog();&lt;br /&gt;        Dog d = new Dog();&lt;br /&gt;        d.eat();        // OK&lt;br /&gt;        a.eat();        // Compiler error - unreported exception&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This code will not compile because of the exception declared on the Animal &lt;b&gt;eat()&lt;/b&gt; method.  This happens even though, at runtime, the &lt;b&gt;eat()&lt;/b&gt; method used would be the Dog version, which does not declare the exception.&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-611529965448492508?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/611529965448492508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-5-encapsulation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/611529965448492508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/611529965448492508'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-5-encapsulation.html' title='SCJP Exam Watch 5 - Object Orientation (1)'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-4713772816413697394</id><published>2010-05-14T11:52:00.000-04:00</published><updated>2010-05-14T11:52:50.123-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 4 - Encapsulation</title><content type='html'>Look out for code that appears to be asking about the behavior of a method, when the problem is actually a lack of encapsulation.  Look at the following example, and see if you can figure out what's going on:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java;"&gt;class Foo {&lt;br /&gt;    public int left = 9;&lt;br /&gt;    public int right = 3;&lt;br /&gt;&lt;br /&gt;    public void setLeft(int leftNum) {&lt;br /&gt;        left = leftNum;&lt;br /&gt;        right = leftNum/3;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    // lots of complex test code here&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now consider this question: Is the value of right always going to be one-third the value of left?  It looks like it will, until you realize that users of the Foo class don't need to use the setLeft() method!  Thay can simply go straight to the instance variables and change them to any arbitrary int value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-4713772816413697394?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/4713772816413697394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-4-encapsulation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/4713772816413697394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/4713772816413697394'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-4-encapsulation.html' title='SCJP Exam Watch 4 - Encapsulation'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-2229073547267433703</id><published>2010-05-14T11:23:00.002-04:00</published><updated>2010-05-14T11:26:50.087-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 3 - Array Declaration</title><content type='html'>It is never legal to include the size of the array in your declaration.  Yes, we know you can do that in some other language, which is why you might see a question or two that include code similar to the following:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java; gutter: false;"&gt;int[5] scores;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The preceding code won't compile.  Remember, the JVM doesn't allocate space until you actually instantiate the array object.  That's when size matters.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-2229073547267433703?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/2229073547267433703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-3-array-declaration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/2229073547267433703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/2229073547267433703'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-3-array-declaration.html' title='SCJP Exam Watch 3 - Array Declaration'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-3937719613682799816</id><published>2010-05-14T11:08:00.002-04:00</published><updated>2010-05-14T11:15:57.123-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 2 - Interface Definition</title><content type='html'>Look for interface difinitions that define constants, but without explicitly using the required modifiers.  For example, the following are all identical:&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: java"&gt;// Looks non-static and non-final, but isn't!&lt;br /&gt;public int x = 1;&lt;br /&gt;// Looks default, non-static, non-final, but isn't!&lt;br /&gt;int x = 1;&lt;br /&gt;// Does't show public or final&lt;br /&gt;static int x = 1;&lt;br /&gt;// Doesn't show public or static&lt;br /&gt;final int x = 1;&lt;br /&gt;// Doesn't show final&lt;br /&gt;public static int x = 1;&lt;br /&gt;// Doesn't show static&lt;br /&gt;public final int x = 1;&lt;br /&gt;// Doesn't show public &lt;br /&gt;static final int x = 1;&lt;br /&gt;// What you get implicitly&lt;br /&gt;public static final int x = 1;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Any combination of the required (but implicit) modifiers is legal, as is using no moddifiers at all!  On the exam, you can expect to see questions you won't be able to answer correctly unless you know, for example, that an interface variable is final and can never be given a value by implementing (or any other) class.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-3937719613682799816?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/3937719613682799816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-2-interface-definition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/3937719613682799816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/3937719613682799816'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-2-interface-definition.html' title='SCJP Exam Watch 2 - Interface Definition'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-1919096249464289214</id><published>2010-05-14T10:58:00.001-04:00</published><updated>2010-05-14T11:00:27.871-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCJP'/><category scheme='http://www.blogger.com/atom/ns#' term='310-065'/><title type='text'>SCJP Exam Watch 1 - Identifier</title><content type='html'>The objective says you have to know legal identifiers only for variable names, but the rules are the same for ALL Java components.  So remember that a legal identifier for a variable is also a legal identifier for a method or a class.  However, you need to distinguish between legal identifiers and naming conventions, such as the JavaBeans standards, that indicate how a Java component should be names.  In other words, you must be able to recognize that an identifier is legal even if it does't confirm to naming standards. &lt;br /&gt;&lt;br /&gt;If the exam question is asking about naming conventions - not just whether an identifier will compile - JavaBeans will be mentioned explicitly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Refrence: SCJP Sun® Certified Programmer for Java™ 6 Study Guide Exam (310-065)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-1919096249464289214?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/1919096249464289214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1919096249464289214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/1919096249464289214'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/05/scjp-exam-watch-1.html' title='SCJP Exam Watch 1 - Identifier'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-5141403226830180394</id><published>2010-04-05T08:54:00.017-04:00</published><updated>2010-05-06T12:48:49.613-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Coding Guidelines'/><title type='text'>Coding Guidelines - Java Programming Fundamentals</title><content type='html'>&lt;ul&gt;&lt;li&gt;Your Java programs should always end with the &lt;b&gt;.java&lt;/b&gt; extension.&lt;/li&gt;&lt;li&gt;Filenames should &lt;b&gt;match&lt;/b&gt; the name of your public class. So for example, if the name of your public class is &lt;b&gt;Hello&lt;/b&gt;, you should save it in a file called &lt;b&gt;Hello.java&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;You should write comments in your code explaining what a certain class does, or what a certain method do.&lt;/li&gt;&lt;/ul&gt;&lt;hr style="width: 95%;" /&gt;&lt;ul&gt;&lt;li&gt;In creating blocks, you can place the opening curly brace in line with the statement, like for example,&lt;/li&gt;&lt;pre class="brush: java"&gt;public static void main(String[] args){&lt;br /&gt;&lt;/pre&gt;or you can place the curly brace on the next line, like,     &lt;pre class="brush: java"&gt;public static void main(String[] args)&lt;br /&gt;{&lt;br /&gt;&lt;/pre&gt;&lt;li&gt;You should indent the next statements after the start of a block, for example,&lt;/li&gt;&lt;pre class="brush: java"&gt;public static void main(String[] args){&lt;br /&gt;    System.out.println("Hello ");&lt;br /&gt;    System.out.println("world");&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/ul&gt;&lt;hr style="width: 95%;" /&gt;&lt;ul&gt;&lt;li&gt;For names of classes, capitalize the first letter of the class name. For names of methods and variables, the first letter of the word should start with a small letter. For example:&lt;/li&gt;&lt;b&gt;T&lt;/b&gt;his&lt;b&gt;I&lt;/b&gt;s&lt;b&gt;A&lt;/b&gt;n&lt;b&gt;E&lt;/b&gt;xample&lt;b&gt;O&lt;/b&gt;f&lt;b&gt;C&lt;/b&gt;lass&lt;b&gt;N&lt;/b&gt;ame     &lt;b&gt;t&lt;/b&gt;his&lt;b&gt;I&lt;/b&gt;s&lt;b&gt;A&lt;/b&gt;n&lt;b&gt;E&lt;/b&gt;xample&lt;b&gt;O&lt;/b&gt;f&lt;b&gt;M&lt;/b&gt;ethod&lt;b&gt;N&lt;/b&gt;ame&lt;li&gt;In case of multi-word identifiers, use capital letters to indicate the start of the word except the first word. For example, charArray, fileName,ClassName.&lt;/li&gt;&lt;li&gt;Avoid using underscores at the start of the identifier such as _read or _write.&lt;/li&gt;&lt;/ul&gt;&lt;hr style="width: 95%;" /&gt;&lt;ul&gt;&lt;li&gt;In defining a long value, a lowercase L is not recommended because it is hard to distinguish from the digit 1.&lt;/li&gt;&lt;/ul&gt;&lt;hr style="width: 95%;" /&gt;&lt;ul&gt;&lt;li&gt;It always good to &lt;b&gt;initialize&lt;/b&gt; your variables as you declare them.&lt;/li&gt;&lt;li&gt;Use &lt;b&gt;descriptive&lt;/b&gt; names for your variables. Like for example, if you want to have a variable that contains a grade for a student, name it as, &lt;b&gt;grade&lt;/b&gt; and not just some random letters you choose.&lt;/li&gt;&lt;li&gt;Declare one variable per line of code. For example, the variable declarations,&lt;/li&gt;&lt;pre class="brush: java"&gt;double exam = 0;&lt;br /&gt;double quiz = 10;&lt;br /&gt;double grade = 0;&lt;br /&gt;&lt;/pre&gt;is preferred over the declaration,  &lt;pre class="brush: java"&gt;double exam = 0, quiz = 10, grade = 0;&lt;br /&gt;&lt;/pre&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-5141403226830180394?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/5141403226830180394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/04/coding-guidelines-java-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/5141403226830180394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/5141403226830180394'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/04/coding-guidelines-java-programming.html' title='Coding Guidelines - Java Programming Fundamentals'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-3833014319109988161</id><published>2010-03-30T15:38:00.005-04:00</published><updated>2010-03-30T15:42:25.879-04:00</updated><title type='text'>Comparing Loop Constrcts</title><content type='html'>&lt;ul&gt;&lt;li&gt;Use the &lt;b&gt;while&lt;/b&gt; loop to iterate indefinitely through statements and to perform the statements &lt;b&gt;zero or more&lt;/b&gt; times.&lt;/li&gt;&lt;li&gt;Use the &lt;b&gt;do/while&lt;/b&gt; loop to iterate indefinitely through statements and to perform the statements &lt;b&gt;one or more&lt;/b&gt; times.&lt;/li&gt;&lt;li&gt;Use the &lt;b&gt;for&lt;/b&gt; loop to step through statements &lt;b&gt;a predefined number of&lt;/b&gt; times.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-3833014319109988161?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/3833014319109988161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/03/comparing-loop-constrcts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/3833014319109988161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/3833014319109988161'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/03/comparing-loop-constrcts.html' title='Comparing Loop Constrcts'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-5450328127867054380</id><published>2010-03-18T19:35:00.007-04:00</published><updated>2010-05-05T13:03:12.982-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Enum in Java</title><content type='html'>The basic using of Enum should be like following:&lt;br /&gt;&lt;pre class="brush: java"&gt;public enum SimpleColor {&lt;br /&gt;    RED,&lt;br /&gt;    GREEN,&lt;br /&gt;    BLUE&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;    for (SimpleColor sc : SimpleColor.values()) {&lt;br /&gt;        System.out.println(sc);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;In addition, you may also using it as following:&lt;br /&gt;&lt;pre class="brush: java"&gt;public enum ComplexColor {&lt;br /&gt;    RED ("Red", "0XFF0000"),&lt;br /&gt;    GREEN ("Green", "0X00FF00"),&lt;br /&gt;    BLUE ("Blue", "0X0000FF");&lt;br /&gt;&lt;br /&gt;    private String title;&lt;br /&gt;    private String rgb;&lt;br /&gt;&lt;br /&gt;    ComplexColor(String title, String rgb) {&lt;br /&gt;        this.title = title;&lt;br /&gt;        this.rgb = rgb;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public String title() {&lt;br /&gt;        return title;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public String rgb() {&lt;br /&gt;        return rgb;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;    for (ComplexColor cc : ComplexColor.values()) {&lt;br /&gt;        System.out.println(cc.title() + " - " + cc.rgb());&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;so, you can have more information on it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-5450328127867054380?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/5450328127867054380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/03/enum-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/5450328127867054380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/5450328127867054380'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/03/enum-in-java.html' title='Enum in Java'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-369283360199101428</id><published>2010-02-25T15:50:00.001-05:00</published><updated>2010-03-23T22:03:57.809-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Best Practice of Java Array Declaration</title><content type='html'>To declare a array in Java, you have following options:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;dataType[] variableName;&lt;/li&gt;&lt;li&gt;dataType variableName[];&lt;/li&gt;&lt;li&gt;dataType []variableName;&lt;/li&gt;&lt;/ol&gt;The 1st is clearly related to how Java actually works, and you can read it as "dataType array variableName".&lt;br /&gt;&lt;br /&gt;The conclusion is:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;dataType[] variableName;&lt;/li&gt;&lt;li&gt;dataType[][]...[] arrayName;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-369283360199101428?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/369283360199101428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/02/best-practice-of-java-array-declaration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/369283360199101428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/369283360199101428'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/02/best-practice-of-java-array-declaration.html' title='Best Practice of Java Array Declaration'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-8776992828873597281</id><published>2010-02-03T16:44:00.001-05:00</published><updated>2010-03-23T22:04:35.702-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><title type='text'>IE8 user agent string</title><content type='html'>IE8 have 3 kinds of browser mode, but give different user agent string&lt;br /&gt;&lt;br /&gt;IE7 mode give you  &lt;span style="font-weight: bold;"&gt;Mozilla/4.0 (compatible; MSIE 7.0; ...;)&lt;br /&gt;&lt;/span&gt;IE8 mode give you&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Mozilla/4.0 (compatible; MSIE 8.0; ...; Trident/4.0; ...;)&lt;br /&gt;&lt;/span&gt;IE8 compat view mode give you&lt;span&gt; &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Mozilla/4.0 (compatible; MSIE 7.0; ...; Trident/4.0; ...&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Trident/4.0&lt;/span&gt;&lt;/span&gt;&lt;span&gt; is the important string to determine the real mode and version of IE8.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-8776992828873597281?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/8776992828873597281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/02/ie8-user-agent-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/8776992828873597281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/8776992828873597281'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/02/ie8-user-agent-string.html' title='IE8 user agent string'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-4217333903905360294</id><published>2010-01-23T00:55:00.010-05:00</published><updated>2010-05-05T13:12:21.756-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Java Operators</title><content type='html'>&lt;pre class="brush: java; gutter: false;"&gt;.         []           ()&lt;br /&gt;++        --           !            ~&lt;br /&gt;*          /           %&lt;br /&gt;+         -&lt;br /&gt;&lt;&lt;        &gt;&gt;           &gt;&gt;&gt;         &lt;&lt;&lt;&lt;br /&gt;&lt;         &gt;            &lt;=           &gt;=&lt;br /&gt;==        !=&lt;br /&gt;&amp;amp;         |&lt;br /&gt;^&lt;br /&gt;&amp;amp;&amp;amp;&lt;br /&gt;||&lt;br /&gt;?:&lt;br /&gt;=&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-4217333903905360294?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/4217333903905360294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/01/java-operators.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/4217333903905360294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/4217333903905360294'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/01/java-operators.html' title='Java Operators'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-7791350222432947591</id><published>2010-01-23T00:33:00.000-05:00</published><updated>2010-03-18T21:18:15.482-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Java Data Types</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Primitive Data Types&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;boolean  (true, false)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;char  (8 bits)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;byte  (8 bits)&lt;/li&gt;&lt;li&gt;short  (16 bits)&lt;/li&gt;&lt;li&gt;int  (32 bits)&lt;/li&gt;&lt;li&gt;long  (64 bits)&lt;/li&gt;&lt;li&gt;float  (32 bits)&lt;/li&gt;&lt;li&gt;double  (64 bits)&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Reference Variables vs. Primitive Variables&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Primitive variables are variables with primitive data types. They store data in the actual memory location of the variable is.&lt;/li&gt;&lt;li&gt;Reference variables are variables that stores the address in the memory location. It points to another memory location of the actual data is.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-7791350222432947591?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/7791350222432947591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/01/java-data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/7791350222432947591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/7791350222432947591'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/01/java-data-types.html' title='Java Data Types'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-7454685190289395130</id><published>2010-01-19T04:03:00.001-05:00</published><updated>2010-05-05T13:08:12.267-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>My First Java Program</title><content type='html'>&lt;pre class="brush: java"&gt;public class Hello {&lt;br /&gt;    /**&lt;br /&gt;     * My first Java program&lt;br /&gt;     */&lt;br /&gt;    public static void main(String[] args) {&lt;br /&gt;        //prints the string "Hello world!" on screen&lt;br /&gt;        System.out.println("Hello world!");&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Error Types&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Syntax errors&lt;/li&gt;&lt;li&gt;Run-time errors&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Java Comments&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;C++ Style Comments&lt;/li&gt;&lt;li&gt;C-Style Comments&lt;/li&gt;&lt;li&gt;Special Javadoc Comments&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-7454685190289395130?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/7454685190289395130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/01/my-first-java-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/7454685190289395130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/7454685190289395130'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/01/my-first-java-program.html' title='My First Java Program'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-6905573047555872682</id><published>2010-01-19T03:51:00.000-05:00</published><updated>2010-01-19T03:58:26.421-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>About Java</title><content type='html'>&lt;span style="font-weight: bold;"&gt;What is Java Technology?&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;A programming language&lt;br /&gt;&lt;/li&gt;&lt;li&gt;A development &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;environment&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;An application environment &lt;/li&gt;&lt;li&gt;A deployment environment&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Some Features of Java&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The Java Virtual Machine (JVM)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Garbage Collection&lt;/li&gt;&lt;li&gt;Code Security&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-6905573047555872682?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/6905573047555872682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/01/about-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/6905573047555872682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/6905573047555872682'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/01/about-java.html' title='About Java'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1902399111005458531.post-6478573487743406390</id><published>2010-01-17T23:42:00.000-05:00</published><updated>2010-01-17T23:48:18.818-05:00</updated><title type='text'>My new year's resolution</title><content type='html'>My new year's resolution is &lt;span style="font-weight: bold;"&gt;learning &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Java&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;using Java&lt;/span&gt; in my next project.&lt;br /&gt;&lt;br /&gt;Go for it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1902399111005458531-6478573487743406390?l=shoujun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shoujun.blogspot.com/feeds/6478573487743406390/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shoujun.blogspot.com/2010/01/my-new-years-resolution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/6478573487743406390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1902399111005458531/posts/default/6478573487743406390'/><link rel='alternate' type='text/html' href='http://shoujun.blogspot.com/2010/01/my-new-years-resolution.html' title='My new year&apos;s resolution'/><author><name>ShouJun</name><uri>http://www.blogger.com/profile/06089040839461008756</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
