<?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-3879579922328804534</id><updated>2011-11-28T08:36:20.131+08:00</updated><category term='Product Life Cycle'/><category term='Files'/><category term='SCJA'/><category term='Windows'/><category term='IDE'/><category term='Interpretation'/><category term='Class Components'/><category term='Type Casting'/><category term='Object-Oriented Analysis and Design'/><category term='Primitives'/><category term='Comments. Statements'/><category term='Variables'/><category term='Execution'/><category term='Documentation'/><category term='Directories'/><category term='Concepts'/><category term='Application'/><category term='Servlet'/><category term='Inheritance'/><category term='Certification'/><category term='Java Development Kit'/><category term='UML'/><category term='Compilation'/><category term='API'/><category term='Objects'/><category term='Class Type'/><category term='Main Method Declaration'/><category term='Question and Answer'/><category term='Access Modifier'/><category term='Timeline'/><category term='Command Path'/><category term='JDK'/><category term='Assignment'/><category term='Polymorphism'/><category term='Identifiers'/><category term='Eclipse'/><category term='Class Path'/><category term='Arithmetic'/><category term='Test Class'/><category term='CX-310-019'/><category term='Information Hiding'/><category term='Promotion'/><category term='Encapsulation'/><category term='Product Groups'/><category term='Class Declaration'/><category term='Applet'/><category term='Installation'/><category term='Class Design'/><category term='Enumerations'/><title type='text'>Java Pebbles</title><subtitle type='html'>A friendly playground to look for JaVa PeBbLeS!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>45</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-1498779354101666946</id><published>2010-05-08T14:01:00.001+08:00</published><updated>2010-06-03T14:04:45.623+08:00</updated><title type='text'>Java Pebbles Has a New Blog Location</title><content type='html'>Please visit &lt;a href="http://www.jessicajournal.com/"&gt;Jessica's Journal&lt;/a&gt; for it's new blog location. Thanks for the visits.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-1498779354101666946?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/1498779354101666946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2010/05/please-visit-jessicas-journal-for-its.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1498779354101666946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1498779354101666946'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2010/05/please-visit-jessicas-journal-for-its.html' title='Java Pebbles Has a New Blog Location'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-3039673216832396312</id><published>2009-12-01T10:03:00.002+08:00</published><updated>2009-12-01T10:03:00.209+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Objects'/><title type='text'>Declaring Object References, Instantiating Objects and Initializing Object References</title><content type='html'>Object reference variables are variables containing an address to an Object in memory.&lt;br /&gt;&lt;br /&gt;To declare, instantiate and initialise an Object Reference Variable:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Declare - Specifies its identifier and the Object Type of the referenced class &lt;/li&gt;&lt;li&gt;Instantiate - Using the new keyword &lt;/li&gt;&lt;li&gt;Initialise - Assigns the Object to the Object Reference Variable &lt;/li&gt;&lt;/ul&gt;&lt;strong&gt;Declaring Object Reference Variables:&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;Syntax:&lt;br /&gt;&lt;span style="color:#000099;"&gt;Classname identifier;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Classname&lt;/span&gt;&lt;/strong&gt; is the Class or the type of Object referred to with the Object Reference&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;identifier&lt;/span&gt;&lt;/strong&gt; is the variable name of type Classname&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Instantiating an Object:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Syntax:&lt;br /&gt;&lt;span style="color:#000099;"&gt;new Classname();&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;new&lt;/span&gt;&lt;/strong&gt; keyword is used to create an Object Instance from a Class&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Classname&lt;/span&gt;&lt;/strong&gt; is the Class or Type of Object being created&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Initializing Object Reference Variables:&lt;br /&gt;Syntax:&lt;br /&gt;&lt;/strong&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;identifier = new Classname();&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Using an Object Reference Variable to Manipulate Data:&lt;br /&gt;&lt;/strong&gt;The dot (.) operator is used with the Object Reference to manipulate the values or to activate the Object methods&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Storing Object Reference Variables in Memory:&lt;br /&gt;&lt;/strong&gt;Object Reference Variables hold the memory address of Objects in memory. Memory addresses are usually written in hexadecimal notation such as 0x332006. &lt;strong&gt;Local Object Reference Variables&lt;/strong&gt; and their values are stored in &lt;strong&gt;Stack Memory&lt;/strong&gt; while the &lt;strong&gt;Objects that they reference to&lt;/strong&gt; are stored in &lt;strong&gt;Heap Memory&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Assigning a Reference From One Variable to Another:&lt;br /&gt;&lt;/strong&gt;Upon execution of the above codes, both myShoe and yourShoe reference variables contain the same address to the same object. Unless another reference variable was pointing myShoe object, it would be garbage collected.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-3039673216832396312?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/3039673216832396312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/12/declaring-object-references.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/3039673216832396312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/3039673216832396312'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/12/declaring-object-references.html' title='Declaring Object References, Instantiating Objects and Initializing Object References'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-5139355028387568575</id><published>2009-11-29T08:06:00.000+08:00</published><updated>2009-11-29T08:06:00.548+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Type Casting'/><category scheme='http://www.blogger.com/atom/ns#' term='Promotion'/><title type='text'>Using Promotion and Type Casting</title><content type='html'>&lt;strong&gt;Promotion&lt;/strong&gt; is used when you try to assign a data type that holds a smaller value range to data type that holds a bigger value range. This is to prevent precision lost in the assigned data type value. For example, promoting a &lt;strong&gt;&lt;span style="color:#000099;"&gt;byte&lt;/span&gt;&lt;/strong&gt; data type to &lt;strong&gt;&lt;span style="color:#000099;"&gt;integer&lt;/span&gt;&lt;/strong&gt; data type.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Typecast&lt;/strong&gt; is used to lower the value range by changing its data type such as &lt;strong&gt;&lt;span style="color:#000099;"&gt;double&lt;/span&gt;&lt;/strong&gt; floating point to &lt;strong&gt;&lt;span style="color:#000099;"&gt;floating point&lt;/span&gt;&lt;/strong&gt;. This is normally done when developer need to access methods that only accept certain data types as arguments or to save memory.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Promotion In Use:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Data Type Promotion may occur automatically by Compiler if the data would not be lost. For examples:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Assign a smaller data type to a larger data type &lt;/li&gt;&lt;li&gt;Assign an integral data type to a floating point data type (no decimal value places to lose) &lt;/li&gt;&lt;/ul&gt;&lt;strong&gt;Type Casting:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;identifier = (target_type) value&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;identifier&lt;/span&gt;&lt;/strong&gt; is the Variable Namevalue is the value assign to the Identifier&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;value&lt;/span&gt;&lt;/strong&gt; is the value assigned to the Identifier&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;(target_type)&lt;/span&gt;&lt;/strong&gt; is the type that you wish to type cast the value&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;For example:&lt;br /&gt;&lt;span style="color:#000099;"&gt;int number1 = 20; //32 bits of memory used&lt;br /&gt;int number2 = 10; // 32 bits of memory used&lt;br /&gt;byte number3 = 0; // 8 bits of memory lost&lt;br /&gt;number3 = (byte) (number1 + number2); // no data loss&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Compiler Assumptions for Integral and Floating Point Data Types:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Values are automatically converted to an &lt;strong&gt;&lt;span style="color:#000099;"&gt;int&lt;/span&gt;&lt;/strong&gt; value (or higher) if the primitive data type values are used in an expression with certain operators (*, /, -, +, %). &lt;/li&gt;&lt;li&gt;Values assigned to a floating point data types are always defaulted to a &lt;strong&gt;&lt;span style="color:#000099;"&gt;double&lt;/span&gt;&lt;/strong&gt; data type. &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/3879579922328804534-5139355028387568575?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/5139355028387568575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/using-promotion-and-type-casting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5139355028387568575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5139355028387568575'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/using-promotion-and-type-casting.html' title='Using Promotion and Type Casting'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-6500932554190355143</id><published>2009-11-28T08:18:00.003+08:00</published><updated>2009-11-28T20:55:38.119+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arithmetic'/><title type='text'>Using Arithmetic Operators</title><content type='html'>&lt;strong&gt;Standard Mathematical Operators:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Addition ( &lt;strong&gt;&lt;span style="color:#000099;"&gt;+&lt;/span&gt;&lt;/strong&gt; ) &lt;/li&gt;&lt;li&gt;Subtraction ( &lt;strong&gt;&lt;span style="color:#000099;"&gt;-&lt;/span&gt;&lt;/strong&gt; ) &lt;/li&gt;&lt;li&gt;Multiplication ( &lt;strong&gt;&lt;span style="color:#000099;"&gt;*&lt;/span&gt;&lt;/strong&gt; ) &lt;/li&gt;&lt;li&gt;Division ( &lt;strong&gt;&lt;span style="color:#000099;"&gt;/&lt;/span&gt;&lt;/strong&gt; ) &lt;/li&gt;&lt;li&gt;Remainder ( &lt;strong&gt;&lt;span style="color:#000099;"&gt;%&lt;/span&gt;&lt;/strong&gt; ) &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Increment ( &lt;span style="color:#000099;"&gt;++&lt;/span&gt; ) and Decrement ( &lt;span style="color:#000099;"&gt;--&lt;/span&gt; ) Operators:&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Pre-Increment and Pre-Decrement&lt;/strong&gt; - the operation is applied &lt;strong&gt;before&lt;/strong&gt; any subsequent calculations or assignments are performed. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Post-Increment and Post-Decrement&lt;/strong&gt; - the operation is applied &lt;strong&gt;after&lt;/strong&gt; any subsequent calculations or assignments are performed. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Examples:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Pre-Increment:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;int x = 6;&lt;br /&gt;int y = ++x;&lt;br /&gt;x is 7, y is 7&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Post-Increment:&lt;br /&gt;&lt;span style="color:#000099;"&gt;int x = 6;&lt;br /&gt;int y = x++;&lt;br /&gt;x is 7, y is 6&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Pre-Decrement:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;int x = 6;&lt;br /&gt;int y = --x;&lt;br /&gt;x is 5, y is 5&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Post-Decrement:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;int x = 6;&lt;br /&gt;int y = x--;&lt;br /&gt;x is 5, y is 6&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Operator Precedence Order:&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Parentheses &lt;/li&gt;&lt;li&gt;Increment and Decrement Operators &lt;/li&gt;&lt;li&gt;Multiplication and Division Operators (Evaluated from Left to Right) &lt;/li&gt;&lt;li&gt;Addition and Subtraction Operators (Evaluated from Left to Right) &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/3879579922328804534-6500932554190355143?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/6500932554190355143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/using-arithmetic-operators.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6500932554190355143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6500932554190355143'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/using-arithmetic-operators.html' title='Using Arithmetic Operators'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-2371494027598350326</id><published>2009-11-26T11:03:00.002+08:00</published><updated>2009-11-28T20:47:13.744+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Variables'/><title type='text'>Declaring Variables and Assigning Values to Variables</title><content type='html'>&lt;strong&gt;Naming a Variable: &lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Must have a unique and descriptive Identifier &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Assigning a Value to a Variable:&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Variables are automatically initialised according to their data types (if value assignments are not available during declaration) such as &lt;strong&gt;integral types&lt;/strong&gt; are set to &lt;strong&gt;&lt;span style="color:#000099;"&gt;0&lt;/span&gt;&lt;/strong&gt;;&lt;strong&gt; floating point types&lt;/strong&gt; are set to &lt;strong&gt;&lt;span style="color:#000099;"&gt;0.0&lt;/span&gt;&lt;/strong&gt;; &lt;strong&gt;char type&lt;/strong&gt; is set to null character (&lt;strong&gt;&lt;span style="color:#000099;"&gt;'\u0000&lt;/span&gt;&lt;/strong&gt;); and &lt;strong&gt;boolean type&lt;/strong&gt; is set to &lt;strong&gt;&lt;span style="color:#000099;"&gt;false&lt;/span&gt;&lt;/strong&gt;. &lt;/li&gt;&lt;li&gt;Assign value when the variable is declared. &lt;/li&gt;&lt;li&gt;Assign the value of one variable to another variable. &lt;/li&gt;&lt;li&gt;Assign the result of an expression to integral, floating point ot boolean type variables. &lt;/li&gt;&lt;li&gt;Assign the return value of a method call to a variable. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;More than 1 Variables can be declared on the same line of code, but only if they belong to the same data type.&lt;br /&gt;&lt;strong&gt;Syntax:&lt;br /&gt;&lt;span style="color:#000099;"&gt;type identifier = value [, identifier = value];&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;The Use of Constants: &lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Represents values that cannot be changed. &lt;/li&gt;&lt;li&gt;Example: &lt;strong&gt;&lt;span style="color:#000099;"&gt;final double UNIT_TAX = 3.85;&lt;/span&gt;&lt;/strong&gt; where the &lt;strong&gt;&lt;span style="color:#000099;"&gt;final &lt;/span&gt;&lt;/strong&gt;keyword indicates that the value cannot be changed once it is set. &lt;/li&gt;&lt;li&gt;Program needs to be re-compiled if the constant value is changed in the program &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Storing Primitives Constants in Memory:&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Heap Memory&lt;/strong&gt; is dynamically allocated memory which contains information used to hold objects (Attribute Variables and Methods). &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Stack Memory&lt;/strong&gt; is used to store items for a brief period which is shorted than the life of an object such as Local Variables declaration. &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/3879579922328804534-2371494027598350326?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/2371494027598350326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/declaring-variables-and-assigning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/2371494027598350326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/2371494027598350326'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/declaring-variables-and-assigning.html' title='Declaring Variables and Assigning Values to Variables'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-8567797997934525325</id><published>2009-11-25T10:31:00.002+08:00</published><updated>2009-11-28T20:39:19.213+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Primitives'/><title type='text'>Java Primitive Data Types</title><content type='html'>&lt;strong&gt;8 Primitive Data Types in Java:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Integral - &lt;strong&gt;&lt;span style="color:#000099;"&gt;byte&lt;/span&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;span style="color:#000099;"&gt;short&lt;/span&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;span style="color:#000099;"&gt;int&lt;/span&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;span style="color:#000099;"&gt;long&lt;/span&gt;&lt;/strong&gt; &lt;/li&gt;&lt;li&gt;Floating Point - &lt;strong&gt;&lt;span style="color:#000099;"&gt;float&lt;/span&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;span style="color:#000099;"&gt;double&lt;/span&gt;&lt;/strong&gt; &lt;/li&gt;&lt;li&gt;Textual - &lt;strong&gt;&lt;span style="color:#000099;"&gt;char&lt;/span&gt;&lt;/strong&gt; &lt;/li&gt;&lt;li&gt;Logical - &lt;strong&gt;&lt;span style="color:#000099;"&gt;boolean&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Integral Primitive Types - No Decimal Points:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;byte&lt;/span&gt;&lt;/strong&gt; - normally used to save memory consumption: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Length is 8 bits &lt;/li&gt;&lt;li&gt;Range is -27 to 27 -1 (-128 to 127, or 256 possible values) &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;short&lt;/span&gt;&lt;/strong&gt; - normally used to save memory consumption: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Length is 16 bits &lt;/li&gt;&lt;li&gt;Range is -215 to 215 -1 (-32,768 to 32,767, or 65,535 possible values) &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;int&lt;/span&gt;&lt;/strong&gt; - default integral type: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Length is 32 bits &lt;/li&gt;&lt;li&gt;Range is -231 to 231 -1 (-2,147,483,648 to 2,147,483,647 or 4,294,967,296 possible values) &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;long&lt;/span&gt;&lt;/strong&gt; - value ends with a capital L to indicate it is a long value: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Length is 64 bits &lt;/li&gt;&lt;li&gt; Range is -263 to 263 -1(-9,223,372,036854,775,808 to 9,223,372,036,854,775,807, or 18,446,744,073,709,551,616 possible values) &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Floating Point Primitive Types - wtih Decimal Points:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;float&lt;/span&gt;&lt;/strong&gt; - value ends with a capital F to indicate it is a float value: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Length is 32 bits &lt;/li&gt;&lt;li&gt; Example is public float price = 0.0F; &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;double&lt;/span&gt;&lt;/strong&gt; - default floating point type &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Length is 64 bits &lt;/li&gt;&lt;li&gt;Example is public double price = 0.0;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Textual Primitive Types:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;char&lt;/span&gt;&lt;/strong&gt; - stores single-character value: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Length is 16 bits &lt;/li&gt;&lt;li&gt;Example is char ShoeColour = 'b'; &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Logical Primitive Type:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;boolean&lt;/span&gt;&lt;/strong&gt; - stores true or false &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Used to store the Java programming language literals or the results of an expression &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Choosing a Data Type: &lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Numeric Variables normally use int, long or double Data Types. &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/3879579922328804534-8567797997934525325?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/8567797997934525325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/java-primitive-data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8567797997934525325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8567797997934525325'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/java-primitive-data-types.html' title='Java Primitive Data Types'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-5202732062754796171</id><published>2009-11-23T11:12:00.002+08:00</published><updated>2009-11-28T20:29:23.639+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Variables'/><title type='text'>Identifying Variable Use and Syntax</title><content type='html'>&lt;strong&gt;Variables&lt;/strong&gt; are used to store and retrieve values for programs.&lt;br /&gt;&lt;br /&gt;Attribute Variables (variables declared outside of a method and without the keyword &lt;strong&gt;&lt;span style="color:#000099;"&gt;static&lt;/span&gt;&lt;/strong&gt;) are called &lt;strong&gt;Member or Instance Variables&lt;/strong&gt;. Instance Variables contain data specific to a particular object instance which is instantiated from a class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Local Variables&lt;/strong&gt; are variables defined within methods. They are only used within the method in which they are declared.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Uses for Variables:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Store unique attribute data for an Object Instance &lt;/li&gt;&lt;li&gt;Assign the value of one variable to another variable &lt;/li&gt;&lt;li&gt;Represent values within a mathematical expression &lt;/li&gt;&lt;li&gt;Print values to screen &lt;/li&gt;&lt;li&gt;Hold references to other objects &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Variable Declaration and Initialization:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Instance Variable Syntax:&lt;br /&gt;&lt;span style="color:#000099;"&gt;[modifiers] type identifier [=value];&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Local Variable Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;type identifier;&lt;br /&gt;identifier = value;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;or&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;type identifier = [value];&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Do not use [&lt;strong&gt;&lt;span style="color:#000099;"&gt;modifiers&lt;/span&gt;&lt;/strong&gt;] in Local Variables declaration. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-5202732062754796171?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/5202732062754796171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/identifying-variable-use-and-syntax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5202732062754796171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5202732062754796171'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/identifying-variable-use-and-syntax.html' title='Identifying Variable Use and Syntax'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-8542092282081775661</id><published>2009-11-21T08:03:00.004+08:00</published><updated>2009-11-28T20:24:07.189+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Test Class'/><title type='text'>Compiling and Executing (Testing) a Program</title><content type='html'>&lt;strong&gt;Compiling a Program:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Compiling&lt;/strong&gt; converts a the Class File into bytecode which can be executed by the JVM (Java Virtual Machine). The Class File must have a &lt;strong&gt;&lt;span style="color:#000099;"&gt;.java&lt;/span&gt;&lt;/strong&gt; extension.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;javac .java&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;javac&lt;/span&gt;&lt;/strong&gt; is the compilation command&lt;br /&gt;&lt;br /&gt;Upon successful compilation, a bytecode file (&lt;strong&gt;&lt;span style="color:#000099;"&gt;.class&lt;/span&gt;&lt;/strong&gt;) will be created. All objects that are referenced by the compiled class will be automatically compiled if they are not compiled yet.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Executing (Testing) a Program:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;JVM&lt;/strong&gt; is used to execute the bytecode file (&lt;strong&gt;&lt;span style="color:#000099;"&gt;.class&lt;/span&gt;&lt;/strong&gt;).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;java&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;java&lt;/span&gt;&lt;/strong&gt; is the program execution program.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Testing&lt;/strong&gt; is in the 4th stage of the PLC (&lt;a href="http://jessicajava.blogspot.com/search/label/Product%20Life%20Cycle"&gt;Product Life Cycle&lt;/a&gt;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-8542092282081775661?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/8542092282081775661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/compiling-and-executing-testing-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8542092282081775661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8542092282081775661'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/compiling-and-executing-testing-program.html' title='Compiling and Executing (Testing) a Program'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-2303756244805676067</id><published>2009-11-19T08:10:00.002+08:00</published><updated>2009-11-28T20:16:44.162+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Test Class'/><title type='text'>Creating and Using a Test Class</title><content type='html'>Classes need to be instantiated as an Object and be called from a &lt;strong&gt;Test or Main Class&lt;/strong&gt; before it can be executed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Test Classes performs 2 basic tasks: &lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Provide a starting point (main method) for a program &lt;/li&gt;&lt;li&gt;Create an Object instance of the class and testing its methods &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;The Main Method:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;main method&lt;/strong&gt; is a special method which is recognised by JVM (Java Virtual Machine) as a starting point for every Java program that runs from the Command Line.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Syntax:&lt;br /&gt;&lt;span style="color:#000099;"&gt;public static void main (String args[])&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;public static&lt;/span&gt;&lt;/strong&gt; is the 2 required modifiers&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;void&lt;/span&gt;&lt;/strong&gt; keyword means the main method doesn't return any value&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;main&lt;/span&gt;&lt;/strong&gt; is the method identifier name&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;(String args[])&lt;/span&gt;&lt;/strong&gt; allows the method to accept values a string of arguments on the Command Line to be used during program runtime&lt;br /&gt;&lt;br /&gt;Only 1 &lt;strong&gt;&lt;span style="color:#000099;"&gt;main&lt;/span&gt;&lt;/strong&gt; method can exists in a Java program. The array (&lt;span style="color:#000099;"&gt;&lt;strong&gt;args&lt;/strong&gt;&lt;/span&gt;) name that the main method accepts can be changed. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-2303756244805676067?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/2303756244805676067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/creating-and-using-test-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/2303756244805676067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/2303756244805676067'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/creating-and-using-test-class.html' title='Creating and Using a Test Class'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-4144212347514329971</id><published>2009-11-18T10:53:00.004+08:00</published><updated>2009-11-28T20:06:06.148+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Class Components'/><title type='text'>Identifying A Class Components</title><content type='html'>&lt;strong&gt;Classes are the blueprints used to create Objects in a program.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;An application usually has a &lt;strong&gt;Controller Object&lt;/strong&gt; or a &lt;strong&gt;Main Object&lt;/strong&gt; which is the starting point of a program.&lt;br /&gt;&lt;br /&gt;Every object is an instance of a blueprint or Class.&lt;strong&gt; Java Technology API (Application Programming Interface)&lt;/strong&gt; provide classes which we can instantiate to be used as objects in programs. We may also create our own Class which can be easily instantiate.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Structuring Classes:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;A Java Class File consists of 4 sections:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Class Declaration &lt;/li&gt;&lt;li&gt;Attribute Variable Declarations and Initialization(Optional) &lt;/li&gt;&lt;li&gt;Comments (Optional) &lt;/li&gt;&lt;li&gt;Methods (Optional) &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;strong&gt;Class Declaration Syntax: &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;[modifier] class class_identifier {&lt;br /&gt;class_body_code&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;modifier&lt;/span&gt;&lt;/strong&gt; determines the accessibility of other classes which can be public, abstract and final.&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;class&lt;/span&gt;&lt;/strong&gt; keyword identifies the block of codes as Class Declaration&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;class_identifier&lt;/span&gt;&lt;/strong&gt; is the name given to the Class&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;{&lt;/span&gt;&lt;/strong&gt; marks the start of the class_body_code&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;class_body_code&lt;/span&gt;&lt;/strong&gt; is the statements within the Class&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;}&lt;/span&gt;&lt;/strong&gt; marks the end of the class_body_code&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Variable Declarations and Assignments Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;[modifiers] type name;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;[modifiers]&lt;/span&gt;&lt;/strong&gt; determines the accessibility of the attributes which can be public and private.&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;type&lt;/span&gt;&lt;/strong&gt; denotes the kind of values that the variable can hold, such as Integer or String.&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;name&lt;/span&gt;&lt;/strong&gt; identifies the variable name.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Comments Syntax:&lt;/strong&gt;&lt;br /&gt;Single-line comments - &lt;strong&gt;&lt;span style="color:#000099;"&gt;//&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Tradtional comments - &lt;strong&gt;&lt;span style="color:#000099;"&gt;/* */&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;/** */&lt;/span&gt;&lt;/strong&gt; comments can be used to create documentation using Javadoc software.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Methods Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;[modifiers] return_type method_identifier ([arguments]) { method_code_block}&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;[modifiers]&lt;/span&gt;&lt;/strong&gt; determines the accessibility of the methods and it is Optional as it appears in square brackets.&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;return_type&lt;/span&gt;&lt;/strong&gt; identifies the type of value that the method returns. If the method returns nothing, then the void keyword will be used.&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;method_identifier&lt;/span&gt;&lt;/strong&gt; is the method name&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;([arguments])&lt;/span&gt;&lt;/strong&gt; represents a list of variables whose values will be passed to the method.&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;method_code_block&lt;/span&gt;&lt;/strong&gt; identifies the method statements.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-4144212347514329971?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/4144212347514329971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/identifying-class-components.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4144212347514329971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4144212347514329971'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/identifying-class-components.html' title='Identifying A Class Components'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-7546534052403116616</id><published>2009-11-16T08:23:00.003+08:00</published><updated>2009-11-28T20:17:08.984+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Class Design'/><title type='text'>Class Design</title><content type='html'>&lt;strong&gt;Classes are the blueprints for Objects.&lt;/strong&gt; In Object-Oriented design terms, each &lt;strong&gt;Object&lt;/strong&gt; (created shoe) is created using the class (blueprint) and it is called an &lt;strong&gt;instance of a class&lt;/strong&gt;. In other words, each object created from the class can have a specific state for each of its attributes but has the same attributes and operations from the same class.&lt;br /&gt;&lt;br /&gt;In the Java Programming Language context, attributes are represented by &lt;strong&gt;variables&lt;/strong&gt; and operations by &lt;strong&gt;methods&lt;/strong&gt;. Variables are using to hold data while methods are used to perform operations.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Designing Classes:&lt;br /&gt;&lt;/strong&gt;Classes are modeled in the Design stage where each class is represented as a &lt;strong&gt;Class diagram&lt;/strong&gt; in the &lt;strong&gt;UML (Unified Modeling Language)&lt;/strong&gt; notation. In the Class diagram box, it starts with &lt;strong&gt;ClassName&lt;/strong&gt; at the top followed by a list of attributes variables (&lt;strong&gt;attributeVariableName&lt;/strong&gt;) which may include a range of values and list of methods (&lt;strong&gt;methodName&lt;/strong&gt;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-7546534052403116616?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/7546534052403116616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/class-design.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/7546534052403116616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/7546534052403116616'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/class-design.html' title='Class Design'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-5697329693505338232</id><published>2009-11-15T11:36:00.004+08:00</published><updated>2009-11-28T19:47:15.043+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object-Oriented Analysis and Design'/><title type='text'>Analyze a Problem Using Object-Oriented Analysis and Design</title><content type='html'>&lt;p&gt;&lt;strong&gt;Object-Oriented Analysis and Design (OOAD)&lt;/strong&gt; principles:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Identifying a Problem Domain:&lt;/strong&gt;&lt;br /&gt;Problem Domain is the &lt;strong&gt;scope&lt;/strong&gt; of the problem that needs to be resolved where the objects can be identified.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Identifying Object Properties:&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Identify Object's &lt;strong&gt;Attributes&lt;/strong&gt; and &lt;strong&gt;State&lt;/strong&gt;. &lt;/li&gt;&lt;li&gt;Identify Object's &lt;strong&gt;Operations&lt;/strong&gt; (things they can do) and &lt;strong&gt;Behaviour&lt;/strong&gt; (operations that an object performs). Object Operation includes setting a value or displaying on the screen while an Object Behaviour can be an operation that allows other objects to change the objects's colour attribute from one state to another, such as green to blue. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Additional Criteria for Recognizing Objects:&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Relevance to the problem domain&lt;/strong&gt; - Does the object exist within the boundaries of the problem domain? Is the object required for the solution to be complete? Is the object required as part of an interaction between a user and the solution? &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Independence Existence&lt;/strong&gt; - For an item to be an object and not an attribute of another object, it must exist independently in the context of the problem domain. Objects can be connected and still have independent existence. When evaluating potential objects, ask yourself if the object needs to exist independently, rather than being an attribute of another object. &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/3879579922328804534-5697329693505338232?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/5697329693505338232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/analyze-problem-using-object-oriented.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5697329693505338232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5697329693505338232'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/analyze-problem-using-object-oriented.html' title='Analyze a Problem Using Object-Oriented Analysis and Design'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-4679514972659201516</id><published>2009-11-13T08:33:00.001+08:00</published><updated>2009-11-28T19:35:59.073+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Product Life Cycle'/><title type='text'>Software Product Life Cycle Stages</title><content type='html'>&lt;strong&gt;Analysis:&lt;/strong&gt;&lt;br /&gt;The investigation process involved in solving a product issue which includes tasks such as definining the issue, the market niche, the system to be create, product scope and identifying the product sub-components.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Design:&lt;br /&gt;&lt;/strong&gt;The process of applying the findings made during Analysis stage to the actual product design which include tasks such as developing product blueprints and components of the system.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Development:&lt;/strong&gt;&lt;br /&gt;The process of creating the actual product components based on the product blueprints created in the Design stage.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Testing:&lt;br /&gt;&lt;/strong&gt;The process of ensuring the developed product and components meet the requirements of the specification stated in the Design stage which include Unit Test by the developers and Quality Assurance Test by Quality Assurance Team and End-Users.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Implementation:&lt;/strong&gt;&lt;br /&gt;The process of making the product available to customers which is also known as First Customer Ship (FCS) in the computer industry.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Maintenance:&lt;br /&gt;&lt;/strong&gt;The process of fixing the product problems raised by customer once the product is released to the customer.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;End-of-life (EOL):&lt;br /&gt;&lt;/strong&gt;The process of ensuring that customers and employees are aware that the product is no longer available in the market or supported and a new product is available.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-4679514972659201516?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/4679514972659201516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/software-product-life-cycle-stages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4679514972659201516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4679514972659201516'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/software-product-life-cycle-stages.html' title='Software Product Life Cycle Stages'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-6068734487280830635</id><published>2009-11-11T09:28:00.002+08:00</published><updated>2009-11-28T19:33:04.455+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Product Groups'/><title type='text'>Java Technology Product Groups</title><content type='html'>&lt;strong&gt;J2ME (Java 2 Mobile Edition): &lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To create applications for resource-constrained consumer devices. &lt;/li&gt;&lt;li&gt;Consumer Solutions include Cell phones, PDAs, TV set-top boxes and Car navigation systems. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;J2SE (Java 2 Standard Edition):&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;To develop applets and applications that run within Web browsers and on desktop computers. &lt;/li&gt;&lt;li&gt;Desktop Solutions include Standalone Applications and Applets. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;J2EE (Java 2 Enterprise Edition):&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;To create large, enterprise, server-side and client-side distributed applications. &lt;/li&gt;&lt;li&gt; Enterprise Solutions include eCommerce and eBusiness. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Each edition include SDK (Software Developer's Kit) and JVM (Java Virtual Machine) for their respective needs.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Java 2 Platform, Standard Edition's SDK includes:&lt;/strong&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Java Runtime Environment (JVM and Java Class Libraries for the chosen platform) &lt;/li&gt;&lt;li&gt; A Java Compiler &lt;/li&gt;&lt;li&gt; Java Class Library (API) documentation &lt;/li&gt;&lt;li&gt; Additional Utilities such as for creating JAR (Java Archive) Files and for debugging Java programs &lt;/li&gt;&lt;li&gt; Java Example Programs &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/3879579922328804534-6068734487280830635?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/6068734487280830635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/java-technology-product-groups.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6068734487280830635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6068734487280830635'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/java-technology-product-groups.html' title='Java Technology Product Groups'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-6721708960105184419</id><published>2009-11-09T07:21:00.003+08:00</published><updated>2009-11-28T19:27:36.552+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Concepts'/><title type='text'>Key Concepts of the Java Programming Language</title><content type='html'>&lt;strong&gt;Java(TM) programming language&lt;/strong&gt; originated in &lt;strong&gt;1991&lt;/strong&gt; as part of a research project to develop a programming language, called Oak. It was initially planned to be used as a &lt;strong&gt;communication method among the consumer devices&lt;/strong&gt;. However, fail deals with the consumer devices companies had forced the software development team (Green team) to look into alternatives. At that time, World Wide Web was gaining popularity and the team realised the new programming language was great for developing multimedia components over the web, known as &lt;strong&gt;applets&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;The Java(TM) programming language was designed to be &lt;strong&gt;Object-Oriented&lt;/strong&gt;, &lt;strong&gt;Distributed&lt;/strong&gt;, &lt;strong&gt;Simple&lt;/strong&gt;, &lt;strong&gt;Multithreaded&lt;/strong&gt;, &lt;strong&gt;Secure&lt;/strong&gt; and &lt;strong&gt;Platform-Independent&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Object-Oriented Programming (OOP)&lt;/strong&gt; was in mind when Java was created. OOP started with SIMULA-67 programming language in 1967 and has gained popularity since then with newer languages such as C++ and Microsoft C Sharp. Procedural programming such as COBOL and RPG stresses on sequence of coding statements in solving a problem while OOP stresses on the Object creation and the interaction among the Objects.&lt;br /&gt;&lt;br /&gt;Java(TM) programming language is a &lt;strong&gt;distributed language&lt;/strong&gt; because it supports distributed network technologies such as &lt;strong&gt;Method Invocation (RMI)&lt;/strong&gt;, &lt;strong&gt;Common Object Request Broker Architecture (CORBA)&lt;/strong&gt; and &lt;strong&gt;Universal Resource Locators (URLs)&lt;/strong&gt;. In addition, the &lt;strong&gt;dynamic class loading capabilities&lt;/strong&gt; allow codes to be downloaded over the Internet and executed on a personal computer.&lt;br /&gt;&lt;br /&gt;Java(TM) programming language is &lt;strong&gt;simple&lt;/strong&gt; as &lt;strong&gt;it removes the complex programming constructs&lt;/strong&gt; found in predecessor programming languages. For example, pointers to memory location manipulations in C and C++ are oftenly misused. Java substitues it with Object References method. &lt;strong&gt;Garbage Collection&lt;/strong&gt; feature found in Java also automatically removes objects that are no longer used. Java &lt;strong&gt;Boolean data type is either a true or false&lt;/strong&gt; as compared to 1 or 0 in predecessor programming languages.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Multithreading&lt;/strong&gt;, ie. performing more than 1 tasks at a time, optimises the system resources usage.&lt;br /&gt;&lt;br /&gt;Java(TM) programming language, in conjunction with the JRE (Java Runtime Environment) ensure &lt;strong&gt;security&lt;/strong&gt; via measurements such as prohibition of memory pointers manipulation and reading/writing to computer hard disk by distributed programs such as applets; verifies that all programs contain valid codes; supports digital signatures.&lt;br /&gt;&lt;br /&gt;Java(TM) programming language is &lt;strong&gt;platform-independent&lt;/strong&gt;, as it &lt;strong&gt;Write Once, Run Anywhere&lt;/strong&gt;. A JVM (Java Virtual Machine) is required in every platform that runs Java program. JVM interprets the &lt;strong&gt;Java bytecode&lt;/strong&gt;, loads the Java Class Libraries (also known as &lt;strong&gt;API - Application Programming Interface&lt;/strong&gt;) and executes the Java programs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-6721708960105184419?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/6721708960105184419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/key-concepts-of-java-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6721708960105184419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6721708960105184419'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/key-concepts-of-java-programming.html' title='Key Concepts of the Java Programming Language'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-433990229881542699</id><published>2009-11-07T09:28:00.000+08:00</published><updated>2009-11-07T09:28:00.596+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Arithmetic'/><title type='text'>Java Arithmetic Expressions</title><content type='html'>An &lt;strong&gt;arithmetic expression&lt;/strong&gt; consists of operands and operators.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Basic Arithmetic Expression Operators:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;+&lt;/strong&gt; Addition&lt;/li&gt;&lt;li&gt;&lt;strong&gt;-&lt;/strong&gt; Substraction&lt;/li&gt;&lt;li&gt;&lt;strong&gt;*&lt;/strong&gt; Multiplication&lt;/li&gt;&lt;li&gt;&lt;strong&gt;/&lt;/strong&gt; Division&lt;/li&gt;&lt;/ul&gt;If an interger operand is added to a double operand, Java automatically casts the integer data type to a double data type variable in order to retain the decimal values stored in the result variable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-433990229881542699?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/433990229881542699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/java-arithmetic-expressions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/433990229881542699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/433990229881542699'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/java-arithmetic-expressions.html' title='Java Arithmetic Expressions'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-101800054457860031</id><published>2009-11-06T08:13:00.000+08:00</published><updated>2009-11-06T08:13:00.833+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Assignment'/><title type='text'>Java Assignment Statement</title><content type='html'>Java variable value is assigned to its variable using the &lt;strong&gt;assignment statements&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Assignment Statement Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;type variableName = value;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;type&lt;/span&gt;&lt;/strong&gt; is the variable data type&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;variableName&lt;/span&gt;&lt;/strong&gt; is the variable name&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;value&lt;/span&gt;&lt;/strong&gt; is the value assigned to the variable&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-101800054457860031?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/101800054457860031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/java-assignment-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/101800054457860031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/101800054457860031'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/java-assignment-statement.html' title='Java Assignment Statement'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-6141069019205606448</id><published>2009-11-04T08:33:00.003+08:00</published><updated>2009-11-04T16:39:34.529+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UML'/><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>2.1: UML Representation of Object-Oriented Concepts</title><content type='html'>&lt;strong&gt;2.1 Recognize the UML representation of classes, (including attributes and operations, abstract classes, and interfaces), the UML representation of inheritance (both implementation and interface), and the UML representation of class member visibility modifiers (-/private and +/public).&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UML diagrams&lt;/strong&gt; are used by Software Designer to model the classes for an application which are then used by developers to develop the program codes. The diagrams can also be used by many UML modeling tools to automatically generate program codes known as reverse code engineering.&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Abstract classes, concerate classes and interfaces&lt;/strong&gt; are represented in a rectangle with their names in boldface. Abstract classes are italicized. Interfaces are prefaced by the word interface between guillemet characters. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Generalization&lt;/strong&gt; describes a &lt;em&gt;is-a&lt;/em&gt; relationship where a class allows its more general attributes and operations to be inherited. Let's say &lt;em&gt;classN&lt;/em&gt; inherits from &lt;em&gt;classM&lt;/em&gt;, then it is said &lt;em&gt;classN&lt;/em&gt; &lt;em&gt;is-a&lt;/em&gt; &lt;em&gt;classM&lt;/em&gt;. The generalization class relationship is displayed with a solid line and a closed arrowhead.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Realization&lt;/strong&gt; is the general principle of implementing an interface. For example, &lt;em&gt;classM&lt;/em&gt; implements the &lt;em&gt;InterfaceZ&lt;/em&gt; interface. The realization relationship is displayed with a dotted line and a closed solid arrowheard. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Attributes or member variables&lt;/strong&gt; defines the state of a class. The attributes section is optionally displayed under the name class diagram's name section. The simplified attributes format is &lt;em&gt;visibility variable_name : type = default_value&lt;/em&gt; where all fields are optional except for &lt;em&gt;variable_name&lt;/em&gt;. &lt;visibility&gt;&lt;variable_name&gt;&lt;type&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Operations or member functions&lt;/strong&gt; defines the behaviour of a class. The operations section is optionally displayed displayed under the class diagram's attributes section. The simplifield operations format is &lt;em&gt;visibility method_name parameter0list : return-type&lt;/em&gt; where all fields are option except for &lt;em&gt;method_name&lt;/em&gt;. &lt;/p&gt;&lt;strong&gt;4 Types of Visibility Modifiers as Described in UML:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;public &lt;em&gt;&lt;strong&gt;+&lt;/strong&gt; (plus sign)&lt;/em&gt;&lt;/li&gt;&lt;li&gt;private &lt;strong&gt;&lt;em&gt;-&lt;/em&gt;&lt;/strong&gt; (minus sign)&lt;/li&gt;&lt;li&gt;protected &lt;strong&gt;#&lt;/strong&gt; (pound sign)&lt;/li&gt;&lt;li&gt;package-private &lt;strong&gt;~&lt;/strong&gt; (tilde sign)&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/3879579922328804534-6141069019205606448?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/6141069019205606448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/21-uml-representation-of-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6141069019205606448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6141069019205606448'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/21-uml-representation-of-object.html' title='2.1: UML Representation of Object-Oriented Concepts'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-8157128510804594607</id><published>2009-11-02T13:13:00.003+08:00</published><updated>2009-11-02T16:00:09.537+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UML'/><category scheme='http://www.blogger.com/atom/ns#' term='Timeline'/><title type='text'>UML Timeline</title><content type='html'>&lt;strong&gt;1997 November&lt;/strong&gt;&lt;br /&gt;UML 1.1&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Various Periods&lt;/strong&gt;&lt;br /&gt;UML 1.3, UML 1.4.X, UML 1.5&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2005 July&lt;/strong&gt;&lt;br /&gt;UML 2.0&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2007 August &lt;/strong&gt;&lt;br /&gt;UML 2.1.1&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2007 November&lt;/strong&gt;&lt;br /&gt;UML 2.1.2&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2009 February&lt;/strong&gt;&lt;br /&gt;UML 2.2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-8157128510804594607?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/8157128510804594607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/11/uml-timeline.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8157128510804594607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8157128510804594607'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/11/uml-timeline.html' title='UML Timeline'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-6544528425825302046</id><published>2009-10-31T09:23:00.006+08:00</published><updated>2009-11-04T21:39:46.043+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Variables'/><title type='text'>Java Variables Declaration and Initialization</title><content type='html'>&lt;strong&gt;Java Variables&lt;/strong&gt; are used to store values and their values vary during program execution.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Variables Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;type&lt;/strong&gt; &lt;em&gt;variableName&lt;/em&gt; = &lt;em&gt;value&lt;/em&gt;;&lt;br /&gt;&lt;/span&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;type&lt;/span&gt;&lt;/strong&gt; is the Data Type of the Variable&lt;br /&gt;&lt;em&gt;&lt;span style="color:#000099;"&gt;variableName&lt;/span&gt;&lt;/em&gt; is the Variable Name&lt;br /&gt;&lt;em&gt;&lt;span style="color:#000099;"&gt;value&lt;/span&gt;&lt;/em&gt; is the assigned initial value of the Variable&lt;br /&gt;&lt;br /&gt;Java has &lt;strong&gt;8 Primitive Data Types&lt;/strong&gt;, namely &lt;em&gt;int&lt;/em&gt;, &lt;em&gt;float&lt;/em&gt;, &lt;em&gt;boolean&lt;/em&gt;, &lt;em&gt;char&lt;/em&gt;, &lt;em&gt;byte&lt;/em&gt;, short, &lt;em&gt;long&lt;/em&gt; and &lt;em&gt;double&lt;/em&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-6544528425825302046?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/6544528425825302046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-variables-declaration-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6544528425825302046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6544528425825302046'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-variables-declaration-and.html' title='Java Variables Declaration and Initialization'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-1080041322992215719</id><published>2009-10-29T09:16:00.001+08:00</published><updated>2009-11-04T21:40:21.405+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Main Method Declaration'/><title type='text'>Java Main Method Declaration</title><content type='html'>Java &lt;strong&gt;Main Method&lt;/strong&gt; serves as a starting point for a Java application.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Main Method Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;public static void main(String[ ] args)&lt;/strong&gt;&lt;br /&gt;{&lt;br /&gt;&lt;em&gt;statements&lt;/em&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;public&lt;/span&gt;&lt;/strong&gt; means the main method is accessible by any other classes&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;static&lt;/span&gt;&lt;/strong&gt; means the main method can be called without instantiated&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;void&lt;/strong&gt; &lt;/span&gt;means the main method doesn't return any values&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;String[ ] args&lt;/span&gt;&lt;/strong&gt; is an array of String parameters that the main method receives&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-1080041322992215719?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/1080041322992215719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-main-method-declaration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1080041322992215719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1080041322992215719'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-main-method-declaration.html' title='Java Main Method Declaration'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-847902012428853769</id><published>2009-10-28T08:26:00.002+08:00</published><updated>2009-11-04T16:38:15.656+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>Section 2: UML Representation of Object-Oriented Concepts</title><content type='html'>&lt;a href="http://jessicajava.blogspot.com/2009/11/21-uml-representation-of-object.html"&gt;2.1 Recognize the UML representation of classes, (including attributes and operations, abstract classes, and interfaces), the UML representation of inheritance (both implementation and interface), and the UML representation of class member visibility modifiers (-/private and +/public). &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2.2 Recognize the UML representation of class associations, compositions, association multiplicity indicators, and association navigation indicators.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-847902012428853769?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/847902012428853769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/section-2-uml-representation-of-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/847902012428853769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/847902012428853769'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/section-2-uml-representation-of-object.html' title='Section 2: UML Representation of Object-Oriented Concepts'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-5054898248771410136</id><published>2009-10-26T08:20:00.007+08:00</published><updated>2009-11-04T21:41:12.140+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Class Declaration'/><title type='text'>Java Class Declaration</title><content type='html'>Developers store their program codes in a class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Class Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;[&lt;strong&gt;public&lt;/strong&gt; or &lt;strong&gt;private&lt;/strong&gt;] &lt;strong&gt;class&lt;/strong&gt;&lt;em&gt; ClassName&lt;/em&gt;&lt;br /&gt;{&lt;br /&gt;&lt;em&gt;statements&lt;/em&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;where&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;public&lt;/span&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;span style="color:#000099;"&gt;private&lt;/span&gt;&lt;/strong&gt; are the &lt;a href="http://jessicajava.blogspot.com/search/label/Access%20Modifier"&gt;Access Modifiers&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;class&lt;/span&gt;&lt;/strong&gt; indicates that it is a Class&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;em&gt;ClassName&lt;/em&gt;&lt;/span&gt; indicates the Class Name&lt;br /&gt;&lt;em&gt;&lt;span style="color:#000099;"&gt;statements&lt;/span&gt;&lt;/em&gt; are the class codes&lt;br /&gt;&lt;br /&gt;Only 1 public class can be defined in a *.java file. The &lt;em&gt;ClassName&lt;/em&gt; name must be the same as the &lt;em&gt;ClassName.java&lt;/em&gt; filename.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-5054898248771410136?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/5054898248771410136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-class-declaration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5054898248771410136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5054898248771410136'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-class-declaration.html' title='Java Class Declaration'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-1204257027633675053</id><published>2009-10-23T13:02:00.002+08:00</published><updated>2009-10-31T13:19:05.846+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Identifiers'/><title type='text'>Java Identifiers</title><content type='html'>Developers create &lt;strong&gt;Java Identifiers&lt;/strong&gt; in a program such as names for class, object, method and variables.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Java Idenfiers Rules:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Begin with a letter, _ or $. Use letters, $, _ or digits for subsequent characters&lt;/li&gt;&lt;li&gt;Use up to 255 characters&lt;/li&gt;&lt;li&gt;Cannot use Java keywords&lt;/li&gt;&lt;li&gt;Use meaningful words&lt;/li&gt;&lt;li&gt;Avoid abbreviations&lt;/li&gt;&lt;/ul&gt;Remember that Java is a &lt;strong&gt;case-sensitive&lt;/strong&gt; programming language.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-1204257027633675053?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/1204257027633675053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-identifiers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1204257027633675053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1204257027633675053'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-identifiers.html' title='Java Identifiers'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-4300651587596981779</id><published>2009-10-21T09:26:00.006+08:00</published><updated>2009-10-31T13:01:18.286+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><category scheme='http://www.blogger.com/atom/ns#' term='Polymorphism'/><title type='text'>1.5: Fundamental Object-Oriented Concepts</title><content type='html'>&lt;p&gt;&lt;strong&gt;1.5 Describe polymorphism as it appplies to classes and interfaces, and describe and apply the "program to an interface" principle.&lt;/strong&gt;&lt;/p&gt;&lt;strong&gt;Polymorphism&lt;/strong&gt; word originates from Greeks which simply means many forms. In Java context, polymorphism means 1 object can take the place of an object of different type.&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Polymorphism via Class Inheritance&lt;/strong&gt; occurs when a certain object type is required and an object of that type or its inherited object is accepted in its place. In this case, polymorphism utilizes the &lt;em&gt;is-a&lt;/em&gt; relationship. A subclass is said to have an &lt;em&gt;is-a&lt;/em&gt; relationship with its superclass. When an object is polymorphically acting as another object, the more specific object is restricted to only using the public interface of the more general object. The &lt;em&gt;is-a&lt;/em&gt; relationship is unidirectional, ie., only the subclass can take the place of its superclass.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Polymorphism via Interfaces&lt;/strong&gt; occurs when a class implements an interface, it is required to implement all the methods in the interface. Hence, the class includes all the functionalities that the interface defines. This allows all objects instantiated from the classes to polymorphically behave as the data type of the interface. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Programming to an interface&lt;/strong&gt; concept specifies that the code should interact based on a defined set of functionality instead of an explicitly defined object type. In other words, it is better for the public interfaces of objects to use data types that are defined as interfaces than to a particular class. This allows code to be more abstract and flexible. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-4300651587596981779?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/4300651587596981779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/15-fundamental-object-oriented-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4300651587596981779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4300651587596981779'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/15-fundamental-object-oriented-concepts.html' title='1.5: Fundamental Object-Oriented Concepts'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-584622878819370898</id><published>2009-10-18T08:18:00.001+08:00</published><updated>2009-10-30T19:48:18.763+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Comments. Statements'/><title type='text'>Java Statements and Comments</title><content type='html'>A Java program consists of statements and comments. &lt;strong&gt;Statements&lt;/strong&gt; are the steps that tell that program what to do while &lt;strong&gt;Comments&lt;/strong&gt; are internal documentation that explain what the statements do.&lt;br /&gt;&lt;br /&gt;Most statements end with a &lt;strong&gt;semi-colon&lt;/strong&gt; ( &lt;em&gt;;&lt;/em&gt; ) while a block of statements starts with an &lt;strong&gt;opening brace&lt;/strong&gt; ( &lt;em&gt;{&lt;/em&gt; ) and ends with an &lt;strong&gt;ending brace&lt;/strong&gt; ( &lt;em&gt;}&lt;/em&gt; ).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Single comment&lt;/strong&gt; starts with &lt;em&gt;//&lt;/em&gt; followed by the comment. &lt;strong&gt;A block of comments&lt;/strong&gt; start with &lt;em&gt;/*&lt;/em&gt; and ends with &lt;em&gt;*/&lt;/em&gt; .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-584622878819370898?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/584622878819370898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-statements-and-comments.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/584622878819370898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/584622878819370898'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-statements-and-comments.html' title='Java Statements and Comments'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-253595036303328867</id><published>2009-10-16T12:18:00.007+08:00</published><updated>2009-10-30T13:05:20.402+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><title type='text'>To Use Eclipse IDE</title><content type='html'>Lots of &lt;strong&gt;IDEs (Integrated Development Environments)&lt;/strong&gt; are available in the market for Java Programming Language. An IDE not only serves as program text editor but also for compilation, monitoring, debugging and tool for developing Graphical User Interfaces (GUIs). The popular IDEs are &lt;strong&gt;Eclipse&lt;/strong&gt;, Netbeans and Rational.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To Download Eclipse IDE:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Access &lt;a href="http://www.eclipse.org/downloads/"&gt;Downloads&lt;/a&gt; section of the Eclipse website&lt;/li&gt;&lt;li&gt;Under the &lt;strong&gt;Eclipse Downloads&lt;/strong&gt; webpage, select the &lt;em&gt;Eclipse IDE for Java Developers (92MB)&lt;/em&gt; link&lt;/li&gt;&lt;li&gt;Under the &lt;strong&gt;Eclipse downloads - mirror selection&lt;/strong&gt; webpage, proceed to download the &lt;em&gt;eclipse-java-galileo-SR1-win32.zip&lt;/em&gt; file by selecting a mirror site link&lt;/li&gt;&lt;/ul&gt;&lt;strong&gt;To install Eclipse IDE:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Unzip the downloaded &lt;em&gt;eclipse-java-galileo-SR1-win32.zip&lt;/em&gt; file&lt;/li&gt;&lt;li&gt;Open the &lt;em&gt;eclipse.exe file&lt;/em&gt; to execute the Eclipse IDE&lt;/li&gt;&lt;li&gt;A &lt;strong&gt;Workspace Launcher&lt;/strong&gt; window pops up &lt;/li&gt;&lt;li&gt;Select the default &lt;strong&gt;Workspace&lt;/strong&gt; or your change it to your preferred workspace&lt;/li&gt;&lt;li&gt;Select the &lt;strong&gt;OK&lt;/strong&gt; button to start using the Eclipse IDE&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/3879579922328804534-253595036303328867?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/253595036303328867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/to-use-eclipse-ide.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/253595036303328867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/253595036303328867'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/to-use-eclipse-ide.html' title='To Use Eclipse IDE'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-2119859997279268148</id><published>2009-10-13T13:25:00.012+08:00</published><updated>2009-10-29T20:28:13.569+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information Hiding'/><category scheme='http://www.blogger.com/atom/ns#' term='Encapsulation'/><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='Access Modifier'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>1.4: Fundamental Object-Oriented Concepts</title><content type='html'>&lt;strong&gt;1.4 Describe information hiding (using private attributes and methods), encapsulation, and exposing object functionality using public methods; and describe the JavaBeans conventions for setter and getter methods.&lt;/strong&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Encapsulation&lt;/strong&gt; uses object to store related data and method together and enforces &lt;strong&gt;Information Hiding&lt;/strong&gt; concept. It allows objects interactions while hiding the implementation details. Developer ends up with better maintainable codes. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Access modifiers&lt;/strong&gt; are the keywords that determine the accessibility of the class, methods and instance variables. Unauthorized access leads to program compilation error. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;3 Types of Access Modifiers:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Private&lt;/strong&gt; - Can only be accessed within the same class (not by subclass) and it is most restrictive.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Default (package-private)&lt;/strong&gt; - Can be accessed within the same package. No keyword and it is used when the access modifier keyword is omitted. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Protected&lt;/strong&gt; - Can be accessed within the same package and also by its subclass outside of the package.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Public&lt;/strong&gt; - No restriction on its accessibility&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Instance variable is usually set as private while public class methods such as &lt;strong&gt;Setters&lt;/strong&gt; and&lt;strong&gt; Getters&lt;/strong&gt; are used to interact with the outside world. &lt;strong&gt;JavaBeans naming convention&lt;/strong&gt; is also used in the public class methods. In Setters method, it starts with a lowercase &lt;em&gt;set&lt;/em&gt;, followed by the variable name (first letter capitalized) with no spaces. Getters method use the same convention but starts with a lowercase &lt;em&gt;get&lt;/em&gt;. However, there is an exeption when a boolean value is returned. In this case, &lt;em&gt;is&lt;/em&gt; is used rather than &lt;em&gt;get&lt;/em&gt;. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-2119859997279268148?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/2119859997279268148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/14-fundamental-object-oriented-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/2119859997279268148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/2119859997279268148'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/14-fundamental-object-oriented-concepts.html' title='1.4: Fundamental Object-Oriented Concepts'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-8045164371541805332</id><published>2009-10-11T10:13:00.004+08:00</published><updated>2009-10-27T13:04:48.078+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='API'/><category scheme='http://www.blogger.com/atom/ns#' term='Documentation'/><title type='text'>To Use Java SE API Documentation</title><content type='html'>&lt;strong&gt;Application Programming Interface (API)&lt;/strong&gt; contains Java classes that are handy in building Java applications. &lt;strong&gt;Java™ Platform, Standard Edition 6 - API Specification&lt;/strong&gt; can be viewed &lt;a href="http://java.sun.com/javase/6/docs/api/index.html"&gt;online&lt;/a&gt; on the Sun Microsystem website or can be viewed offline.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To download Java™ Platform, Standard Edition 6 - API Specification:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Access the &lt;a href="http://java.sun.com/javase/downloads/index.jsp#docs"&gt;Java Download&lt;/a&gt; section of the Sun Microsystem website&lt;/li&gt;&lt;li&gt;Under the &lt;strong&gt;Additional Resources&lt;/strong&gt; section, click on the &lt;a href="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u10-docs-oth-JPR@CDS-CDS_Developer"&gt;Download&lt;/a&gt; button for &lt;em&gt;Java SE 6 Documentation&lt;/em&gt;&lt;/li&gt;&lt;li&gt;Under the &lt;strong&gt;Java SE Development Kit Documentaion 6&lt;/strong&gt; webpage, select the &lt;em&gt;Language&lt;/em&gt;, tick on the &lt;em&gt;I agree to the  Java SE Development Kit Documentation 6 License Agreement&lt;/em&gt; checkbox and click on the &lt;em&gt;Continue&lt;/em&gt; button&lt;/li&gt;&lt;li&gt;Under the &lt;strong&gt;Download Java SE Development Kit Documentation 6 for Documentation, English&lt;/strong&gt; webpage, click on the &lt;em&gt;jdk-6u10-docs.zip&lt;/em&gt; file (56.16 MB) to download the Zip file directly or via the &lt;em&gt;Sun Download Manager&lt;/em&gt; tool&lt;/li&gt;&lt;/ul&gt;&lt;strong&gt;To install Java™ Platform, Standard Edition 6 - API Specification:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Unzip the downloaded &lt;em&gt;jdk-6u10-docs&lt;/em&gt; file&lt;/li&gt;&lt;li&gt;Access the &lt;em&gt;index.html&lt;/em&gt; file in the &lt;em&gt;jdk-6u10-docs&gt; docs&lt;/em&gt; folder&lt;/li&gt;&lt;li&gt;Under the &lt;strong&gt;JDKTM 6 Documentation&lt;/strong&gt; webpage, select the &lt;em&gt;API, Language, and VM Specs&lt;/em&gt; tab&lt;/li&gt;&lt;li&gt;Under the &lt;strong&gt;API, Language, and VM Specs&lt;/strong&gt; section, the &lt;em&gt;Java Platform API Specification&lt;/em&gt; is available for selection for further offline viewving&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/3879579922328804534-8045164371541805332?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/8045164371541805332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/to-use-java-se-api-documentation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8045164371541805332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8045164371541805332'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/to-use-java-se-api-documentation.html' title='To Use Java SE API Documentation'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-1008814679708981643</id><published>2009-10-08T08:21:00.008+08:00</published><updated>2009-10-31T16:29:19.779+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compilation'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Execution'/><title type='text'>Java Program Compilation and Execution via DOS Command Prompt</title><content type='html'>Activate the &lt;strong&gt;DOS Command Prompt&lt;/strong&gt; in Windows Vista environment via the Windows button at the Desktop: &lt;em&gt;All Programs&lt;/em&gt;&gt; &lt;em&gt;Accessories&lt;/em&gt;&gt; &lt;em&gt;Command Prompt&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To compile Java Program:&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#000099;"&gt;C:\javac JavaProgram.java&lt;programname.java&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To execute Java Program:&lt;br /&gt;&lt;/strong&gt;&lt;span style="color:#000099;"&gt;&lt;em&gt;C:\java JavaProgram&lt;programname&gt;&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Java is a case-sensitive programming language, inclusive of its filenames. Do remember to set the &lt;a href="http://jessicajava.blogspot.com/2009/09/to-set-command-path-in-windows-vista.html"&gt;Command Path&lt;/a&gt; and &lt;a href="http://jessicajava.blogspot.com/2009/10/to-set-class-path-in-windows-vista.html"&gt;Class Path&lt;/a&gt; in your Operating System environment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-1008814679708981643?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/1008814679708981643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-program-compilation-and-execution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1008814679708981643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1008814679708981643'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/java-program-compilation-and-execution.html' title='Java Program Compilation and Execution via DOS Command Prompt'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-6596788870126832156</id><published>2009-10-06T09:15:00.019+08:00</published><updated>2009-10-26T15:20:28.566+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UML'/><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>1.3: Fundamental Object-Oriented Concepts</title><content type='html'>&lt;strong&gt;1.3 Describe, compare, and contrast class compositions, and associations (including multiplicity: (one-to-one, one-to-many, and many-to-many), and association navigation.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;p&gt;&lt;strong&gt;Composition and Association&lt;/strong&gt; describe a class relationship which is formed between 2 objects with reference to the other. The reference is usually stored as instance variable and can be in 1 direction or bidirectional. &lt;/p&gt;&lt;p&gt;An &lt;strong&gt;association relationship&lt;/strong&gt; is a weak relationship of 2 objects where neither has direct dependency on the other for logical meaning. In other words, if the relationship is lost, both objects still retain the same meaning as they previously possesed. &lt;/p&gt;&lt;p&gt;A &lt;strong&gt;composition relationship&lt;/strong&gt; has a stronger tie than the association relationship. Composition means 1 object is composed (depends on) of another object or multiple objects. If the relationship is lost, the logical meaning of the objects will be lost or significantly altered. Normally, it is required to manage the objects life cycle. &lt;/p&gt;&lt;p&gt;4 Types of &lt;strong&gt;Class Relationships&lt;/strong&gt;:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Direct Association&lt;/li&gt;&lt;li&gt;Composition Association&lt;/li&gt;&lt;li&gt;Aggregation Association&lt;/li&gt;&lt;li&gt;Temporary Association&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;strong&gt;Direct Association&lt;/strong&gt; describes a &lt;em&gt;has-a&lt;/em&gt; relationship. It is associated with association relationship due to its weak relationship. This tends to be the default association when nothing else can accurately describe the relationship. &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 57px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5396799197139967314" border="0" alt="" src="http://2.bp.blogspot.com/_3gEnZQ63_68/SuVIRr2kHVI/AAAAAAAAAXU/3I4gHcGTcHk/s400/Direct+Association.png" /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;Composition Association&lt;/strong&gt; is associated with composition relationship due to its strong relationship. It is described as &lt;em&gt;composed-of&lt;/em&gt; relationship. The containing object is responsible to manage the life cycle of the internal object. In other words, the containing object must make reference to the internal object else the Java Virtual Machine (JVM) will destroy it. If the containing object is destroyed, any referenced objects will be automatically destroyed as well.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 49px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5396799476465834754" border="0" alt="" src="http://1.bp.blogspot.com/_3gEnZQ63_68/SuVIh8bCmwI/AAAAAAAAAXc/OxmJu5tCuOA/s400/Composition+Association.png" /&gt; &lt;br /&gt;&lt;p&gt;&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;Aggregation Association&lt;/strong&gt; represents a &lt;em&gt;part-of&lt;/em&gt; the whole relationship. It can still retain its own meaning independently eventhough the relationship is lost. Neither object depends on the other for its existence. It is generalized as an association relationship.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 53px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5396800112311643010" border="0" alt="" src="http://2.bp.blogspot.com/_3gEnZQ63_68/SuVJG9Ifq4I/AAAAAAAAAXk/eFDEVuC0n7k/s400/Aggregation+Association.png" /&gt;&lt;/p&gt;&lt;br /&gt;&lt;strong&gt;Temporary Association&lt;/strong&gt; is also known as dependency. Typically, a temporary will be an object used as a local variable, return value or method parameter. It is the weakest form of association relationship and does not persist for the entire life cycle of the object. &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 110px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5396800426144778802" border="0" alt="" src="http://1.bp.blogspot.com/_3gEnZQ63_68/SuVJZOQJSjI/AAAAAAAAAXs/Gl7xpyZ6bMs/s400/Temporary+Association.png" /&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Multiplicity&lt;/strong&gt; exists in every object relationship which refers to the number of objects used as part of a relationship. &lt;/p&gt;&lt;p&gt;3 Types of &lt;strong&gt;Relationship Multiplicity&lt;/strong&gt;:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;1-to-1&lt;/li&gt;&lt;li&gt;1-to-Many&lt;/li&gt;&lt;li&gt;Many-to-Many&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;A &lt;strong&gt;1-to-1&lt;/strong&gt; relationship is where 1 object contains a reference to another object. All 4 association relationships may be valid. &lt;/p&gt;&lt;p&gt;A &lt;strong&gt;1-to-Many&lt;/strong&gt; relationship is where 1 object contains reference to a group of like objects which are normally stored in an array or a collection. A Many-to-1 relationship is also possible. All 4 association relationships may be valid. &lt;/p&gt;&lt;p&gt;A &lt;strong&gt;Many-to-Many&lt;/strong&gt; relationship is only possible for weak associations, namely aggregation, direct and temporary. It is not required to have an equal number of objects on each side of the relationship.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Association Navigation&lt;/strong&gt; refers to the direction in which a relationship can be traveled. An object that is contained within another object is said to be navigable if the containing object has methods for accessing the inner object. Its relationship can be either in 1 direction or bidirectional. &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-6596788870126832156?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/6596788870126832156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/13-fundamental-object-oriented-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6596788870126832156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6596788870126832156'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/13-fundamental-object-oriented-concepts.html' title='1.3: Fundamental Object-Oriented Concepts'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3gEnZQ63_68/SuVIRr2kHVI/AAAAAAAAAXU/3I4gHcGTcHk/s72-c/Direct+Association.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-5640036394806823203</id><published>2009-10-02T08:12:00.003+08:00</published><updated>2009-10-25T17:09:56.369+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Class Path'/><title type='text'>To Set Class Path in Windows Vista</title><content type='html'>The &lt;strong&gt;Class Path&lt;/strong&gt; tells the Windows Operating System where to locate all the Java Classes that are required by &lt;strong&gt;Java Runtime Environment (JRE)&lt;/strong&gt; to execute a program. The Class Path for most systems include the current directory by default. However, if the Java Classes reside in a different directory, you may want to add that to the Class Path in order to avoid changing the current directory at DOS Prompt command to the directory that contains the Java Class files for each Java program execution.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To Set Class Path in Windows Vista:&lt;/strong&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Access &lt;em&gt;Windows&lt;/em&gt; button in the &lt;em&gt;Windows Desktop&lt;/em&gt;&gt; &lt;em&gt;Control Panel&lt;/em&gt;&gt; &lt;em&gt;System and Maintenance&lt;/em&gt;&gt; &lt;em&gt;System&lt;/em&gt;&gt; &lt;em&gt;Advanced system settings&lt;/em&gt; and click on the &lt;em&gt;Continue&lt;/em&gt; button when the &lt;em&gt;User Account Control&lt;/em&gt; window pops up&lt;/li&gt;&lt;li&gt;Under the &lt;em&gt;System Properties&lt;/em&gt; window, select the &lt;em&gt;Advanced&lt;/em&gt; tab and click on the &lt;em&gt;Environment Variables&lt;/em&gt; button&lt;/li&gt;&lt;li&gt;Under the &lt;em&gt;Environment Variables&lt;/em&gt; window, select CLASSPATH variable in the &lt;em&gt;System Variables&lt;/em&gt; section and click on the &lt;em&gt;Edit&lt;/em&gt; button &lt;/li&gt;&lt;li&gt;Under the &lt;em&gt;Edit System Variable&lt;/em&gt; window, adds a semicolon ( &lt;em&gt;;&lt;/em&gt; ) to the end of the existing &lt;em&gt;Variable value&lt;/em&gt; and then adds the path for the Java Classes to the list ( &lt;em&gt;C:\java\classes;&lt;/em&gt; )&lt;/li&gt;&lt;/ol&gt;You may confirm that the above Class Path is set correctly by typing &lt;em&gt;set&lt;/em&gt; at the DOS Command Prompt. &lt;em&gt;The C:\java\classes;&lt;/em&gt; should be visible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-5640036394806823203?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/5640036394806823203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/10/to-set-class-path-in-windows-vista.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5640036394806823203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5640036394806823203'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/10/to-set-class-path-in-windows-vista.html' title='To Set Class Path in Windows Vista'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-3740799485432443320</id><published>2009-09-30T11:38:00.009+08:00</published><updated>2009-10-25T17:10:34.866+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Command Path'/><title type='text'>To Set Command Path in Windows Vista</title><content type='html'>Setting up the &lt;strong&gt;Command Path&lt;/strong&gt; in the Windows Vista environment make it easier to compile and execute the Java programs. Instead of having to type the full command path (&lt;em&gt;\Program Files\jdk1.6.0\bin\javac&lt;/em&gt;) for each program compilation or execution, you just need to type the &lt;em&gt;javac&lt;/em&gt; command at DOS Command Prompt. The Command Path on a Windows environment tells the Windows where to look for the commands that it is told to execute.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To Set Command Path in Windows Vista:&lt;/strong&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Access &lt;em&gt;Windows&lt;/em&gt; button in the &lt;em&gt;Windows Desktop&lt;/em&gt;&gt; &lt;em&gt;Control Panel&lt;/em&gt;&gt; &lt;em&gt;System and Maintenance&lt;/em&gt;&gt; &lt;em&gt;System&lt;/em&gt;&gt; &lt;em&gt;Advanced system settings&lt;/em&gt; and click on the &lt;em&gt;Continue&lt;/em&gt; button when the &lt;em&gt;User Account Control&lt;/em&gt; window pops up&lt;/li&gt;&lt;li&gt;Under the &lt;em&gt;System Properties&lt;/em&gt; window, select the &lt;em&gt;Advanced&lt;/em&gt; tab and click on the &lt;em&gt;Environment Variables&lt;/em&gt; button&lt;/li&gt;&lt;li&gt;Under the &lt;em&gt;Environment Variables&lt;/em&gt; window, select &lt;em&gt;Path&lt;/em&gt; variable in the &lt;em&gt;System Variables&lt;/em&gt; section and click on the &lt;em&gt;Edit&lt;/em&gt; button &lt;/li&gt;&lt;li&gt;Under the &lt;em&gt;Edit System Variable&lt;/em&gt; window, adds a semicolon ( &lt;em&gt;;&lt;/em&gt; ) to the end of the existing &lt;em&gt;Variable value&lt;/em&gt; and then adds the path for the bin subdirectory of JDK 1.6 to the list ( &lt;em&gt;C:\Program Files\Java\jdk1.6.0_16\bin&gt;;&lt;/em&gt; )&lt;/li&gt;&lt;/ol&gt;You may confirm that the above Command Path is set correctly by typing &lt;em&gt;path&lt;/em&gt; at the DOS Command Prompt. The &lt;em&gt;C:\Program Files\Java\jdk1.6.0_16\bin&gt;;&lt;/em&gt; should be visible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-3740799485432443320?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/3740799485432443320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/to-set-command-path-in-windows-vista.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/3740799485432443320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/3740799485432443320'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/to-set-command-path-in-windows-vista.html' title='To Set Command Path in Windows Vista'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-4391324665033829628</id><published>2009-09-28T13:28:00.004+08:00</published><updated>2009-10-25T13:36:28.700+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Question and Answer'/><category scheme='http://www.blogger.com/atom/ns#' term='Inheritance'/><title type='text'>Q&amp;A: Inherited Method</title><content type='html'>&lt;strong&gt;Question: &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;May I know if Class B inherits from Class A, will the private methods in Class A be extended to Class B too?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Answer by Priety Sharma:&lt;/strong&gt;&lt;br /&gt;I think by &lt;em&gt;&lt;strong&gt;methods in Class A be extended to Class B&lt;/strong&gt;&lt;/em&gt; You intend to say that are they accessible from Class B. &lt;br /&gt;&lt;br /&gt;No, private methods are accessible only from within that class.&lt;br /&gt;&lt;br /&gt;If you want these methods of Class A to be accessible from its subclass i.e. Class B in this case then you could make them protected. This will allow a subclass residing outside the package of its superclass to access these methods.&lt;br /&gt;&lt;br /&gt;If the subclass is in the same package as the super class then default access for the method will do. That is specifing no access modifier before the method signature.&lt;br /&gt;&lt;br /&gt;If you want more info then search for java access modifiers for methods on the net:&lt;br /&gt;It will give you details about the modifiers: public , protected , default and private.&lt;br /&gt;&lt;br /&gt;This should clarify all your doubts.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Answer by Campbell Ritchie:&lt;/strong&gt;&lt;br /&gt;If these methods were private, it was in order that they be not accessible. There was surely a good reason for making the private; don't change the access modifier.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-4391324665033829628?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/4391324665033829628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/q-inherited-method.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4391324665033829628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4391324665033829628'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/q-inherited-method.html' title='Q&amp;A: Inherited Method'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-7292639356526113596</id><published>2009-09-26T09:03:00.011+08:00</published><updated>2009-10-25T17:21:23.678+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Class Type'/><category scheme='http://www.blogger.com/atom/ns#' term='Inheritance'/><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>1.2: Fundamental Object-Oriented Concepts</title><content type='html'>&lt;strong&gt;1.2 Describe, compare, and contrast concrete classes, abstract classes, and interfaces, and how inheritance applies to them.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;A &lt;strong&gt;concrete class &lt;/strong&gt;is a regular class that can be instantiated.&lt;/p&gt;&lt;p&gt;An &lt;strong&gt;abstract class&lt;/strong&gt; cannot be instantiated and must be extended. It may also contain abstract methods which are not implemented. The &lt;em&gt;abstract&lt;/em&gt; keyword is used to indicate that it is an abstract class. They have valid method signature ut must be overriden and implemented in the calss that extends the abstract class. The purpose of an abstract method is to define the required functionality that any subclass must have. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Interfaces&lt;/strong&gt; are used to define a required set of functionalities from that classes that implement the interface. Unlike inheriting from base classes, a class is free to implement as many interfaces as needed by using the &lt;em&gt;extends&lt;/em&gt; keyword, followed by a comma-delimited list of interfaces. A class that implements an interface is required to implement all of the methods defined in the interface. Any unimplemented methods will result in compilation errors. Generally, interfaces are used to create a standard public interface for similar items. The &lt;em&gt;interface&lt;/em&gt; keyword is used to specify that it is an interface while the &lt;em&gt;implements&lt;/em&gt; keyword is used to implement an interface. &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Inheritance&lt;/strong&gt; allows general classes to be created and then be used as the foundation for multiple unique classes. In order words, unique classes are allowed to inherit the methods and instance variables of more general classes. Inheritance reduces codes redundancy and makes codes more maintainable. Inheritance enables Polymorphism to be used. A class can only extend 1 class where multiple inheritance is impossible. The extends keyword is used to inherits from a &lt;strong&gt;superclass&lt;/strong&gt; to become a &lt;strong&gt;subclass&lt;/strong&gt;. The subclass may then adds new methods and instance variables that are unique to the subclass.&lt;/p&gt;&lt;p&gt;A class that extends another class may &lt;strong&gt;override &lt;/strong&gt;any inherited method by defining another method of the same name with the same arguments as in the superclass. A class may override all, none or only some of the methods it inherits from a super class. A subclass may also execute the superclass overriden method by using the super keyword (opposite of this keyword). &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Object&lt;/strong&gt; is the base class in Java programming language and does not need to be explicitly extended with the &lt;em&gt;extends&lt;/em&gt; keyword. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-7292639356526113596?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/7292639356526113596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/12-fundamental-object-oriented-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/7292639356526113596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/7292639356526113596'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/12-fundamental-object-oriented-concepts.html' title='1.2: Fundamental Object-Oriented Concepts'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-8719252314256370039</id><published>2009-09-23T09:29:00.004+08:00</published><updated>2009-10-21T20:10:57.613+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Development Kit'/><category scheme='http://www.blogger.com/atom/ns#' term='JDK'/><category scheme='http://www.blogger.com/atom/ns#' term='Directories'/><category scheme='http://www.blogger.com/atom/ns#' term='Files'/><title type='text'>Java Development Kit Directories and Files</title><content type='html'>&lt;strong&gt;Java Development Kit (JDK)&lt;/strong&gt; is installed under the &lt;strong&gt;C:\Program Files\Java\jdk1.6.0&lt;/strong&gt; directory in the Microsoft Windows environment. Under the installation main directory, there are some important directories and files:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Directories:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;bin&lt;/strong&gt; - Java Development tools and commands&lt;/li&gt;&lt;li&gt;&lt;strong&gt;jre&lt;/strong&gt; - Java Runtime Environment (JRE) which includes Java Interpreter&lt;/li&gt;&lt;li&gt;&lt;strong&gt;lib&lt;/strong&gt; - Additional libraries of code used by the development tools&lt;/li&gt;&lt;li&gt;&lt;strong&gt;docs&lt;/strong&gt; - Java documentation for offline viewing&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;strong&gt;Files:&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;readme.html&lt;/strong&gt; - A webpage that specifies important information on Java Standard Edition (JSE) such as System Requirements, Features and Document Links&lt;/li&gt;&lt;li&gt;&lt;strong&gt;src.zip&lt;/strong&gt; - A zip file that contains the source code for Java Standard Edition API (Application Programming Interface) &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/3879579922328804534-8719252314256370039?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/8719252314256370039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-development-kit-directories-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8719252314256370039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/8719252314256370039'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-development-kit-directories-and.html' title='Java Development Kit Directories and Files'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-5467810376503993204</id><published>2009-09-20T08:13:00.004+08:00</published><updated>2009-10-21T19:41:23.797+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Development Kit'/><category scheme='http://www.blogger.com/atom/ns#' term='JDK'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Java Development Kit Installation</title><content type='html'>&lt;strong&gt;Java Development Kit (JDK)&lt;/strong&gt; needs to be installed on the Computer System before Java programming language can be used to develop applications. JDK can be obtained from the &lt;strong&gt;Download - Java 2 Standard Section &lt;/strong&gt;section in the &lt;a href="http://www.sun.com/"&gt;Sun Microsystems &lt;/a&gt;website. You may download the current &lt;strong&gt;JDK 6 Update 16&lt;/strong&gt; version which is about 73.5MB. You will also be prompted to specify the Operating System platform that the JDK will be installed. You may click on the &lt;strong&gt;jdk-6u16-windows-i586.exe &lt;/strong&gt;filename for a direct download or you may use the Sun Download Manager (SDM) tool. Upon completion of the JDK download, click on the executable filename and respond to the dialog boxes. In the Microsoft Windows Operating System, the default installation directory is &lt;strong&gt;C:\Program Files\Java\jdk1.6.0&lt;/strong&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-5467810376503993204?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/5467810376503993204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-development-kit-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5467810376503993204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/5467810376503993204'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-development-kit-installation.html' title='Java Development Kit Installation'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-6485879902566601226</id><published>2009-09-18T09:11:00.011+08:00</published><updated>2009-10-23T12:05:32.950+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='Enumerations'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Primitives'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><category scheme='http://www.blogger.com/atom/ns#' term='Objects'/><title type='text'>1.1: Fundamental Object-Oriented Concepts</title><content type='html'>&lt;strong&gt;1.1 Describe, compare, and contrast primitives (integer, floating point, boolean, and character), enumeration types, and objects.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;An application consists of &lt;strong&gt;Variables&lt;/strong&gt; and &lt;strong&gt;Program Codes&lt;/strong&gt; that manipulates the Variables. &lt;strong&gt;Primitives&lt;/strong&gt; are used to store &lt;strong&gt;Basic Data Types&lt;/strong&gt; which are used to create more &lt;strong&gt;Advanced Objects Data Types&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Java Primitives include &lt;em&gt;int&lt;/em&gt; (&lt;strong&gt;integer&lt;/strong&gt;), &lt;em&gt;float&lt;/em&gt; (&lt;strong&gt;floating point&lt;/strong&gt;), &lt;em&gt;boolean&lt;/em&gt; (&lt;strong&gt;boolean&lt;/strong&gt;), &lt;em&gt;char&lt;/em&gt; (&lt;strong&gt;character&lt;/strong&gt;), &lt;em&gt;byte&lt;/em&gt;, &lt;em&gt;short&lt;/em&gt;, &lt;em&gt;long&lt;/em&gt; and &lt;em&gt;double&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;In program source code, &lt;em&gt;Integer&lt;/em&gt; refers to an object while &lt;em&gt;int&lt;/em&gt; refers to a primitive that contains an integer. Primitive variables can only be set of read and also be accessed much faster than objects.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;int&lt;/em&gt; (&lt;strong&gt;Integer&lt;/strong&gt;) stores a whole number and has a default value of 0 which occupies 32 bits in memory. It can stores a 32-bit signed two's complement non-floating point number. The maximum and minimum values are 2,417,483,647 and -2,417,483,648 respectively.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;float&lt;/em&gt; (&lt;strong&gt;floating point&lt;/strong&gt;) stores decimal values with default value of 0.0f. It requires a 32-bits of memory with maximum and minumum values of 3.4e(+38) and 1.4e(-45) respectively.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;boolean&lt;/em&gt; (&lt;strong&gt;boolean&lt;/strong&gt;) stores a 1-bit value of &lt;em&gt;true&lt;/em&gt; or &lt;em&gt;false&lt;/em&gt; (default value).&lt;br /&gt;&lt;br /&gt;&lt;em&gt;char&lt;/em&gt; (&lt;strong&gt;character&lt;/strong&gt;) stores a single 16-bit Unicode character and requires 16-bits of memory. It has a default value of '\u0000' or 0. The maximum and minimum values are '\uffff' (65,535) and '\u0000' (0). It is the only unsigned Java primitive.&lt;br /&gt;&lt;br /&gt;Java has a built-in wrapper class for each primitive which converts a primitive to an object. The &lt;strong&gt;Wrapper Classes&lt;/strong&gt; are Integer, &lt;em&gt;Float&lt;/em&gt;, &lt;em&gt;Boolean&lt;/em&gt; and &lt;em&gt;Character&lt;/em&gt;. As of J2SE 5.0, conversion between primitive and wrapper class is automatically performed (autoboxing and unboxing).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Enumerations&lt;/strong&gt; are a special data type that allows for a variable to be set to predefined constants. For example, &lt;em&gt;enum TrafficLights { RED, YELLOW, GREEN }&lt;/em&gt; where &lt;em&gt;enum&lt;/em&gt; is the keyword. Object can function as enumerations but the later is more reader and reduces developer's error.&lt;br /&gt;&lt;br /&gt;Java is &lt;strong&gt;Strongly Typed&lt;/strong&gt; which means programmer needs to declare the data type of each variable expicitly. However, Java Virtual Machine (JVM) may converts the data types automatically such as placing an &lt;em&gt;int&lt;/em&gt; variable value to a &lt;em&gt;float&lt;/em&gt; variable. Developer may perform variables castings to different data types or objects by placing the new data type in parentheses in front of the variable. Data can only be cast to compatible data types else runtime exception will occur.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Naming Conventions&lt;/strong&gt; resulted in readable and better maintainable codes. Naming convention by Sun Microsystem:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Class&lt;/strong&gt; - name is to be noun; first letter be capitalised alng with each internal word after the first; short and descriptive; for example: &lt;em&gt;TrafficLight&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Variables&lt;/strong&gt; - starts with a lowercase letter with each sequential internal word to be capitalized; short and meaningful names; can use 1-letter names for temporary variables; for example: &lt;em&gt;cupContent&lt;/em&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Objects&lt;/strong&gt; consists of data and methods. &lt;strong&gt;Data&lt;/strong&gt; is the state of the object while &lt;strong&gt;Methods&lt;/strong&gt; are used to perform actions on the data. Object size is dynamic at runtime. An object must be declared like the primitive and initialised or set to a value before it can be used. &lt;/p&gt;&lt;p&gt;A &lt;strong&gt;Class&lt;/strong&gt; is a blueprint used to create Object by using the &lt;em&gt;new&lt;/em&gt; keyword in the program source code. During program runtime, Java Virtual Machine (JVM) recognises the new keyword and instantiate an object. For example, &lt;em&gt;Train fastTrain = new Train(100, true)&lt;/em&gt; where &lt;em&gt;Train&lt;/em&gt; is the class and &lt;em&gt;fastTrain&lt;/em&gt; is the object created.&lt;/p&gt;&lt;p&gt;An &lt;strong&gt;Array&lt;/strong&gt; is a series of variables (either primitive data types or objects) of the same type that can accessed by an index , starting from 0. An array is always considered as an object eventhough it is an array of primitives. If an array is used in a loop, developer needs to watch out for array index that is out of bounds. An out of bounds index will cause the Java Virtual Machine (JVM) to throw an exception at runtime. Once the array size is declared, it cannot be changed. In other words, array size is not dynamic. For example, int[] electionResult = new int[100] . &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-6485879902566601226?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/6485879902566601226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/11-fundamental-object-oriented-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6485879902566601226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/6485879902566601226'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/11-fundamental-object-oriented-concepts.html' title='1.1: Fundamental Object-Oriented Concepts'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-7923450735603355294</id><published>2009-09-15T09:59:00.006+08:00</published><updated>2009-10-20T15:51:25.655+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Compilation'/><category scheme='http://www.blogger.com/atom/ns#' term='Interpretation'/><title type='text'>Java Code Compilation and Interpretation</title><content type='html'>A programmer uses a &lt;strong&gt;Text Editor&lt;/strong&gt; like Notepad and Textpad or &lt;strong&gt;IDE (Integrated Development Environment)&lt;/strong&gt; to enter, edit and save the &lt;strong&gt;Program Source Code&lt;/strong&gt;. The program source code file (&lt;em&gt;program.java)&lt;/em&gt; is translated by the &lt;strong&gt;Java Compiler&lt;/strong&gt; into a platform-independent format, known as &lt;strong&gt;Java Bytecodes&lt;/strong&gt; (&lt;em&gt;program.class&lt;/em&gt;). The &lt;strong&gt;Java Interpreter&lt;/strong&gt; which is a part of the &lt;strong&gt;Java Virtual Machine (JVM)&lt;/strong&gt; executes the Java Bytecodes. Unique JVMs are available for all major Operating Systems such as Windows, Solaris, Linux and Macintosh.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-7923450735603355294?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/7923450735603355294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-code-compilation-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/7923450735603355294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/7923450735603355294'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-code-compilation-and.html' title='Java Code Compilation and Interpretation'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-1642548801164604332</id><published>2009-09-13T13:28:00.006+08:00</published><updated>2009-10-20T13:47:14.212+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlet'/><category scheme='http://www.blogger.com/atom/ns#' term='Application'/><category scheme='http://www.blogger.com/atom/ns#' term='Applet'/><title type='text'>3 Types of Java Programs</title><content type='html'>Java programs can be &lt;strong&gt;Application&lt;/strong&gt;, &lt;strong&gt;Applet&lt;/strong&gt; or &lt;strong&gt;Servlet&lt;/strong&gt;. Application is normally a program that you can execute on your Computer Desktop. An Applet is a unique type of web-based application that can be downloaded from a Web Server and executed inside a Java-enabled browser. Applets can also be distributed via the Internet or Intranet. A Servlet is a unique type of Java application that executes on the Server and can be called by a Client like a Web Browser. A Web Browser calls a Servlet where the Server executes the program logic and returns the result to the Web Browser in the form of a HTML webpage. As processing is performed on the Server, no plugin is required on the Client (Web Browser) unlike an Applet. &lt;strong&gt;JavaServer Pages (JSPs)&lt;/strong&gt; make it easier to display the result of a Servlet on the Web Browser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-1642548801164604332?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/1642548801164604332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/3-types-of-java-programs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1642548801164604332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/1642548801164604332'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/3-types-of-java-programs.html' title='3 Types of Java Programs'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-3865754210129388317</id><published>2009-09-11T09:29:00.001+08:00</published><updated>2009-10-20T12:51:43.797+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Timeline'/><title type='text'>Java Timeline</title><content type='html'>&lt;strong&gt;1996 January&lt;/strong&gt;&lt;br /&gt;Java Development Kit 1.0 (JDK 1.0)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1997 February&lt;/strong&gt;&lt;br /&gt;Java Development Kit 1.1 (JDK 1.1)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1998 December&lt;/strong&gt;&lt;br /&gt;Java 2 Platform (SDK 1.2)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1999 August&lt;/strong&gt;&lt;br /&gt;Java 2 Platform Standard Edition (J2SE)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1999 December&lt;/strong&gt;&lt;br /&gt;Java 2 Platform Enterprise Edition (J2EE)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2000 May&lt;/strong&gt;&lt;br /&gt;Java Platform Standard Edition (SDK 1.3)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2002 February&lt;/strong&gt;&lt;br /&gt;Java Platform Standard Edition (SDK 1.4)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2004 September&lt;/strong&gt;&lt;br /&gt;Java Platform Standard Edition 5.0 (SDK 1.5)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2006 December&lt;/strong&gt;&lt;br /&gt;Java Platform Standard Edition 6.0 (SDK 1.6)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Early 2010&lt;/strong&gt;&lt;br /&gt;Java Platform Standard Edition 7.0 (SDK 1.7)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-3865754210129388317?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/3865754210129388317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-timeline.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/3865754210129388317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/3865754210129388317'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-timeline.html' title='Java Timeline'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-7722811038802446371</id><published>2009-09-08T10:12:00.004+08:00</published><updated>2009-10-31T13:01:55.289+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>Section 1: Fundamental Object-Oriented Concepts</title><content type='html'>&lt;a href="http://jessicajava.blogspot.com/2009/09/11-fundamental-object-oriented-concepts.html"&gt;1.1 Describe, compare, and contrast primitives (integer, floating point, boolean, and character), enumeration types, and objects. &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://jessicajava.blogspot.com/2009/09/12-fundamental-object-oriented-concepts.html"&gt;1.2 Describe, compare, and contrast concrete classes, abstract classes, and interfaces, and how inheritance applies to them.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://jessicajava.blogspot.com/2009/10/13-fundamental-object-oriented-concepts.html"&gt;1.3 Describe, compare, and contrast class compositions, and associations (including multiplicity: (one-to-one, one-to-many, and many-to-many), and association navigation.&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://jessicajava.blogspot.com/2009/10/14-fundamental-object-oriented-concepts.html"&gt;1.4 Describe information hiding (using private attributes and methods), encapsulation, and exposing object functionality using public methods; and describe the JavaBeans conventions for setter and getter methods.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://jessicajava.blogspot.com/2009/10/15-fundamental-object-oriented-concepts.html"&gt;1.5 Describe polymorphism as it applies to classes and interfaces, and describe and apply the "program to an interface" principle.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-7722811038802446371?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/7722811038802446371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/section-1-fundamental-object-oriented.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/7722811038802446371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/7722811038802446371'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/section-1-fundamental-object-oriented.html' title='Section 1: Fundamental Object-Oriented Concepts'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-4968172470617831591</id><published>2009-09-06T08:16:00.003+08:00</published><updated>2009-11-04T21:42:46.713+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>CX-310-019 SCJA Exam Objectives</title><content type='html'>&lt;a href="http://jessicajava.blogspot.com/2009/09/section-1-fundamental-object-oriented.html"&gt;Section 1: &lt;/a&gt;&lt;strong&gt;&lt;a href="http://jessicajava.blogspot.com/2009/09/section-1-fundamental-object-oriented.html"&gt;Fundamental Object-Oriented Concepts&lt;br /&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://jessicajava.blogspot.com/2009/10/section-2-uml-representation-of-object.html"&gt;Section 2: &lt;/a&gt;&lt;strong&gt;&lt;a href="http://jessicajava.blogspot.com/2009/10/section-2-uml-representation-of-object.html"&gt;UML Representation of Object-Oriented Concepts&lt;br /&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;Section 3: &lt;strong&gt;Java Implementation of Object-Oriented&lt;/strong&gt; &lt;strong&gt;Concepts&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Section 4: &lt;strong&gt;Algorithm Design and Implementation&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Section 5: &lt;strong&gt;Java Development Fundamentals&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Section 6: &lt;strong&gt;Java Platforms and Integration Technologies&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Section 7: &lt;strong&gt;Client Technologies&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Section 8: &lt;strong&gt;Server Technologies&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-4968172470617831591?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/4968172470617831591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/cx-310-019-scja-exam-objectives.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4968172470617831591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4968172470617831591'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/cx-310-019-scja-exam-objectives.html' title='CX-310-019 SCJA Exam Objectives'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-3687474266779282982</id><published>2009-09-03T09:03:00.000+08:00</published><updated>2009-10-20T12:49:13.539+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CX-310-019'/><category scheme='http://www.blogger.com/atom/ns#' term='SCJA'/><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>CX-310-019 SCJA Exam Format</title><content type='html'>Exam Name: (&lt;strong&gt;CX-310-019) Sun Certified Java Associate, Version 1.0&lt;/strong&gt;&lt;br /&gt;Delivered at: &lt;strong&gt;Authorized Prometric Testing Centers&lt;/strong&gt;&lt;br /&gt;Prerequisites:&lt;strong&gt; None&lt;/strong&gt;&lt;br /&gt;Exam type: &lt;strong&gt;Multiple choice and Drag and Drop&lt;/strong&gt;&lt;br /&gt;Number of questions:&lt;strong&gt; 51&lt;/strong&gt;&lt;br /&gt;Pass score: &lt;strong&gt;68% (35 of 51 questions)&lt;/strong&gt;&lt;br /&gt;Time limit: &lt;strong&gt;115 minutes &lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-3687474266779282982?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/3687474266779282982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/cx-310-019-scja-exam-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/3687474266779282982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/3687474266779282982'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/cx-310-019-scja-exam-format.html' title='CX-310-019 SCJA Exam Format'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3879579922328804534.post-4925838448177437055</id><published>2009-09-01T10:13:00.000+08:00</published><updated>2009-10-20T12:48:33.389+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Certification'/><title type='text'>Java Certifications</title><content type='html'>Java is basically spilt into 3 Java worlds, namely &lt;strong&gt;SE (Standard Edition)&lt;/strong&gt;, &lt;strong&gt;EE (Enterprise Edition)&lt;/strong&gt; and &lt;strong&gt;ME (Micro Edition)&lt;/strong&gt;. SE is the basic Java development and runtime environment. It is mainly used for desktop applications. EE is mainly used for enterprise applications like network distributed applications. ME is used for mobile devices applications like handphones and pdas. Java is a very flexible programming language that’s supported by other IT platforms, namely IBM and Oracle products. SUN offers a good range of certifications for IT developers of all levels, from beginners (junior developers) to advanced (architect):&lt;br /&gt;&lt;p&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 400px; DISPLAY: block; HEIGHT: 177px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5380585192194369794" border="0" alt="" src="http://3.bp.blogspot.com/_3gEnZQ63_68/SqutuYh46QI/AAAAAAAAAWY/_FBBxrEvrI0/s400/Java+Certifications.bmp" /&gt;Beginners in IT industry or project managers who need to gain an insight on Java technology are advised to pursue &lt;strong&gt;SCJA (Sun Certified Java Associate)&lt;/strong&gt; as their first Java certification. SCJA gives an fundamental knowledge on application development and software project management using Java technology. However, it is not a pre-requisite for any of the Java certifications. Experienced Object Oriented developers in other programming languages like Microsoft C Sharp may aim for &lt;strong&gt;SCJP (Sun Certified Java Programmer)&lt;/strong&gt; certification for a deeper understanding of the Java programming language. SCJP is a pre-requisite for other Java certifications: &lt;strong&gt;SCJD (Sun Certified Java Developer&lt;/strong&gt;, &lt;strong&gt;SCWCD (Sun Certified Web Component Developer)&lt;/strong&gt;, &lt;strong&gt;SCBCD (Sun Certified Business Component Developer)&lt;/strong&gt; and &lt;strong&gt;SCMAD (Sun Certified Mobile Application Developer)&lt;/strong&gt;. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3879579922328804534-4925838448177437055?l=jessicajava.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jessicajava.blogspot.com/feeds/4925838448177437055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-certifications.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4925838448177437055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3879579922328804534/posts/default/4925838448177437055'/><link rel='alternate' type='text/html' href='http://jessicajava.blogspot.com/2009/09/java-certifications.html' title='Java Certifications'/><author><name>Jessica</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_3gEnZQ63_68/SmKNMy92IMI/AAAAAAAAAUU/datGI1k0pEk/S220/Blogspot.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3gEnZQ63_68/SqutuYh46QI/AAAAAAAAAWY/_FBBxrEvrI0/s72-c/Java+Certifications.bmp' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
