<?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-7955003209126272036</id><updated>2012-02-02T21:26:40.563+05:30</updated><category term='Legal'/><category term='Adobe Interview'/><category term='Frameworks'/><category term='JVM'/><category term='Data Structures'/><category term='C++ Lang'/><category term='Puzzles'/><category term='Trivia'/><category term='HR'/><category term='Tips'/><category term='Miscellaneous'/><category term='C Language'/><category term='Multithreading'/><category term='Java'/><category term='Oracle'/><category term='Algorithms'/><category term='SOA'/><category term='OS'/><category term='Archives'/><title type='text'>Geek Explains: Java, J2EE, Oracle, Puzzles, and Problem Solving!</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default?start-index=101&amp;max-results=100'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>296</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-6811507501810864003</id><published>2009-11-28T21:32:00.002+05:30</published><updated>2009-11-28T21:40:47.052+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Why String has been made immutable in Java?</title><summary type='text'>Why String has been made immutable in Java?Though, performance is also a reason (assuming you are already aware of the internal String pool maintained for making sure that the same String object is used more than once without having to create/re-claim it those many times), but the main reason why String has been made immutable in Java is 'Security'. Surprised? Let's understand why.Suppose you </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/6811507501810864003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=6811507501810864003' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/6811507501810864003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/6811507501810864003'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/11/why-string-has-been-made-immutable-in.html' title='Why String has been made immutable in Java?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7088806590404617994</id><published>2009-11-17T19:37:00.004+05:30</published><updated>2009-11-17T19:49:43.890+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Memory Leak in Java? Does 'static' cause it?</title><summary type='text'>Does 'static' cause Memory Leak in Java?What's memory leak? In simple terms, it's unused but referenced (somehow because the programmer probably unintentionally forgot to remove the references once the use of the object was over) part of the memory. Before we start discussing if 'static' can cause memory leak in Java, let me assure you that whatever you've read about Garbage Collectors in Java, </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7088806590404617994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7088806590404617994' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7088806590404617994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7088806590404617994'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/11/memory-leak-in-java-does-static-cause.html' title='Memory Leak in Java? Does &apos;static&apos; cause it?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7534973689685091555</id><published>2009-10-29T19:33:00.005+05:30</published><updated>2009-10-31T10:06:18.168+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Marker Interface in Java: what, why, uses, etc.</title><summary type='text'>What are Marker Interfaces in Java?An empty interface having no methods or fields/constants is called a marker interface or a tag interface. This of course means if the interface is extending other interfaces (directly or indirectly) then  the super interfaces must not have any inheritable member (method or field/constant) as otherwise the definition of the marker interface (an entirely empty </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7534973689685091555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7534973689685091555' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7534973689685091555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7534973689685091555'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/10/marker-interface-in-java-what-why-uses.html' title='Marker Interface in Java: what, why, uses, etc.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8507044765169525933</id><published>2009-10-13T16:40:00.004+05:30</published><updated>2009-10-13T17:11:30.974+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Connecting to an HTTP Web Service from VBA via Proxy</title><summary type='text'>Connecting to an HTTP Web Service from VBA Excel via a Proxy ServerThough MSDN suggests using stubs generated from the WSDL by MS Soap Toolkit for connecting to an HTTP Web Service from within VBA Excel, but it might not work as you would like it to, especially for a SOA-compliant web service and particularly in the cases where you need to access the service via a Proxy Server.I have used the </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8507044765169525933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8507044765169525933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8507044765169525933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8507044765169525933'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/10/connecting-to-http-web-service-from-vba.html' title='Connecting to an HTTP Web Service from VBA via Proxy'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2323970450167877437</id><published>2009-10-11T10:16:00.003+05:30</published><updated>2009-10-11T10:31:57.875+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Why wait(),notify() and notifyAll() in the Object class?</title><summary type='text'>Why wait(), notify() and notifyAll() methods have been defined in the Object class?Java concurrency model uses locks to implement mutually exclusive access to objects in a multi-threaded environment and locks are associated with every object in Java (of type 'Object'), not only with Threads.wait, notify/notifyAll methods are used by threads to communicate with each other while trying to access a </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2323970450167877437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2323970450167877437' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2323970450167877437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2323970450167877437'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/10/why-waitnotify-and-notifyall-in-object.html' title='Why wait(),notify() and notifyAll() in the Object class?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2980297509969914680</id><published>2009-08-03T21:47:00.003+05:30</published><updated>2009-08-03T22:03:48.064+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>per-thread Singleton and per-thread Logging in Java</title><summary type='text'>Usage of ThreadLocal: per-thread Singleton and per-thread LoggingShould you require a refresh of what ThreadLocals in Java are and how they work, refer to this article first. You can then proceed with the current article for understanding two of the most common uses of ThreadLocals in Java.per-thread Singleton impl using ThreadLocalSuppose you have a need of having a JDBC Connection objects per </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2980297509969914680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2980297509969914680' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2980297509969914680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2980297509969914680'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/08/per-thread-singleton-and-per-thread.html' title='per-thread Singleton and per-thread Logging in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-1014598531967450284</id><published>2009-06-18T20:41:00.005+05:30</published><updated>2009-06-18T22:06:07.136+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Choosing the Most Specific Method - Tricky Overloading</title><summary type='text'>Choosing the Most Specific Method - Tricky Method OverloadingLet's start with looking at a code-segment and try to think of the output/error, it would produce when compiled/executed and subsequently we'll discuss the behavior of code.public class NullTest {   public static void method(Object obj){     System.out.println("method with param type - Object");   }    public static void method(String </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/1014598531967450284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=1014598531967450284' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1014598531967450284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1014598531967450284'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/06/choosing-most-specific-method-tricky.html' title='Choosing the Most Specific Method - Tricky Overloading'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4805798114289832234</id><published>2009-06-11T22:43:00.007+05:30</published><updated>2009-06-11T23:54:16.090+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Initializer Blocks &amp; their alternatives in Java</title><summary type='text'>Initializer Blocks in Java and their possible alternativesInitializer Blocks - what are they, why &amp; how are they used?These blocks are similar to the static initialization blocks with the only difference being the absence of the 'static' keyword. The Java compiler copies all the initializer blocks in the same order as they are in the source code in every constructor before any executable </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4805798114289832234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4805798114289832234' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4805798114289832234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4805798114289832234'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/06/initializer-blocks-their-alternatives.html' title='Initializer Blocks &amp;amp; their alternatives in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5292448841752653887</id><published>2009-06-07T00:27:00.005+05:30</published><updated>2009-06-07T00:56:16.270+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Static Initialization Blocks &amp; their alternatives</title><summary type='text'>Static Initialization Blocks and their alternatives in JavaWhy do we need Static Initialization Blocks?The easiest way of initializing fields (static or instance) in Java at the time of their declaration is simply by providing a compile time constant value of a compatible data type. For example:public class InitializationWithConstants{public static int staticIntField = 100;private boolean </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5292448841752653887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5292448841752653887' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5292448841752653887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5292448841752653887'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/06/static-initialization-blocks-their.html' title='Static Initialization Blocks &amp;amp; their alternatives'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8838606125102229482</id><published>2009-05-30T20:18:00.006+05:30</published><updated>2009-05-30T22:07:52.649+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Choosing a suitable access control modifier in Java</title><summary type='text'>How to choose a suitable access control specifier of a method or a field?Access Control Modifiers available for classes and members in JavaTop-level classes in Java can have only two access control modifiers - public and default (package-private) whereas the members have four access control modifiers - public, protected, default (package-private), and private. Nested Classes are treated as </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8838606125102229482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8838606125102229482' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8838606125102229482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8838606125102229482'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/05/choosing-suitable-access-control.html' title='Choosing a suitable access control modifier in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4418961083072839616</id><published>2009-05-29T00:47:00.010+05:30</published><updated>2009-05-29T01:50:26.311+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Finding caller of an instance or static method in Java</title><summary type='text'>Finding Caller object, method/class of an instance method in JavaYou might think if we would ever need it? Well... you may never, but no harm in exploring whether we have any/some ways of finding this in Java or not. This question was asked by one of our visitors - Marco Servetto. Thanks Marco for bringing this question up.For instance methods, by caller you might mean either the object instance </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4418961083072839616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4418961083072839616' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4418961083072839616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4418961083072839616'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/05/finding-caller-of-instance-or-static.html' title='Finding caller of an instance or static method in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8756506084448867802</id><published>2009-05-24T17:24:00.003+05:30</published><updated>2009-05-24T17:54:33.011+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Passing '\n' (new-line) on command line in Java</title><summary type='text'>Can we pass a new-line ('\n') character or any other escape sequence via command line in Java?One of our visitors (Vivek Athalye) asked this in response to the article - Tricky use of static initializer block. Thought of posting the answer as a separate article to increase the chances of it reaching to a wider range of audience.The answer to the query is NO. The question arises, if you pass the </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8756506084448867802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8756506084448867802' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8756506084448867802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8756506084448867802'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/05/passing-n-new-line-on-command-line-in.html' title='Passing &apos;\n&apos; (new-line) on command line in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4199128264743073022</id><published>2009-05-10T03:12:00.007+05:30</published><updated>2009-05-10T03:48:48.256+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Tricky use of static initializer in Java - Override println</title><summary type='text'>Can we get a different output without changing the main-method definition?public class HelloMain {/*** @param args*/public static void main(String[] args) { System.out.println("Mr. main.");}}Can we have the output of the above code-segment as "Hi, Mr. main. Bye!" without changing the main-method code?Yeah, we can have the required output by using 'static initializer' blocks effectively. As we </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4199128264743073022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4199128264743073022' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4199128264743073022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4199128264743073022'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/05/tricky-use-of-static-initializer-in.html' title='Tricky use of static initializer in Java - Override println'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_18W1abtMir8/SgX8N-2Z2yI/AAAAAAAAALs/3ZTID8KxMgo/s72-c/Output+of+Solution+-+1.PNG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7953681638950611119</id><published>2009-05-03T12:53:00.004+05:30</published><updated>2009-05-03T13:33:43.986+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Algorithms'/><title type='text'>Finding if a number is a power of 2 or not in Java?</title><summary type='text'>How to find whether a number is a power of 2 or not in Java?There can be many possible solutions to this problem, but probably the most efficient remains to be the one which uses bit-level manipulation wisely.We'll talk about only that solution here and since it involves bit-level manipulation of binary sequences, so should you require a refresh, first go through this article - 2's complement, 1'</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7953681638950611119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7953681638950611119' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7953681638950611119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7953681638950611119'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/05/finding-if-number-is-power-of-2-or-not.html' title='Finding if a number is a power of 2 or not in Java?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-961314431595275678</id><published>2009-05-03T12:36:00.005+05:30</published><updated>2009-05-03T12:47:42.520+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Binary rep of negative numbers in Java - 2's complement</title><summary type='text'>2's Complement: Binary representation of negative numbers in JavaNegative numbers in Java are represented using 2's complement. As we know that integers in Java occupy 4 bytes so to understand how a negative integer (say -4) is represented internally in Java, we first need to find the binary equivalent of the positive value of the integer (in this case 4) and subsequently by finding the 2's </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/961314431595275678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=961314431595275678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/961314431595275678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/961314431595275678'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/05/binary-rep-of-negative-numbers-in-java.html' title='Binary rep of negative numbers in Java - 2&apos;s complement'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2281043063582974940</id><published>2009-05-02T15:25:00.003+05:30</published><updated>2009-05-02T15:30:34.144+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puzzles'/><title type='text'>Puzzle: Circular Table, Pile of Quarters and 2 Players</title><summary type='text'>Puzzle: There is a huge pile of quarters and a circular table. There are two people to play a game of placing the quarters down on the table alternately without any overlap. The one who can't put down a quarter loses. Assuming that the pile of quarters is non-exhaustive what will be your winning strategy? Whether you would like to start or let your partner start?Solution: The winning strategy </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2281043063582974940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2281043063582974940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2281043063582974940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2281043063582974940'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/05/puzzle-circular-table-pile-of-quarters.html' title='Puzzle: Circular Table, Pile of Quarters and 2 Players'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-9054702810902241624</id><published>2009-05-02T15:12:00.005+05:30</published><updated>2009-05-02T15:50:27.751+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Viewing/Editing PPT, Doc, TIFF, etc. in your browser</title><summary type='text'>Viewing/Editing files without having the required s/w or tools installedWonder what will you do in case you end up getting caught in a situation where none of the widely used tools/softwares (such as MS Office, Flash, File Viewers/Editors like Acrobat, etc.) are installed on a machine on which you need to at least view (or maybe edit if possible) some docs/files?Well... until recently it was </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/9054702810902241624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=9054702810902241624' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/9054702810902241624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/9054702810902241624'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/05/viewingediting-ppt-doc-tiff-etc-without.html' title='Viewing/Editing PPT, Doc, TIFF, etc. in your browser'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_18W1abtMir8/Sfwd84xMGNI/AAAAAAAAALk/5Uf8SEY76Iw/s72-c/ppt_viewer.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-1004672566611241845</id><published>2009-04-04T00:46:00.020+05:30</published><updated>2009-04-12T08:19:04.741+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Implementation of SAX Parser in Java using SAX2 APIs</title><summary type='text'>For those who have reached to this article directly, before we move on to discussing the implmenetation of a sample SAX-based XML parser in Java, they may like to refresh their understanding of SAX by referring to this article - Evolution of Java and XML combo. SAX, DOM, JAXP, JDOM &gt;&gt;Implementation of a SAX2-based XML parser in JavaWe will start with looking at the various steps involved in </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/1004672566611241845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=1004672566611241845' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1004672566611241845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1004672566611241845'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/04/implementation-of-sax-parser-in-java.html' title='Implementation of SAX Parser in Java using SAX2 APIs'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5658110078721848231</id><published>2009-04-01T00:23:00.006+05:30</published><updated>2009-06-17T21:11:09.818+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>SAX v/s DOM. How to choose between DOM and SAX?</title><summary type='text'>Differences between DOM and SAX. When to use what? Before going through the differences, if you need a refresh of what SAX and DOM are, please refer to this article - SAX, DOM, JAXP, &amp; JDOM &gt;&gt;.While comparing two entities, we tend to see both of them as competitors and consequently comparing them to find a winner. This of course is not applicable in every case - not at least in the case of SAX </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5658110078721848231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5658110078721848231' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5658110078721848231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5658110078721848231'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/04/sax-vs-dom-differences-between-dom-and.html' title='SAX v/s DOM. How to choose between DOM and SAX?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-102811190265407323</id><published>2009-04-01T00:10:00.005+05:30</published><updated>2009-06-17T20:50:19.106+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Sax, DOM, JAXP, &amp; JDOM. Evolution of Java-XML combo.</title><summary type='text'>Evolution of the XML Parsing/Manipulation using JavaThe combination of Java and XML has been one of the most attracting things which had happened in the field of software development in the 21st century. It has been mainly for two reasons - Java, arguably the most widely used programming language and XML, almost unarguably the best mechanism of data description and transfer.Since these two were </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/102811190265407323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=102811190265407323' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/102811190265407323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/102811190265407323'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/04/sax-dom-jaxp-jdom-evolution-of-java-xml.html' title='Sax, DOM, JAXP, &amp;amp; JDOM. Evolution of Java-XML combo.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5086493959818074763</id><published>2009-03-22T22:44:00.005+05:30</published><updated>2009-03-22T22:59:48.772+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Getting Class name in a static method in Java</title><summary type='text'>Finding the name of a Class in Java from within a static methodOne of our regular visitors (Ranvijay)  had asked it a couple of days back. Though, the code is pretty straightforward, I think it might help few others if posted as an article.One of the many possible ways of finding the name of the class in Java from within a static method is by using a static nested class, which will have a public </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5086493959818074763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5086493959818074763' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5086493959818074763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5086493959818074763'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/03/getting-class-name-in-static-method-in.html' title='Getting Class name in a static method in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7567426451991700622</id><published>2009-03-02T20:27:00.008+05:30</published><updated>2009-03-02T20:48:46.650+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>How to recover Shift + Deleted folders/emails in Outlook?</title><summary type='text'>How to recover Shift + Deleted folders/emails in Microsoft Outlook?Ever wondered if you can really recover something in Windows, which you have Shift + Deleted? Well, you can do that at least in few cases (if not in all) - one of them being recovering folders/emails which you accidentally Shift + Deleted in your Microsoft Outlook (running with MS Exchange Server). I managed to delete one </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7567426451991700622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7567426451991700622' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7567426451991700622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7567426451991700622'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/03/how-to-recover-shift-deleted.html' title='How to recover Shift + Deleted folders/emails in Outlook?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_18W1abtMir8/Sav2h8OJNaI/AAAAAAAAALM/jDShvfOVs04/s72-c/reg.JPG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5423225063301463536</id><published>2009-03-02T20:09:00.005+05:30</published><updated>2009-03-02T20:45:51.957+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Outlook Express v/s Outlook. Which suits you better?</title><summary type='text'>Outlook Express v/s MS Outlook. How to choose one between the two?Outlook Express v/s Microsoft OutlookMany of you would already be aware of the main difference between the two. For those, who might not have cared to thought of it so far, here is the summary of the main difference(s) between the two messaging and collaboration clients delivered to us by Microsoft:-Outlook Express:  it has been </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5423225063301463536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5423225063301463536' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5423225063301463536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5423225063301463536'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/03/outlook-express-vs-outlook-which-suits.html' title='Outlook Express v/s Outlook. Which suits you better?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-1699787303048437697</id><published>2009-02-22T22:03:00.005+05:30</published><updated>2009-02-22T22:49:58.682+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>ThreadLocal &amp; InheritableThreadLocal in Java, initialValue() v/s set(), Uses of childValue()</title><summary type='text'>ThreadLocal in Java - what is it used for?As the name suggests this Java library class is used for supporting thread-local variables - the variables which are local to the particular thread instance and hence each thread will have their own copy of such variables which will be initialized every time a new thread is spawned.To be more clear, let's take one simple example. If you have a class </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/1699787303048437697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=1699787303048437697' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1699787303048437697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1699787303048437697'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/02/threadlocal-inheritablethreadlocal-in.html' title='ThreadLocal &amp;amp; InheritableThreadLocal in Java, initialValue() v/s set(), Uses of childValue()'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-3677615647811549752</id><published>2009-02-16T23:58:00.006+05:30</published><updated>2009-02-17T00:29:43.637+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>LoadLibrary failed - a DLL initialization routine failed</title><summary type='text'>Resolving 'LoadLibrary failed - a DLL initialization routine failed' errorThere might be other reasons for this error as well, but the most common one is probably because of a missing dependent DLL. While trying to register SOAPIS30.dll (for those who are new to DLL installation - that's done by using RegSvr32.exe OR Gacutil.exe), I encountered this error.Identifying the problem and fixing that -</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/3677615647811549752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=3677615647811549752' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3677615647811549752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3677615647811549752'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/02/loadlibrary-failed-dll-initialization.html' title='LoadLibrary failed - a DLL initialization routine failed'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_18W1abtMir8/SZmzHfIlevI/AAAAAAAAAK8/Hc3tNPbN-1g/s72-c/dll-1.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8530184968702836977</id><published>2009-01-24T20:52:00.000+05:30</published><updated>2009-01-24T20:52:00.663+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>java.lang.UnsupportedClassVersionError: why is it thrown &amp; how to resolve?</title><summary type='text'>java.lang.UnsupportedClassVersionError: when is it thrown by a JVM &amp; how to resolve it? UnsupportedClassVersionError is (evidently a descendant of the Error class in Java) which subclasses java.lang.ClassFormatError which in turn subclasses java.lang.LinkageError (which is a direct subclass of java.lang.Error). This error is thrown in the cases when the JVM (Java Virtual Machine) attempts to read</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8530184968702836977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8530184968702836977' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8530184968702836977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8530184968702836977'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/01/javalangunsupportedclassversionerror.html' title='java.lang.UnsupportedClassVersionError: why is it thrown &amp;amp; how to resolve?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_18W1abtMir8/SWtlbTDT8SI/AAAAAAAAAKo/pa7aa8lI0HY/s72-c/UnsupportedClassFormatException.jpg' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4239528096267657582</id><published>2009-01-16T00:08:00.002+05:30</published><updated>2009-01-16T00:31:27.061+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>The 25 Most Dangerous Programming Errors</title><summary type='text'>25 Most Dangerous Programming Errors listed by CWE/SANS
The US National Security Agency has helped building a list of the top 25 world's most dangerous programming errors which may lead to security vulnerabilities that can be attacked by the cyber criminals and this list of 25 errors is now assumed to be the minimum set of coding errors that must be fixed completely before letting the code to go </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4239528096267657582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4239528096267657582' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4239528096267657582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4239528096267657582'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/01/25-most-dangerous-programming-errors.html' title='The 25 Most Dangerous Programming Errors'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-976831871063427212</id><published>2009-01-08T23:09:00.006+05:30</published><updated>2009-01-09T00:11:18.490+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>finally contd.: an interesting try-catch-finally scenario</title><summary type='text'>If not very comfortable with finally block and its execution then you may probably like to go through this article first - playing with try-catch-finally in Java &gt;&gt;. It covers some pretty interesting scenarios covering various possible scenarios of try, catch, and finally blocks followed by the precise explanation of their execution in each of these scenarios. Come back to this article once you </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/976831871063427212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=976831871063427212' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/976831871063427212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/976831871063427212'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/01/finally-contd-interesting-try-catch.html' title='finally contd.: an interesting try-catch-finally scenario'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2989380026664594241</id><published>2009-01-02T23:53:00.004+05:30</published><updated>2009-01-03T00:50:48.646+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>XML Schema and its anatomy, Uses of XSDs, Namespaces</title><summary type='text'>XML Schema and its anatomy, Applications of XML Schemas, NamespacesXML Schema was approved as an official recommendation by the WOrld Wide Web Consortium (W3C) in 2001. W3C defines XML Schema as "XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content, and semantics of XML documents."As it's clear from </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2989380026664594241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2989380026664594241' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2989380026664594241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2989380026664594241'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2009/01/xml-schema-and-its-anatomy-uses-of-xsds.html' title='XML Schema and its anatomy, Uses of XSDs, Namespaces'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8787498085873735981</id><published>2008-12-26T11:59:00.007+05:30</published><updated>2008-12-26T12:35:50.813+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>www v/s www1 v/s www2. Role of CNAME and DNS.</title><summary type='text'>How are www, www1, www2, etc. different? Role of CNAME &amp; DNS?Let's start with discussing what the different parts of a typical web site address mean? Say for example, if we take http://www.google.com then the first part from left http denotes the protocol being used for communication on Internet. The two most popular protocols being  used are http and ftp. Requests using different protocols </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8787498085873735981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8787498085873735981' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8787498085873735981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8787498085873735981'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/12/www-vs-www1-vs-www2-role-of-cname-and.html' title='www v/s www1 v/s www2. Role of CNAME and DNS.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5444400060869199920</id><published>2008-12-22T00:02:00.008+05:30</published><updated>2008-12-23T00:24:19.538+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>How does Password Encryption work in real world?</title><summary type='text'>Password encryption in work: illustration using SBI Sign In processLast week I received an email (from one of our visitors, Anil) inquiring about what all actually takes place to ensure that the password (or any other sensitive data for that matter) gets encrypted before the request is sent to the Web/App Server? Thanks Anil for raising such a nice point.In this article, I'll try to discuss how </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5444400060869199920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5444400060869199920' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5444400060869199920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5444400060869199920'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/12/how-does-password-encryption-work-in.html' title='How does Password Encryption work in real world?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_18W1abtMir8/SU6QUmHVZVI/AAAAAAAAAKI/S1YszPoBjj0/s72-c/authentication+of+user+password.PNG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4346268712615338700</id><published>2008-12-21T23:41:00.013+05:30</published><updated>2008-12-22T23:58:34.172+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Pictorial rep of Client-side password encryption</title><summary type='text'>This article is a part #2 of the article 'How does Password Encryption work in real world?'. If you have landed directly on this article then you would probably like to go through the first part of the article - Complete working of Password Encryption &gt;&gt;Diagrammatic rep of how password encryption works for SBI Net Banking#1: typing the Login URL of Online SBI will get you a web page which will </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4346268712615338700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4346268712615338700' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4346268712615338700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4346268712615338700'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/12/pictorial-rep-of-how-client-side.html' title='Pictorial rep of Client-side password encryption'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_18W1abtMir8/SU6J1aAKQQI/AAAAAAAAAJY/8YR4v2UqXUU/s72-c/encrypt+function+and+encryptApplet.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2413595324311985794</id><published>2008-12-18T23:29:00.004+05:30</published><updated>2008-12-19T00:11:01.984+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frameworks'/><title type='text'>Constructor Injection: how it works? Impl using Pico</title><summary type='text'>Implementation of Constructor Injection using Pico. How CI works?Constructor Injection is mainly used by a highly embeddable, lightweight, and full-service IoC Container named PicoContainer. Should you need to refresh your understanding of DI and its types, go through this article - Dependency Injection &amp; its types&gt;&gt; Let's see how the Constructor Injection phenomenon works. We will take one </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2413595324311985794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2413595324311985794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2413595324311985794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2413595324311985794'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/12/constructor-injection-how-it-works-impl.html' title='Constructor Injection: how it works? Impl using Pico'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5774143563456143607</id><published>2008-12-13T20:58:00.004+05:30</published><updated>2008-12-13T21:30:16.589+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frameworks'/><title type='text'>Spring: Beans, Container, Metadata, IoC Instantiation</title><summary type='text'>Spring fwk: Beans, Containers, Configuration Metadata, IoC InstantiationBeans - what are they and why do we call them beans?Any object in your Spring application which is instantiated, assembled, and otherwise managed by the Spring IoC Container is called a Bean. Nothing special about these objects, except that the configuration metadata of the Spring framework contains details of these objects </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5774143563456143607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5774143563456143607' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5774143563456143607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5774143563456143607'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/12/spring-beans-container-metadata-ioc.html' title='Spring: Beans, Container, Metadata, IoC Instantiation'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_18W1abtMir8/SUPZooziRlI/AAAAAAAAAJQ/FCzxZL_PnKE/s72-c/container-magic.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5878319137526012057</id><published>2008-12-09T22:46:00.006+05:30</published><updated>2008-12-18T23:59:12.566+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><category scheme='http://www.blogger.com/atom/ns#' term='Frameworks'/><title type='text'>Spring: Inversion of Control, Dependency Injection</title><summary type='text'>Spring IoC - Inversion of Control. DI - Dependency Injection.Spring IoC - Inversion of ControlIoC pattern is defined as "A software design pattern and set of associated programming techniques in which the flow of control of a system is inverted in comparison to the traditional interaction mode." which means instead of the application calling the framework for services (as is the case with </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5878319137526012057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5878319137526012057' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5878319137526012057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5878319137526012057'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/12/spring-ioc-inversion-of-control-di.html' title='Spring: Inversion of Control, Dependency Injection'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2883177967810233715</id><published>2008-12-06T21:46:00.005+05:30</published><updated>2008-12-06T22:11:29.641+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Session impl of a Web App served by multiple JVMs</title><summary type='text'>Session implementation of a Web App spread on multiple JVMs/ServersShould you need a refreshed understanding of what HTTP Sessions are and why are they actually needed, please refer to the article - Need for Session Tracking and Session Tracking Mechanism &gt;&gt;All the three techniques of HTTP session maintenance namely Cookies, URL Rewriting, and Hidden Fields have quite a few limitations. Some of </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2883177967810233715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2883177967810233715' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2883177967810233715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2883177967810233715'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/12/session-impl-for-web-app-served-by.html' title='Session impl of a Web App served by multiple JVMs'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-263529624038578212</id><published>2008-12-06T00:53:00.005+05:30</published><updated>2008-12-24T01:04:06.445+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><title type='text'>Creating documents directly from emails in GMail</title><summary type='text'>Creating documents straight out of your emails in GMailIf you have not noticed (or used) this feature so far then probably you are missing a really nice feature of GMail Labs. The feature was introduced to the entire world at the Official GMail Blog on Dec 16, 2008.Okay, what's this used for? As the name might suggest, it's for creating documents straightaway from your emails. So, if you think </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/263529624038578212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=263529624038578212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/263529624038578212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/263529624038578212'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/12/creating-documents-directly-from-emails.html' title='Creating documents directly from emails in GMail'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_18W1abtMir8/SVE8o-Fb3AI/AAAAAAAAAKg/xV30rPkbUZQ/s72-c/Create+a+document+feature+of+GMail+Labs.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-9117441954093986645</id><published>2008-11-29T23:57:00.002+05:30</published><updated>2008-11-30T00:16:33.052+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Implicit vs Explicit Cursors. Static vs Dynamic Cursors.</title><summary type='text'>Life Cycle of DB Cursors. Implicit vs Explicit, Static vs Dynamic Cursors.What are Database Cursors?Oracle RDBMS assigns a private area to contain related information and the data returned or affected by a SQL statement when executed from a PL/SQL block. A Cursor is a mechanism of naming that private area so that the contents of which can be manipulated programmatically.A Cursor in its simplest </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/9117441954093986645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=9117441954093986645' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/9117441954093986645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/9117441954093986645'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/11/implicit-vs-explicit-cursors-static-vs.html' title='Implicit vs Explicit Cursors. Static vs Dynamic Cursors.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-203639094561233680</id><published>2008-11-23T09:03:00.005+05:30</published><updated>2008-12-09T23:10:37.116+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><category scheme='http://www.blogger.com/atom/ns#' term='Frameworks'/><title type='text'>AspectJ, Aspect-Oriented Programming, Spring AOP</title><summary type='text'>Aspect, AOP, AspectJ, Spring AOP, AspectJ vs Spring AOPWhat's an Aspect? What's Aspect-Oriented Programming (AOP)?An Aspect can be understood as a crosscutting concern which can not be covered by the usual grouping and abstraction mechanisms supported by the various programming methodologies. Why is that so? Because many concerns can cut across multiple abstractions as defined by the underlying </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/203639094561233680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=203639094561233680' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/203639094561233680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/203639094561233680'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/11/aspectj-aspect-oriented-programming.html' title='AspectJ, Aspect-Oriented Programming, Spring AOP'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_18W1abtMir8/SSjSEoCQqaI/AAAAAAAAAJI/uOoXZsDu3r8/s72-c/aspt.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4092868500523474055</id><published>2008-11-20T22:41:00.007+05:30</published><updated>2008-11-21T00:00:13.052+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Using XSD to create XML Doc and applying an XSL on it</title><summary type='text'>Using XSD to create XML Doc and applying an XSL on itI was given an XSD (XML Schema) and was asked to do a couple of things:- (i) Generate an XML document out of the XSD and (ii) Generate (and test of course) an XSL to check if one of the XML elements (named 'filename') contained a specific string (say "abc") at a specific position or not. These tasks are of course not very complex in nature, but</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4092868500523474055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4092868500523474055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4092868500523474055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4092868500523474055'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/11/using-xsd-to-create-xml-doc-and.html' title='Using XSD to create XML Doc and applying an XSL on it'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_18W1abtMir8/SSWejZursiI/AAAAAAAAAI4/hIEchh7zopo/s72-c/Generating+XML+Doc+from+XSD+using+XMLSpy.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-3755313187505241512</id><published>2008-11-16T01:57:00.004+05:30</published><updated>2008-11-16T02:18:37.439+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Ease of Dev in Java 5: Generics, Autoboxing, Static Import, Enhanced for, Annotation, &amp; Typesafe enum</title><summary type='text'>Java 5 features for easier dev: Generics, Autoboxing/Unboxing, Static Import, Enhanced for, Typesafe enums, Annotaion/MetadataI had to give a presentation on Java 5.0 few weeks back in my company and during that time I went through an interesting interview (taken sometime in 2003) of Joshua Bloch who touch based on the six popular new features of Java 2 Platform, Standard Edition 5.0 (also knwon </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/3755313187505241512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=3755313187505241512' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3755313187505241512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3755313187505241512'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/11/ease-of-dev-in-java-5-generics.html' title='Ease of Dev in Java 5: Generics, Autoboxing, Static Import, Enhanced for, Annotation, &amp;amp; Typesafe enum'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2662321051080261337</id><published>2008-11-12T23:04:00.004+05:30</published><updated>2009-01-09T00:02:27.920+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Playing with try-catch-finally in Java. Intersting scenarios.</title><summary type='text'>Various possible scenarios for try-catch-finally blocks and their executionDo you feel that you understand how try-catch and finally blocks are executed in Java? If no then you would first like to read the article - finally explained &gt;&gt;So now I can safely assume that you have a fair understanding of how the exception handling mechanism actually works in Java. Okay, let's try that out with few </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2662321051080261337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2662321051080261337' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2662321051080261337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2662321051080261337'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/11/playing-with-try-catch-finally-in-java.html' title='Playing with try-catch-finally in Java. Intersting scenarios.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5268002078043537915</id><published>2008-11-11T23:03:00.006+05:30</published><updated>2008-12-23T08:19:31.961+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Image Processing in Java. Dim, Regions, Thumbnails, etc.</title><summary type='text'>Using Java APIs for getting dim, selecting region, thumbnails, etc..The Java 2D API treats all the images as a rectangular 2D array of pixels, where a pixel is nothing but the representation of the color at that position in the image and evidently dimension is the horizontal (width) and vertical (height) extent of the image.The API uses representation of images as objects of the class </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5268002078043537915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5268002078043537915' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5268002078043537915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5268002078043537915'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/11/image-processing-in-java-getting-dim.html' title='Image Processing in Java. Dim, Regions, Thumbnails, etc.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7291653178113445864</id><published>2008-11-08T22:36:00.002+05:30</published><updated>2008-11-08T22:46:04.994+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>MVC Pattern &amp; its importance. Push &amp; Pull Mechanism</title><summary type='text'>MVC Pattern &amp; its importance. Push &amp; Pull MechanismMVC (Model View Controller) architecture/patternIt's an architecture (which is sometimes referred to as a design pattern as well) pattern which clearly separates the Business Logic, Presentation of the Response, and the Request Handling &amp; Processing. JSP Model 2 Architecture is based on the MVC pattern.Does it sound complex? Well... it's not. In </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7291653178113445864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7291653178113445864' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7291653178113445864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7291653178113445864'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/11/mvc-pattern-its-importance-push-pull.html' title='MVC Pattern &amp;amp; its importance. Push &amp;amp; Pull Mechanism'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2135040250692699698</id><published>2008-11-02T01:01:00.001+05:30</published><updated>2008-11-08T22:46:56.096+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Creating Windows NT Services for a Java application</title><summary type='text'>Creating Windows NT Services out of a Java applicationThere are many ways of creating Windows Services out of Java Applications, one very popular of them is by using the Java Service Wrapper (a set of batch files) developed by Tanuki Software. Below are the steps which one need to follow to install, launch, stop, or uninstall Windows NT services for a Java app:-Download the utilitywrapper.exe is </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2135040250692699698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2135040250692699698' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2135040250692699698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2135040250692699698'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/11/creating-windows-nt-services-for-java.html' title='Creating Windows NT Services for a Java application'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5782495819232077329</id><published>2008-10-29T00:50:00.001+05:30</published><updated>2008-11-08T22:48:46.188+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Web Vulnerability Detection: SQL Injection, XSS, GHDB, Sniffers</title><summary type='text'>Web Vulnerability Detection: SQL Injection, XSS, GHDB, SniffersWhat's Web Vulnerability &amp; how does it impact?Why the Web Sites are still vulnerable when we have technologies like Firewaals, SSL, etc.? Because most of the web sites are made for a public use and need to be available 24x7 on a publicly accessible route. Since the Web applications have access to the data in the back-end and in most </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5782495819232077329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5782495819232077329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5782495819232077329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5782495819232077329'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/web-vulnerability-detection-sql.html' title='Web Vulnerability Detection: SQL Injection, XSS, GHDB, Sniffers'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-1970537634498742980</id><published>2008-10-29T00:23:00.001+05:30</published><updated>2008-11-08T22:49:24.209+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>XML:  what's it an how it different from HTML?</title><summary type='text'>XML - what's it an how it different from HTML? XML - Extensible Markup LanguageXML is a system and hardware independent language used for producing Unicode text files called XML Documents which define data and describe the structure of the contained data. The World Wide Web Consortium (also known as W3C) owns and controls the specifications of this language.Since XML Documents contain data so </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/1970537634498742980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=1970537634498742980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1970537634498742980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1970537634498742980'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/xml-whats-it-how-it-different-from-html.html' title='XML:  what&apos;s it an how it different from HTML?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-738710498943049458</id><published>2008-10-26T00:12:00.001+05:30</published><updated>2008-11-08T22:50:06.124+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>ORM: Object Relational Mapping Technology, JDO, JPA, SDO</title><summary type='text'>ORM (Object Relational Mapping): This is a programming technique which eliminates the need of transforming the objects into scalar values while saving the objects into (and also while building the objects while retrieving) a relational database which can't directly store object values. This technique is also referred to as I/RM and O/R Mapping. Thus we see that ORM is a technique which makes </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/738710498943049458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=738710498943049458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/738710498943049458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/738710498943049458'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/orm-object-relational-mapping.html' title='ORM: Object Relational Mapping Technology, JDO, JPA, SDO'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8306686835312675594</id><published>2008-10-22T01:02:00.001+05:30</published><updated>2008-11-08T22:50:40.490+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>XML Database - NXD, XAPI, Apache Xindice, Ozone DB, Sedna</title><summary type='text'>XML Database - NXD, XAPI, Apache Xindice, Ozone DB, SednaXML Database - what's it?XML Databse is just like any other database system with the only difference being the data is stored in XML format in this case. We have two major categories of XML Databases:-XML-enabled DB: Here the underlying database is one of the traditional databases only, but the database gets equipped with the ability of </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8306686835312675594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8306686835312675594' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8306686835312675594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8306686835312675594'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/xml-database-nxd-xapi-apache-xindice.html' title='XML Database - NXD, XAPI, Apache Xindice, Ozone DB, Sedna'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7899904955148408350</id><published>2008-10-19T01:10:00.004+05:30</published><updated>2008-10-19T02:40:21.659+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Evolution of Agile Methodologies. Engineering vs Agile.</title><summary type='text'>Evolution of Agile Methodologies. Engineering vs Agile Methodologies.Software Development was initially based on coding and fixing. That worked well for smaller software, but as the size and complexities of software grew a need for a proper process was felt because the debugging and testing of such software became extremely difficult. This gave birth to the Engineering Methodologies.Engineering </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7899904955148408350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7899904955148408350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7899904955148408350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7899904955148408350'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/evolution-of-agile-methodologies.html' title='Evolution of Agile Methodologies. Engineering vs Agile.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4458268819164293453</id><published>2008-10-16T23:34:00.004+05:30</published><updated>2008-10-19T02:38:39.655+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>What is SQL Injection? How can it be handled?</title><summary type='text'>What is SQL Injection? How can it be handled?SQL Injection - what's it?It's an attack where some malicious piece of code is added to a SQL statement which is later passed to a DBMS to be parsed and executed. If the overall SQL statement string is syntactically correct (and of course if the user has rights to fire those SQL commands) then the SQL gets executed by the SQL Engine and consequently </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4458268819164293453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4458268819164293453' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4458268819164293453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4458268819164293453'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/what-is-sql-injection-how-can-it-be.html' title='What is SQL Injection? How can it be handled?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-268526670595309312</id><published>2008-10-12T14:54:00.005+05:30</published><updated>2008-10-12T15:21:42.017+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>CGI, Servlets, JSP, Model 1 &amp; 2 Architectures</title><summary type='text'>CGI, Servlets, JSP, Model 1 &amp; 2 ArchitecturesEvolution of Dynamic Content GenerationWhen World Wide Web (WWW) started in the year 1989 at he CERN laboratory the idea was to have a mechanism which enabled sharing of research information among researchers using hypertext docs. And hence Web was designed to serve static contents in the beginning. The obvious and natural progression was to have the </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/268526670595309312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=268526670595309312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/268526670595309312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/268526670595309312'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/cgi-servlets-jsp-model-1-2.html' title='CGI, Servlets, JSP, Model 1 &amp;amp; 2 Architectures'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_18W1abtMir8/SPHEm6XBo-I/AAAAAAAAAH0/DUDPkHB1Mw4/s72-c/JSP+Model+1+Architecture.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4915325168677303068</id><published>2008-10-12T14:47:00.003+05:30</published><updated>2008-10-12T14:54:32.864+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>How to implement Pagination in JSP Pages?</title><summary type='text'>This question was asked by one of our visitors, Ranvijay. Thank you Ranvijay for posting it. I thought it's worth posting the response as a separate article to improve the chances of it reaching to a wider range of visitors.How to implement Pagination in JSP?I'm afraid there isn't a standard way of implementing pagination. Different situations may demand diffrent strategies to be followed. If you</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4915325168677303068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4915325168677303068' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4915325168677303068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4915325168677303068'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/how-to-implement-pagination-in-jsp.html' title='How to implement Pagination in JSP Pages?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-3982317875562804332</id><published>2008-10-12T13:55:00.006+05:30</published><updated>2008-10-17T00:23:21.223+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C Language'/><title type='text'>Recursion - adv/lim, factorial, Ackemann's fun</title><summary type='text'>Recursion - adv/disadv, types, factorial, Ackemann's fun, etc.What is Recursion?It's a programming technique which facilitates writing simpler, shorter, and clearer code. A fucntion calling itself (either directly or indirectly) is called recursion. There are many programming situations which are very difficult (if not practically impossible) to be modelled without using recursion.Advantages of </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/3982317875562804332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=3982317875562804332' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3982317875562804332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3982317875562804332'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/recursion-advlim-factorial-ackemanns.html' title='Recursion - adv/lim, factorial, Ackemann&apos;s fun'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_18W1abtMir8/SPG7Eb7MaRI/AAAAAAAAAHs/_QId0nuKG3A/s72-c/factorial+call+sequence.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-732918093838258985</id><published>2008-10-02T23:04:00.005+05:30</published><updated>2008-10-02T23:59:28.820+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Structural Patterns contd. - Bridge, Facade, Flyweight, Proxy Design Patterns</title><summary type='text'>Structural Patterns contd. - Bridge, Facade, Flyweight, ProxyIf you have directly reached to this article then you may like to first go through the first article on structural design patterns which covers what they are all about and discusses Adapter, Decorator, and Composite design patterns in particular.Bridge Design PatternThis design pattern is used to achieve the very basic purpose of Object</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/732918093838258985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=732918093838258985' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/732918093838258985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/732918093838258985'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/10/structural-patterns-contd-bridge-facade.html' title='Structural Patterns contd. - Bridge, Facade, Flyweight, Proxy Design Patterns'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5885031518372311748</id><published>2008-09-28T01:17:00.005+05:30</published><updated>2008-10-19T02:26:47.750+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Structural Patterns - Adapter, Decorator, Composite, etc.</title><summary type='text'>Structural Design Patterns - Adapter, Decorator, Composite, etc.Want to refresh your understanding of Design Patterns, its types, usability, etc. first then you may like to refer to this article - Design Patterns &gt;&gt; Structural Design PatternsDesign Patterns belonging to this category are used to combine classes and objects to form larger structures to suit your requirements. How do we actually </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5885031518372311748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5885031518372311748' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5885031518372311748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5885031518372311748'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/09/structural-patterns-adapter-decorator.html' title='Structural Patterns - Adapter, Decorator, Composite, etc.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5167108382662565468</id><published>2008-09-22T00:12:00.004+05:30</published><updated>2008-10-19T02:28:05.963+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Creating zip/jar files programmatically in Java</title><summary type='text'>Creating zip/jar files programmatically in JavaWrite a Java application which automatically zips the directories. The application should accept the input and output directories specified either through command prompt or via a properties file. The user should be able to specify From Date and To Date if s/he wishes so that only those directories in the specified input directory which have their </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5167108382662565468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5167108382662565468' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5167108382662565468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5167108382662565468'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/09/creating-zipjar-files-programmatically.html' title='Creating zip/jar files programmatically in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2962468811581724660</id><published>2008-09-21T23:59:00.005+05:30</published><updated>2008-10-19T02:29:34.573+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Differences between Swing and AWT. When to use what?</title><summary type='text'>Differences between Swing and AWT. When to use what?"Swing" was actually the code name used by Sun during the development and it was planned that on release the extension will be known as JFC (Java Foundation Classes), but Swing managed to beat JFC in popularity even after the release of the package.Swing package can be used with Java 1.1 as well. For that we need to include three JARs - </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2962468811581724660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2962468811581724660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2962468811581724660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2962468811581724660'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/09/differences-between-swing-and-awt-when.html' title='Differences between Swing and AWT. When to use what?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5449247358923914947</id><published>2008-09-15T23:45:00.005+05:30</published><updated>2008-09-16T00:22:10.078+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Creational Patterns contd. - Builder &amp; Prototype</title><summary type='text'>Creational Patterns contd. - Builder Design Pattern &amp; Prototype Design PatternBuilder Design Pattern - this design pattern is used for building a different set of objects based on some passed parameters. We already know that Factory Pattern also does a similar thing, so why to have a different design pattern. Well... Factory Pattern is used to return objects of different type (descendents of a </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5449247358923914947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5449247358923914947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5449247358923914947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5449247358923914947'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/09/creational-patterns-contd-builder.html' title='Creational Patterns contd. - Builder &amp;amp; Prototype'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5617134742716252257</id><published>2008-09-08T23:04:00.003+05:30</published><updated>2008-10-19T02:24:09.131+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Creational Patterns - Singleton, Factory, &amp; Abstract Fac</title><summary type='text'>If you're interested in refreshing your understanding of Design Patterns and their Types before moving on to the details of Creational Patterns then you may refer to this article - Design Patterns - Types &amp; Precepts &gt;&gt;Creational Design  PatternsAs the name suggests these design patterns are used to control the instantiation of a class. Why do we need it? Because the program should not be </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5617134742716252257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5617134742716252257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5617134742716252257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5617134742716252257'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/09/creational-patterns-singleton-factory.html' title='Creational Patterns - Singleton, Factory, &amp;amp; Abstract Fac'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7820548976593354332</id><published>2008-09-08T22:51:00.009+05:30</published><updated>2008-10-19T02:21:46.409+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Design Patterns - Types and suggested Precepts</title><summary type='text'>What are Design Patterns?Design Patterns are basically a catalog of common interactions between objects. These interactions have been found, tested/tried, and optimized by skilled programmers to help others in solving some of their very common programming problems in an efficient way. Design Patterns simply illustrate how objects can communicate with each other without being much concerned about </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7820548976593354332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7820548976593354332' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7820548976593354332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7820548976593354332'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/09/design-patterns-types-and-suggested.html' title='Design Patterns - Types and suggested Precepts'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-69840832616799076</id><published>2008-08-27T20:35:00.006+05:30</published><updated>2008-10-19T02:12:42.072+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Diff java.lang.Class instances for the same Type ?</title><summary type='text'>One of our visitors (Priyank) asked these questions via email. Thanks Priyank for your participation.Can we have two java.lang.Class instances of the same Type?Yeah... we can have any number of java.lang.Class instances of the same type provided we get the Type loaded by a different ClassLoader instance everytime. Please note that even if we use the same ClassLoader class, but if we use different</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/69840832616799076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=69840832616799076' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/69840832616799076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/69840832616799076'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/diff-javalangclass-instances-for-same.html' title='Diff java.lang.Class instances for the same Type ?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5598573177784487620</id><published>2008-08-26T20:28:00.004+05:30</published><updated>2008-10-19T02:19:11.638+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Using Reg Ex to identify Strings representing int/float</title><summary type='text'>Write a Java program using RegEx to identify a String representing int/float (Whitespaces allowed)Some of you may think why to use Reg Ex to identify Strings reprenting numbers as Java has other options as including the well known Scanner class introduced in Java 5.0, but the point here is not to discuss if we really need to use Reg Ex instead the idea is to make you familiar with usage of </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5598573177784487620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5598573177784487620' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5598573177784487620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5598573177784487620'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/using-reg-ex-to-identify-strings.html' title='Using Reg Ex to identify Strings representing int/float'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-3796853647076015954</id><published>2008-08-26T20:07:00.006+05:30</published><updated>2008-10-17T00:19:01.141+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Java Code: Using Reg Ex to identify Strings rep of int/float</title><summary type='text'>Using Reg Ex to identify String representation of int/float (Whitespaces allowed)Find below a complete Java program illustrating the usage of Regular Expressions (introduced in Java 1.4) to identify String representations of int or float values. The program first tries to identify Strings representing only a valid int value without any leading, trailing or embedded whitespaces and subsequently </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/3796853647076015954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=3796853647076015954' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3796853647076015954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3796853647076015954'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/java-code-using-reg-ex-to-identify.html' title='Java Code: Using Reg Ex to identify Strings rep of int/float'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7343331141710556128</id><published>2008-08-18T22:07:00.003+05:30</published><updated>2008-12-22T00:27:05.743+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>zip vs jar. When to use what? Which one is performant?</title><summary type='text'>zip vs jar. When to use what? Which one is performant?jar - the default 'jar' utility (and a file format as well. Read more about the JAR file format in this article - JAR, WAR, and EAR &gt;&gt;) is the Sun's implementation which has been written in Java language. This is obviously slower (though only slightly) than those 'jar' utilities which have been written using C language. 'fastjar' is an example</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7343331141710556128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7343331141710556128' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7343331141710556128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7343331141710556128'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/zip-vs-jar-when-to-use-what-which-one.html' title='zip vs jar. When to use what? Which one is performant?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-1346318884674758522</id><published>2008-08-13T21:37:00.003+05:30</published><updated>2008-10-19T02:11:57.112+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>How many ways of creating objects in Java?</title><summary type='text'>How many ways of creating objects in Java?Well... there aren't many different ways I suppose. But from an application programmer perspective here are the different possible ways of creating objects in Java:-Using new operator - the most commonly used way by far. 'new' is an operator and the only operand it requires is a constructor which will be used for initializting the newly created instance. </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/1346318884674758522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=1346318884674758522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1346318884674758522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1346318884674758522'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/how-many-ways-of-creating-objects-in.html' title='How many ways of creating objects in Java?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7781104144849802432</id><published>2008-08-12T21:57:00.004+05:30</published><updated>2008-10-19T02:16:58.050+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='JVM'/><title type='text'>How can we access an unreachable object in Java?</title><summary type='text'>Can we access an unreachable object in Java?Yeah... we can. Sounds strange? But, it's true. We can access an unreachable object in Java.This can be done by overriding the finalize() method and inside the method we can assign the reference 'this' to some other active reference and this way the unreachable object becomes reachable again which can be accessed like any other object. However this is </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7781104144849802432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7781104144849802432' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7781104144849802432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7781104144849802432'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/how-can-we-access-unreachable-object-in.html' title='How can we access an unreachable object in Java?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-1399044524878260101</id><published>2008-08-12T21:47:00.006+05:30</published><updated>2008-08-12T22:15:37.434+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Miscellaneous'/><title type='text'>Generate unique primary key automatically in MySQL</title><summary type='text'>How to generate unique primary key automatically for every record in MySQL?Note: This question was asked by one anonymous visitor as a comment. Sharing the response as a separate article to make it more visible to our visitors.I've not used MySQL for quite a while now. When I used MySQL some 3-4 years back I probably couldn't find any direct support for Sequences in MySQL (unlike Oracle) and </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/1399044524878260101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=1399044524878260101' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1399044524878260101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1399044524878260101'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/generate-unique-primary-key.html' title='Generate unique primary key automatically in MySQL'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4973473398083099767</id><published>2008-08-08T21:11:00.006+05:30</published><updated>2008-08-08T21:49:42.687+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOA'/><title type='text'>WSDL - Web Services Description Language</title><summary type='text'>WSDL - Web Services Description LanguageYou may like to refresh your understanding of the Web Services by going through this article - Web Services - What, Why, Usage, &amp; Shortcomings&gt;&gt;The WSDL (Web Services Description Language) is a grammar which uses XML for describing all the details of a Web Service which a consumer may like to have for using that Web Service. These details are:-Message </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4973473398083099767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4973473398083099767' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4973473398083099767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4973473398083099767'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/wsdl-web-services-description-language.html' title='WSDL - Web Services Description Language'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_18W1abtMir8/SJxxCuFvw8I/AAAAAAAAAHg/gnSfmRFhdV0/s72-c/bindings+in+wsdl.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2379200562393520040</id><published>2008-08-08T21:06:00.003+05:30</published><updated>2008-08-08T21:11:01.149+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Security Model in Java and its evolution</title><summary type='text'>Security Model in Java and its evolutionJava was originally designed for developing Network Applications and as we know that such applications are more prone to potential attacks hence a need for the Security Model was felt as one of the most important feature of the Java architecture.Since the inception of the Java architecture, the Security Model has also evolved from the Basic Sandox to the </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2379200562393520040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2379200562393520040' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2379200562393520040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2379200562393520040'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/security-model-in-java-and-its.html' title='Security Model in Java and its evolution'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5925088479251594376</id><published>2008-08-08T20:53:00.005+05:30</published><updated>2008-10-17T00:22:36.630+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOA'/><title type='text'>A sample WSDL document</title><summary type='text'>&lt;definitions xmlns="http://schemas.xmlsoap.org/wsdl/"   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"   xmlns:xs="http://www.w3.org/2001/XMLSchema"   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"   xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"   xmlns:y="http://example.org/math/"   xmlns:ns="http://example.org/math/types/"</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5925088479251594376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5925088479251594376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5925088479251594376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5925088479251594376'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/08/sample-wsdl-document.html' title='A sample WSDL document'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-754051665313201290</id><published>2008-07-31T22:27:00.004+05:30</published><updated>2008-07-31T22:49:43.608+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Guarded Block in Java - what's it &amp; why is it used?</title><summary type='text'>Guarded Blocks in Java - what are they &amp; why are they used?This is one of the most popular mechanisms of co-ordinating the execution of multiple threads in a multithreaded application. Such a block keeps checking for a particular condition to become true and only in that case the actual execution of the thread resumes.Why should a thread's execution required to be co-ordinated with that of other </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/754051665313201290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=754051665313201290' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/754051665313201290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/754051665313201290'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/guarded-blocks-in-java-whats-it-why-is.html' title='Guarded Block in Java - what&apos;s it &amp;amp; why is it used?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-6327171540930200301</id><published>2008-07-29T22:18:00.004+05:30</published><updated>2008-07-29T22:46:32.948+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Deadlock - what's it? How to deal with this situation?</title><summary type='text'>Deadlock - what's it? How to deal with a Deadlock situation?What's Deadlock?It's basically a situation where two or more threads are blocked forever waiting for each other to release an acquired monitor to proceed further. Let me try to explain it using an example. Suppose we have two thread - threadA and threadB. There are two objects of a class TestClass - objA and objB and we have two </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/6327171540930200301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=6327171540930200301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/6327171540930200301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/6327171540930200301'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/deadlock-whats-it-how-to-deal-with-this.html' title='Deadlock - what&apos;s it? How to deal with this situation?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8403426629636682031</id><published>2008-07-23T20:05:00.004+05:30</published><updated>2008-10-19T02:32:01.447+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Methods accepting Variable Argument Lists in Java?</title><summary type='text'>How to implement methods accepting Variable Argument Lists in Java?Java doesn't have a built-in feature to handle variable argument lists to a method call, the way we have in C/C++. But, there are several alternative ways of achieving this in Java using simple programming constructs. Let's try to discuss these alternative ways:-Method Overloading - it directly comes to our mind whenever we start </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8403426629636682031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8403426629636682031' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8403426629636682031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8403426629636682031'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/how-to-use-variable-argument-lists-in.html' title='Methods accepting Variable Argument Lists in Java?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-6086263674563647695</id><published>2008-07-23T19:52:00.002+05:30</published><updated>2008-07-23T20:04:18.868+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>IEEE 754 floating point arithmetic used by Java</title><summary type='text'>IEEE 754 floating point arithmetic used by JavaBe careful while using floating point arithmetic in Java and don't reply on the mathematically accurate results produced by an expression involving floating point arithmetic for the simple reason that these arithmetics are not guaranteed to be exactly identical to their mathematical counterparts. The underlying reason for such a discrepancy is that </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/6086263674563647695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=6086263674563647695' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/6086263674563647695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/6086263674563647695'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/ieee-754-floating-point-arithmetic-used.html' title='IEEE 754 floating point arithmetic used by Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-3006640513756179729</id><published>2008-07-21T21:42:00.004+05:30</published><updated>2008-10-19T02:00:20.629+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Concurrent execution of static and non-static synchronized methods</title><summary type='text'>Concurrent execution of static and non-static synchronized methodsWe have a scenario where we have a static synchronized method and a non-static synchronized method. As we know that a static method can only access static members of the class whereas a non-static method can access both static as well as non-static members. This liberty can put us into a situation where a non-static method might be</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/3006640513756179729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=3006640513756179729' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3006640513756179729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3006640513756179729'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/concurrent-execution-of-static-and-non.html' title='Concurrent execution of static and non-static synchronized methods'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2607092132679435064</id><published>2008-07-15T23:29:00.003+05:30</published><updated>2008-10-19T01:59:15.358+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Composition vs Aggregation. What's Association?</title><summary type='text'>Composition vs Aggregation. How is Association related to them?Association - it's a structural relationship between two classifiers - classes or use cases. Cyclic association is also possible when the same entity plays two different roles and contains an association describing the relationship between the two roles.In UML notation an association is depicted by a solid line. For example: suppose </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2607092132679435064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2607092132679435064' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2607092132679435064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2607092132679435064'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/composition-vs-aggregation-whats.html' title='Composition vs Aggregation. What&apos;s Association?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7551412062249029056</id><published>2008-07-15T23:24:00.002+05:30</published><updated>2008-07-15T23:29:46.329+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='JVM'/><title type='text'>Java architecture, JRE, Java Platform, JVM, JDK</title><summary type='text'>Java architecture, JRE, Java Platform, JVM, JDKJava ArchitectureJava is much more than just a popular programming language instead it's a complete architecture. The entire Java archirecture can be broadly categorized into three technologies which work together to make Java a powerful software development architecture. The components of the Java architecture are:-The Java Programming Language - </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7551412062249029056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7551412062249029056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7551412062249029056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7551412062249029056'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/java-architecture-jre-java-platform-jvm.html' title='Java architecture, JRE, Java Platform, JVM, JDK'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-6645122197269579512</id><published>2008-07-09T22:01:00.008+05:30</published><updated>2008-10-19T02:13:32.938+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='JVM'/><title type='text'>Loading, Linking, &amp; Initialization of Types in Java</title><summary type='text'>Loading, Linking, &amp; Initialization of Types in JavaThe Java Virtual Machine makes the Types (we'll discuss here the user defined Types - classes and interfaces... built-in types also undergo similar set of phases and they are normally loaded as part of the JVM process start-up) available to a Java program under execution and any Type undergoes the following phases during its entire life cycle:-</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/6645122197269579512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=6645122197269579512' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/6645122197269579512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/6645122197269579512'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/loading-linking-initialization-of-types.html' title='Loading, Linking, &amp;amp; Initialization of Types in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4136868640468537247</id><published>2008-07-05T19:58:00.004+05:30</published><updated>2008-10-19T02:01:19.548+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Synchronization of static and instance methods in Java</title><summary type='text'>Synchronization of static methods/fields in JavaWhat's an Intrinsic lock OR a monitor lock in Java?An intrinsic lock, a monitor lock, or a monitor - all three refer to the same internal entity associated with every object in Java which enables the implementation of the Synchronization mechanism. This lock is used to enforce an exclusive and consistent access in Java as a monitor can be acquired </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4136868640468537247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4136868640468537247' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4136868640468537247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4136868640468537247'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/synchronization-of-static-and-instance.html' title='Synchronization of static and instance methods in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2119826089174894172</id><published>2008-07-05T19:53:00.005+05:30</published><updated>2008-10-19T02:02:16.511+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Synchronization of constructors not allowed in Java - why?</title><summary type='text'>Synchronization of constructors not allowed in Java - why?In Java, synchronization of contructors is not allowed (results in a compile time error) as only the thread which is constructing the object should have access to the object and hence any other thread is not granted access until the construction of the object is complete. So, no explicit synchronization needed for constructors.Caution: </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2119826089174894172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2119826089174894172' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2119826089174894172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2119826089174894172'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/synchronization-of-constructors-not.html' title='Synchronization of constructors not allowed in Java - why?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2663825866408237279</id><published>2008-07-05T19:45:00.003+05:30</published><updated>2008-07-23T19:42:29.526+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>What is Reentrant Synchronization in Java?</title><summary type='text'>What is Reentrant Synchronization in Java?We know that a thread can not acquire a monitor which is owned by another thread. A thread own a monitor for the period between the time it acquires the monitor for entering a synchronized method/block and the time when it releases the monitor when the thread either returns from the method (or completes the block) OR throws an uncaught exception.But, a </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2663825866408237279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2663825866408237279' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2663825866408237279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2663825866408237279'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/what-is-reentrant-synchronization-in.html' title='What is Reentrant Synchronization in Java?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2994298627509629560</id><published>2008-07-05T19:35:00.004+05:30</published><updated>2008-07-05T19:45:40.634+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puzzles'/><title type='text'>Puzzle: 2 crystal balls, 100 storey building, find no. of drops required?</title><summary type='text'>Puzzle: There are two identical crystal balls and one needs to find out which is the maximum floor in a 100 storey building from where the balls can fall before they break. In the most efficient way, what will be the maximum number of drops required to find the right floor in any possible scenario? The balls are allowed to be broken (if required) while finding the right floor.Solution: The </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2994298627509629560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2994298627509629560' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2994298627509629560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2994298627509629560'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/puzzle-2-crystal-balls-100-storey.html' title='Puzzle: 2 crystal balls, 100 storey building, find no. of drops required?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8339977228305919907</id><published>2008-07-05T19:30:00.002+05:30</published><updated>2008-07-05T19:35:35.054+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puzzles'/><title type='text'>Puzzle: Deck of 52 cards, two players, who will win?</title><summary type='text'>Puzzle: The rules of a card game (having 52 cards) played between two peole are:- they will turn over two cards at a time. If both the cards are Black they will go the first player's pile and if both are Red they they will go to the second player's pile. If one is Red and one Black then both the cards will simply be discarded.The process of turning over two cards at a time is repeated till all </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8339977228305919907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8339977228305919907' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8339977228305919907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8339977228305919907'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/puzzle-deck-of-52-cards-two-players-who.html' title='Puzzle: Deck of 52 cards, two players, who will win?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-3344957783264005494</id><published>2008-07-03T22:27:00.003+05:30</published><updated>2008-07-23T19:42:51.366+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Thread.State in Java? BLOCKED vs WAITING</title><summary type='text'>What is Thread.State in Java? What's it used for?Thread.State - This is a static nested class (Read more about nested classes in the article - Nested Classes &amp; Inner Classes in Java &gt;&gt;) of the Thread class. This is one of the additions of Java 5 and this class actually inherits the abstract class Enum which is the common base class of all Java language enumeration types i.e., Thread.State is </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/3344957783264005494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=3344957783264005494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3344957783264005494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3344957783264005494'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/threadstate-in-java-blocked-vs-waiting.html' title='Thread.State in Java? BLOCKED vs WAITING'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-5475241333222317802</id><published>2008-07-03T22:03:00.005+05:30</published><updated>2008-07-04T21:31:26.953+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SOA'/><title type='text'>Ways of combining Web Services. Orchestration vs Choreography</title><summary type='text'>Ways of combining Web Services. Orchestration vs ChoreographyIf you want to refresh your understanding of Web Services, you may read this article - Web Services - What, How, Why, &amp; Shortcomings &gt;&gt;As we know that Web Services are actually application components each of which normally performs one discrete functionality of the overall application. So, we definitely need some way of combining these </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/5475241333222317802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=5475241333222317802' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5475241333222317802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/5475241333222317802'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/ways-of-combining-web-services.html' title='Ways of combining Web Services. Orchestration vs Choreography'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_18W1abtMir8/SG0CRr9dBTI/AAAAAAAAAHQ/3B8MB1_0L4c/s72-c/Orchestration+Diagram.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8595337911102114699</id><published>2008-07-01T22:16:00.006+05:30</published><updated>2008-07-01T22:53:16.667+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Alternatives of stop, suspend, resume of a Thread</title><summary type='text'>Did you go through the first part of the article which discussed - Why Thread.stop() method is deprecated in Java? Why ThreadDeath is a subclass of Error and not of Exception? Can't we catch the ThreadDeath and fix the damaged objects? What will happen if stop() method is called on a thread which is yet to start? ... You may like to go through the first part before proceeding with this part.This </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8595337911102114699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8595337911102114699' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8595337911102114699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8595337911102114699'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/alternatives-of-stop-suspend-resume-of.html' title='Alternatives of stop, suspend, resume of a Thread'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7159915000763700290</id><published>2008-07-01T21:39:00.006+05:30</published><updated>2008-10-19T02:30:58.103+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Why stop, suspend, &amp; resume of Thread are Deprecated</title><summary type='text'>This is a slightly longer article and hence divided into two parts. This is the first part of the article, which will try to answer the following questions:-Why Thread.stop() method is deprecated in Java?Why ThreadDeath is a subclass of Error and not of Exception?Can't we catch the ThreadDeath and fix the damaged objects?What will happen if stop() method is called on a thread which is yet to </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7159915000763700290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7159915000763700290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7159915000763700290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7159915000763700290'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/07/why-stop-suspend-resume-of-thread-are.html' title='Why stop, suspend, &amp;amp; resume of Thread are Deprecated'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8893802222529065205</id><published>2008-06-28T18:56:00.002+05:30</published><updated>2008-06-28T19:38:28.378+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Conditional compilation &amp; Conditional loading of a class</title><summary type='text'>Conditional compilation &amp; Conditional loading/initialization of a classHow can one conditionally compile some code in a class?It's very simple. One possible way is to use a static final boolean variable and assign that variable a value 'false' during declaration. Since it's a final variable, so the compiler knows that the value is not going to change any further. Since the variable is static, so </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8893802222529065205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8893802222529065205' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8893802222529065205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8893802222529065205'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/conditional-compilation-conditional.html' title='Conditional compilation &amp;amp; Conditional loading of a class'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4396610606476318220</id><published>2008-06-28T18:44:00.003+05:30</published><updated>2008-06-28T18:54:47.863+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Asserions in Java? Assertions vs Exception? Its usage?</title><summary type='text'>Asserions in Java? Assertions vs Exception? Where to Use &amp; Where NOT?Assertion in JavaAn assertion is a special statement which contains one boolean expression and if that boolean expression returns 'false' then the program throws an AssertionError which is an unchecked exception and it normally terminates the current program/application.This boolean expression is normally used to verify our </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4396610606476318220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4396610606476318220' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4396610606476318220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4396610606476318220'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/asserions-in-java-assertions-vs.html' title='Asserions in Java? Assertions vs Exception? Its usage?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-4730793233907399989</id><published>2008-06-28T12:59:00.001+05:30</published><updated>2008-06-28T18:43:55.431+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><title type='text'>Free 2/3-column XML Skins/Templates for Blogger</title><summary type='text'>Free 2-column/3-column XML Skins/Templates for BloggerDownload &amp; Apply the theme used by this blogAfter emailing the XML skin of my blog quite a few times, I thought it would be better to share it on the blog itself so that people interested in it can download it directly from here instead of requesting that via email.Credits for the XML theme that this blog usesAs you can see from the 'Credits' </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/4730793233907399989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=4730793233907399989' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4730793233907399989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/4730793233907399989'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/free-23-column-xml-skinstemplates-for.html' title='Free 2/3-column XML Skins/Templates for Blogger'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/geekexplains/SGUzH_mEmII/AAAAAAAAAGw/7DQX6PlqTVU/s72-c/download-2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8374297561091144822</id><published>2008-06-28T12:17:00.001+05:30</published><updated>2008-07-01T21:39:48.579+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><title type='text'>Inserting AdSense Ads in Post Body, Sidebar, etc..</title><summary type='text'>Inserting Google AdSense Ads in Post Body, Sidebar, Footer, etc.Inserting Google AdSense Ads to Post BodyFind below few simple steps to insert Google AdSense Ads in the post body. You just need to parse your AdSense Ad code before inserting it into the template. If you don't have a HTML parser then use this Online HTML Parser.Once you have got the parsed HTML AdSense Ad code, follow the below </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8374297561091144822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8374297561091144822' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8374297561091144822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8374297561091144822'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/inserting-adsense-ads-in-post-body.html' title='Inserting AdSense Ads in Post Body, Sidebar, etc..'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_18W1abtMir8/SGU3Q5lbvjI/AAAAAAAAAHA/kdo9khIk5L4/s72-c/3+Steps+of+inserting+AdSense+Ad+code+to+post+body.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-1185848136602777165</id><published>2008-06-25T14:19:00.005+05:30</published><updated>2008-10-19T02:28:53.637+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Do Interfaces really inherit the Object class in Java?</title><summary type='text'>Do Interfaces really inherit the class Object in Java (the cosmic sperclass)?Well... the answer is NO. An interface can't inherit from a class in Java, not at least directly. So, we can safely say that interfaces don't inherit from the Object class. Okay... so how can they do that indirectly? We know that interfaces can have classes declared as members as well just like they can have constants. </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/1185848136602777165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=1185848136602777165' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1185848136602777165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1185848136602777165'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/do-interfaces-really-inherit-from-class.html' title='Do Interfaces really inherit the Object class in Java?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-2587630786367264720</id><published>2008-06-24T21:47:00.005+05:30</published><updated>2008-10-19T02:33:06.933+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Error/Exception Handling in JSP - using JSPs or Servlets</title><summary type='text'>Error/Exception Handling in JSP - using JSPs or ServletsAn unrecoverable error while executing a JSP page can be handled by specifying the error JSP pages. These error JSP pages can either be specified in the Deployment Descriptor (web.xml) OR a JSP can have its own error page specified with the errorPage attribute of the page directive. The specifed error pages must have isErrorPage attribute of</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/2587630786367264720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=2587630786367264720' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2587630786367264720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/2587630786367264720'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/errorexception-handling-in-jsp-using.html' title='Error/Exception Handling in JSP - using JSPs or Servlets'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-9219054413485578000</id><published>2008-06-24T11:49:00.005+05:30</published><updated>2008-10-19T01:58:11.940+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Field Hiding in Java - fields are only hidden not overridden</title><summary type='text'>Field Hiding in Java - fields are only hidden not overriddenField in Java are only hidden and not actually overridden (that doesn't mean that we'll get a compilet time error while trying this, instead they are not overridden in its true sense). Overriding means the member should be invoked based on the run time type of the object and not based on the declared type. But binding for fields in Java </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/9219054413485578000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=9219054413485578000' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/9219054413485578000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/9219054413485578000'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/field-hiding-in-java-fields-are-only.html' title='Field Hiding in Java - fields are only hidden not overridden'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8060432896525586853</id><published>2008-06-23T22:18:00.006+05:30</published><updated>2008-06-28T19:54:22.471+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Automating user input for GUI programs in Java - How?</title><summary type='text'>How can you automate user input for GUI programs in Java?How to automate GUI programs in Java? Or, How to automate User Inputs from KeyBoard/Mouse for an AWT or Swing based GUI application?Suppose we want to create a small GUI based demo application which requires automated user input events (which we would have provided by using Keyboard/Mouse). JDK 1.3 introduced a new class named </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8060432896525586853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8060432896525586853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8060432896525586853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8060432896525586853'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/automating-user-input-for-gui-programs.html' title='Automating user input for GUI programs in Java - How?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-1591329812554466552</id><published>2008-06-23T22:11:00.004+05:30</published><updated>2008-10-19T02:35:11.450+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Detecting the Shutdown of a JVM programmatically</title><summary type='text'>How can you detect the Shutdown of a JVM programmatically?One possible way of doing it by adding a Shudown Hook to the JVM (Is there any other way?). Of course I'm not considering the case where a new process would be launched just to kill the JVM. It should be normal JVM Shutdown - without interference of an external interrupt by any user process. OKay... so let's discuss how can we write and </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/1591329812554466552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=1591329812554466552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1591329812554466552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/1591329812554466552'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/how-can-you-detect-shutdown-of-jvm.html' title='Detecting the Shutdown of a JVM programmatically'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-7689614519735575226</id><published>2008-06-23T22:00:00.003+05:30</published><updated>2008-10-19T02:37:02.532+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Common Questions on Shutdown Hooks in Java</title><summary type='text'>Common Questions on Shutdown Hooks in JavaIf you like to refresh your understanding of Shutdown Hooks then read this article first - Shutdown Hooks in Java &gt;&gt;Question: Why doesn't Java provide infomation as to why the JVM is shutting down?Answer: Because it can not be done in a portable way. There are certain platforms which have capabilities of notifying the potential causes of a JVM shutdown </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/7689614519735575226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=7689614519735575226' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7689614519735575226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/7689614519735575226'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/common-questions-on-shutdown-hooks-in.html' title='Common Questions on Shutdown Hooks in Java'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-8773720426484687057</id><published>2008-06-23T21:50:00.003+05:30</published><updated>2008-10-19T02:09:15.319+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Overruling uncaught exceptions in Java - how to?</title><summary type='text'>Overruling uncaught exceptions in Java - how to do?An uncaught exception normally propagates until the default handler (or some other intermediate handler if found on the way) handles it. The default handler prints the detailes message with the exception name and also the stack trace before exiting the process.Is there a way to nullify the effect of an uncaught exception without handling it? Yes.</summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/8773720426484687057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=8773720426484687057' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8773720426484687057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/8773720426484687057'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/overruling-uncaught-exceptions-in-java.html' title='Overruling uncaught exceptions in Java - how to?'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7955003209126272036.post-3491039005792224482</id><published>2008-06-23T21:40:00.007+05:30</published><updated>2008-11-13T04:19:59.123+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>finally explained - common questions, uses, etc.</title><summary type='text'>finally block - is it guaranteed to run?Yeah... the finally block is always executed irrespective of whether the try block executes normally or throws an exception and also irrespetcive of whether the catch block (if found any) hanldes the exception normally or throws an exception itself. Whatever be the case, the finally block is always guaranteed to be executed i.e., if the control has entered </summary><link rel='replies' type='application/atom+xml' href='http://geekexplains.blogspot.com/feeds/3491039005792224482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7955003209126272036&amp;postID=3491039005792224482' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3491039005792224482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7955003209126272036/posts/default/3491039005792224482'/><link rel='alternate' type='text/html' href='http://geekexplains.blogspot.com/2008/06/finally-explained-common-questions-uses.html' title='finally explained - common questions, uses, etc.'/><author><name>Geek</name><uri>http://www.blogger.com/profile/00648920090539126396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry></feed>
