<?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-37066558</id><updated>2011-11-27T17:37:16.154-08:00</updated><category term='Collection in JAVA'/><title type='text'>Computer Science</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://compu-sc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37066558/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://compu-sc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Amit Ranjan</name><uri>http://www.blogger.com/profile/08501750120817164659</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos1.blogger.com/blogger/3385/3314/1600/Image(144).jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-37066558.post-2246401483118534565</id><published>2007-03-28T05:40:00.000-07:00</published><updated>2010-04-23T04:07:33.863-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Collection in JAVA'/><title type='text'>Collection framework in Java</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;u&gt;Group of objects are handled using collection framework.&lt;/u&gt;&lt;/li&gt;&lt;li&gt;It allows different type of collections (dynamic arryas, Linked List, Trees and hash tables) to work &lt;u&gt;in a similar manner with interoperability.&lt;/u&gt;&lt;/li&gt;&lt;li&gt;Some partial implementations are provided to &lt;u&gt;create own collection.&lt;/u&gt;&lt;/li&gt;&lt;li&gt;Several implementations (such as LinkedList, HashSet and TreeSet) are provided to use.&lt;/li&gt;&lt;li&gt;Mechanisms were added that allow the integration of standard arrays into the collection framework.&lt;/li&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;!--&lt;br /&gt;google_ad_client = "pub-4068200296392764";&lt;br /&gt;/* 728x15, created 4/23/10 */&lt;br /&gt;google_ad_slot = "9774808589";&lt;br /&gt;google_ad_width = 728;&lt;br /&gt;google_ad_height = 15;&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&lt;br /&gt;src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;A interface &lt;u&gt;Iterator&lt;/u&gt; is created by collection framework which provides a means of enumerating the contents of collection.&lt;/li&gt;&lt;li&gt;Since each collection implements &lt;u&gt;Iterator&lt;/u&gt;, the elements of collection class can be accessed through the methods defined by &lt;u&gt;Iterator.&lt;/u&gt;&lt;/li&gt;&lt;li&gt;In addition to collections, the framework defines several Map interfaces and classes.&lt;/li&gt;&lt;li&gt;Maps store key/value pairs.&lt;/li&gt;&lt;li&gt;Maps are not collection but a collection-view of a map can be obtained and thus contents of a map can be accessed as collection.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The collection framework defines following Interfaces:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Collection         Top of the collection hierarchy.&lt;/li&gt;&lt;li&gt;List                    Extends Collection to handle sequnces (lists of objects)&lt;/li&gt;&lt;li&gt;Set                     Extends Collection to handle sets (contain unique elements)&lt;/li&gt;&lt;li&gt;SortedSet          Extends Set to handle sorted sets.&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li&gt;Collections that supports the methods which enable to modify the contents of it are called &lt;u&gt;modifiable&lt;/u&gt; otherwise &lt;u&gt;unmodifiable&lt;/u&gt;.&lt;/li&gt;&lt;li&gt;If such method is applied to unmodifiable collection, an UnsupportedOperationException is thrown.&lt;/li&gt;&lt;li&gt;All the build-in collections are modifiable.&lt;/li&gt;&lt;li&gt;If a collection can't be modified then &lt;u&gt;UnsupportedOperationException&lt;/u&gt; is thrown and &lt;u&gt;a ClassCastException is generated when one object is incompatible object to a collection.&lt;/u&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37066558-2246401483118534565?l=compu-sc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compu-sc.blogspot.com/feeds/2246401483118534565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37066558&amp;postID=2246401483118534565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37066558/posts/default/2246401483118534565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37066558/posts/default/2246401483118534565'/><link rel='alternate' type='text/html' href='http://compu-sc.blogspot.com/2007/03/collection-framework-in-java.html' title='Collection framework in Java'/><author><name>Amit Ranjan</name><uri>http://www.blogger.com/profile/08501750120817164659</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos1.blogger.com/blogger/3385/3314/1600/Image(144).jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37066558.post-116256087411307202</id><published>2006-11-03T05:21:00.000-08:00</published><updated>2006-11-03T05:34:34.123-08:00</updated><title type='text'>Client Server System</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="color:#660000;"&gt;Client/server describes the relationship between two computer programs in which one program, the client, makes a service request from another program, the server, which fulfills the request. Although the client/server idea can be used by programs within a single computer, it is a more important idea in a network. In a network, the client/server model provides a convenient way to interconnect programs that are distributed efficiently across different locations. Computer transactions using the client/server model are very common. For example, to check your bank account from your computer, a client program in your computer forwards your request to a server program at the bank. That program may in turn forward the request to its own client program that sends a request to a database server at another bank computer to retrieve your account balance. The balance is returned back to the bank data client, which in turn serves it back to the client in your personal computer, which displays the information for you.&lt;br /&gt;The client/server model has become one of the central ideas of network computing. Most business applications being written today use the client/server model. So does the Internet's main program, TCP/IP. In marketing, the term has been used to distinguish distributed computing by smaller dispersed computers from the "monolithic" centralized computing of mainframe computers. But this distinction has largely disappeared as mainframes and their applications have also turned to the client/server model and become part of network computing.&lt;br /&gt;In the usual client/server model, one server, sometimes called a daemon, is activated and awaits client requests. Typically, multiple client programs share the services of a common server program. Both client programs and server programs are often part of a larger program or application. Relative to the Internet, your Web browser is a client program that requests services (the sending of Web pages or files) from a Web server (which technically is called a Hypertext Transport Protocol or HTTP server) in another computer somewhere on the Internet. Similarly, your computer with TCP/IP installed allows you to make client requests for files from File Transfer Protocol (FTP) servers in other computers on the Internet. Other program relationship models included master/slave, with one program being in charge of all other programs, and peer-to-peer, with either of two programs able to initiate a transaction.&lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37066558-116256087411307202?l=compu-sc.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compu-sc.blogspot.com/feeds/116256087411307202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37066558&amp;postID=116256087411307202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37066558/posts/default/116256087411307202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37066558/posts/default/116256087411307202'/><link rel='alternate' type='text/html' href='http://compu-sc.blogspot.com/2006/11/client-server-system.html' title='Client Server System'/><author><name>Amit Ranjan</name><uri>http://www.blogger.com/profile/08501750120817164659</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos1.blogger.com/blogger/3385/3314/1600/Image(144).jpg'/></author><thr:total>0</thr:total></entry></feed>
