<?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-513455140400390930</id><updated>2012-01-25T18:52:35.009+05:30</updated><category term='SCWCD'/><category term='Volatile'/><category term='Exchange values of two numbers'/><category term='For Each'/><category term='Decompiler'/><category term='Final'/><category term='SQL'/><category term='JSP'/><category term='Overriding'/><category term='Amazon'/><category term='WAR'/><category term='Hibernate'/><category term='String'/><category term='Clock Angle Problem'/><category term='Interpreted'/><category term='Infix to Postfix'/><category term='Progress Software'/><category term='DataSource'/><category term='EJB'/><category term='Code'/><category term='Nucleus'/><category term='DOM'/><category term='Flash'/><category term='Questions'/><category term='Primitives'/><category term='Merge Sort'/><category term='HashSet'/><category term='Compiled'/><category term='Networking'/><category term='Stable Sort'/><category term='Parser'/><category term='Finalize'/><category term='Error'/><category term='javaw'/><category term='SingleThreadModel'/><category term='difference'/><category term='Adobe'/><category term='POST'/><category term='Struts'/><category term='java'/><category term='Swap First and Last'/><category term='intersection'/><category term='Runtime Exception'/><category term='DataStructure'/><category term='XML'/><category term='TOAD'/><category term='Static'/><category term='ByteOrder'/><category term='Cloneable'/><category term='Internet Servers'/><category term='DFS'/><category term='DI'/><category term='Tomcat'/><category term='Unboxing'/><category term='interview'/><category term='Postfix expression validation'/><category term='Email Sending'/><category term='Where'/><category term='BeanFactory'/><category term='ApplicationContext'/><category term='Polymorphism'/><category term='Eclipse Communication Framework'/><category term='Method Hiding'/><category term='Eclipse'/><category term='Iterator'/><category term='Container'/><category term='Selection Sort'/><category term='Depth First Polymorphism'/><category term='Union'/><category term='Static Polymorphism'/><category term='DriverManager'/><category term='Class Loader'/><category term='Linked List'/><category term='Cursor'/><category term='GET'/><category term='longest recurring substring'/><category term='MaxEmail'/><category term='OS'/><category term='Serialization'/><category term='Big Endian'/><category term='CloneNotSupported'/><category term='Unix'/><category term='AOP'/><category term='Abstraction'/><category term='ExceptionInInitializerError'/><category term='priority queue'/><category term='Finally'/><category term='list'/><category term='Program'/><category term='HashMap'/><category term='Rotate Matrix'/><category term='Immutable'/><category term='Largest Recurring Substring'/><category term='Threads'/><category term='collection'/><category term='Oracle'/><category term='Puzzle'/><category term='suffix tree'/><category term='Finance'/><category term='Little Endian'/><category term='Futures'/><category term='Subarray having maximum sum'/><category term='Clone'/><category term='SMTP'/><category term='Exception'/><category term='Tower Of Hanoi'/><category term='NaN'/><category term='Ternary Operator'/><category term='OOPS'/><category term='Infix to Prefix'/><category term='nth power of a given number'/><category term='Permutations'/><category term='Map Interface'/><category term='Spring'/><category term='ECF'/><category term='Servers'/><category term='BFS'/><category term='Design Patterns'/><category term='Swap First two nodes'/><category term='Correlated'/><category term='database'/><category term='Hashtable'/><category term='Servlets'/><category term='JVM'/><category term='subarray with largest sum'/><category term='Virtual Memory'/><category term='POP3'/><category term='Annotations'/><category term='Throwable'/><category term='IMAP'/><category term='Tech'/><category term='EAR'/><category term='Extension'/><category term='Variable Names'/><category term='Aptitude'/><category term='Stored Procedures'/><category term='intersection of strings'/><category term='Triggers'/><category term='Generics'/><category term='Bit'/><category term='Set'/><category term='JAR'/><category term='Advice'/><category term='queue'/><category term='Circular Queue'/><category term='Overloading'/><category term='NexTag'/><category term='Synchronization'/><category term='ANT'/><category term='Belzabar'/><category term='Singleton'/><category term='Having'/><category term='Subquery'/><category term='Queries'/><category term='Insertion Sort'/><category term='Forwards'/><category term='DataHiding'/><category term='E-mail Servers'/><category term='Next Multiple'/><category term='Bubble Sort'/><category term='Power of Number'/><category term='Icosahedron'/><title type='text'>All About Java and Interview Questions</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default?start-index=101&amp;max-results=100'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>208</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3510455938783073402</id><published>2011-12-29T15:37:00.000+05:30</published><updated>2011-12-29T15:37:08.571+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Design Patterns'/><title type='text'>Strategy Pattern</title><summary type='text'>Key points :

1. Also known as Policy pattern
2. Collection of Algos (Behavuours)
3. Algo can be selected at runtime
4. Uses composition instead of inheritance

e.g. a class used for validation of incoming data may use strategy pattern in which the validation algo will be decided on the basis of data set</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3510455938783073402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3510455938783073402' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3510455938783073402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3510455938783073402'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/12/strategy-pattern.html' title='Strategy Pattern'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2697202552377625865</id><published>2011-06-20T13:59:00.000+05:30</published><updated>2011-06-20T13:59:05.226+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><title type='text'>LimeSpot interview Question (Telephonic Interview)</title><summary type='text'>Currently there are three projects in LimeWire :
1. LimeWire
2. Lime Domain : Hosts domain for users
3. LIme Exchange

Q1: What in an outer join and what is an Inner join?
A: Inner Join returns a row when there is at-least one match in one match in both the tables. e.g. 
SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo
FROM Persons
INNER JOIN Orders
ON Persons.P_Id=Orders.P_Id
ORDER BY </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2697202552377625865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2697202552377625865' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2697202552377625865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2697202552377625865'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/06/limespot-interview-question-telephonic.html' title='LimeSpot interview Question (Telephonic Interview)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3669124498442863248</id><published>2011-03-13T20:17:00.000+05:30</published><updated>2011-03-13T20:17:58.361+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Volatile'/><title type='text'>Volatile variable in java</title><summary type='text'>According to Kathy Sierra :

" The volatile modifier tells the JVM that a thread accessing the variable must
always reconcile its own private copy of the variable with the master copy in
memory "

My understanding :
In normal scenario, In a multi-threaded environment, every thread keeps a local copy of instance variable and if a thread makes some change to the variable, the changed value would be</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3669124498442863248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3669124498442863248' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3669124498442863248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3669124498442863248'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/03/volatile-variable-in-java.html' title='Volatile variable in java'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3785434849929111365</id><published>2011-03-09T16:31:00.000+05:30</published><updated>2011-03-09T16:31:35.930+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Class Loader'/><title type='text'>The Java Class Loading Mechanism</title><summary type='text'>
The Java platform uses a delegation model for loading classes. The basic idea is that every class loader has a "parent" class loader. When loading a class, a class loader first "delegates" the search for the class to its parent class loader before attempting to find the class itself.
Constructors in java.lang.ClassLoader and its subclasses allow you to specify a parent when you instantiate a new</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3785434849929111365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3785434849929111365' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3785434849929111365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3785434849929111365'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/03/java-class-loading-mechanism.html' title='The Java Class Loading Mechanism'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4948977301478474940</id><published>2011-03-09T11:44:00.001+05:30</published><updated>2011-03-09T11:48:35.732+05:30</updated><title type='text'>forward vs sendRedirect</title><summary type='text'>RequestDispatcher.forward() :

1) Forwards the request to some other servlet/jsp within the same application.
2) The URL in the browser does not change so the client does not get to know that the request is being sent to some other servlet. The process occurs completely within the web container
3) Request attributes are maintained
4) Faster, since everything is at the server side only

</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4948977301478474940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4948977301478474940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4948977301478474940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4948977301478474940'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/03/forward-vs-sendredirect.html' title='forward vs sendRedirect'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-9151764735733256311</id><published>2011-03-09T10:38:00.000+05:30</published><updated>2011-03-09T10:38:31.447+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>java.lang.Error</title><summary type='text'>Error extends Throwable.

It indicates that some serious and abnormal condition has occurred and the application should not try to catch it.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/9151764735733256311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=9151764735733256311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/9151764735733256311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/9151764735733256311'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/03/javalangerror.html' title='java.lang.Error'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8528825569789726574</id><published>2011-03-04T23:36:00.000+05:30</published><updated>2011-03-04T23:36:36.910+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>Multiple catch blocks</title><summary type='text'>

Both

try{
   
     }catch(Error e){
   
     }catch(NullPointerException npe){
   
    }

and


           try{
   
  }catch(NullPointerException npe){
   
  }catch(Error e){
   
  }

will compile.

</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8528825569789726574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8528825569789726574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8528825569789726574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8528825569789726574'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/03/multiple-catch-blocks.html' title='Multiple catch blocks'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3591711316934881805</id><published>2011-03-04T23:33:00.003+05:30</published><updated>2011-12-29T17:16:40.702+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>Exception Hierarchy</title><summary type='text'>

Throwable is a class which extends Serializable interface.
All other classes in hierarchy extend Throwable class

Error , Exception and Runtime Exception classes only have the constructors (which call the corresponding super class constructors). All other methods are inherited from the Throwable class itself.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3591711316934881805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3591711316934881805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3591711316934881805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3591711316934881805'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/03/exception-hierarchy.html' title='Exception Hierarchy'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh6.googleusercontent.com/-SnRelVbTMt4/TXEpV6RR5HI/AAAAAAAAEDY/-oFLr5Gqkus/s72-c/ExceptionHierarchy.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1700548179808493445</id><published>2011-01-25T22:31:00.000+05:30</published><updated>2011-01-25T22:31:34.154+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><title type='text'>HTTP Status Codes</title><summary type='text'>HTTP Status Codes represent the status of response received by Client from the Server


      Overall range      Defined range      Category  
      100-199      100-101      Informational  
      200-299      200-206      Successful  
      300-399      300-305      Redirection  
      400-499      400-415      Client error  
      500-599      500-505      Server error  
</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1700548179808493445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1700548179808493445' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1700548179808493445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1700548179808493445'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/01/http-status-codes.html' title='HTTP Status Codes'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2318893661981768339</id><published>2011-01-23T13:34:00.004+05:30</published><updated>2011-02-08T21:30:33.095+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Struts'/><title type='text'>Struts - Controller</title><summary type='text'>
In a Struts application, two components make up the Controller. These two components are the
org.apache.struts.action.ActionServlet and the org.apache. struts.action.Action classes. In most Struts
applications, there is one org. apache.struts.action.ActionServlet implementation and many org.apache.
struts.action.Action implementations. ActionServlet acts as an Action factory by creating specific</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2318893661981768339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2318893661981768339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2318893661981768339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2318893661981768339'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/01/struts-controller.html' title='Struts - Controller'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8010323555599129188</id><published>2011-01-22T23:12:00.000+05:30</published><updated>2011-01-22T23:12:13.059+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SCWCD'/><title type='text'>WebApps</title><summary type='text'>
Web applications allow compiled classes to be stored in both the /WEB−INF/classes and /WEB−INF/lib
directories. Of these two directories, the class loader will load classes from the /classes directory first,followed by the JARs in the /lib directory. If you have duplicate classes in both the /classes and /lib
directories, the classes in the /classes directory will take precedence.
</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8010323555599129188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8010323555599129188' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8010323555599129188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8010323555599129188'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/01/webapps.html' title='WebApps'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2194311066548642288</id><published>2011-01-09T23:52:00.001+05:30</published><updated>2011-01-09T23:54:43.082+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><title type='text'>Manage ( Enable / Disable ) startup programs in Windows Vista</title><summary type='text'>You can Enable / Disable startup programs on your PC with Windows Vista by following the following simple steps :

1. Go to Control Panel  -&gt; Windows Defender



2. Then go to Tools and then Software Explorer (as shown in the image below)
3. Make sure that the Category selected is 'Startup Programs'.
Then select the program that you want to Disable or Remove and click the corresponding button(as </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2194311066548642288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2194311066548642288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2194311066548642288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2194311066548642288'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/01/manage-enable-disable-startup-programs.html' title='Manage ( Enable / Disable ) startup programs in Windows Vista'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_8FudkcmDOOc/TSn549HO0yI/AAAAAAAAEA8/wMJst8oGdVE/s72-c/WD.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6393791189483358678</id><published>2011-01-09T22:32:00.002+05:30</published><updated>2011-01-09T22:32:32.980+05:30</updated><title type='text'>Servlet load-on-startup</title><summary type='text'>The value of the tag load-on-startup helps the container determine when the servlet has to be loaded.

A value &gt;=0 means that the servlet has to be loaded when the application is deployed.

If the value is less than zero or if the tag element is not present, the servlet will be loaded when it is first called.

Also, the order in which servlets are loaded is determined by the value of </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6393791189483358678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6393791189483358678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6393791189483358678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6393791189483358678'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/01/servlet-load-on-startup.html' title='Servlet load-on-startup'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1638237623614421153</id><published>2011-01-04T22:40:00.001+05:30</published><updated>2011-01-04T22:42:10.728+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><title type='text'>An Unusual Paragraph</title><summary type='text'>This is a most unusual paragraph. How quickly can you find out
what is so unusual about it?  It looks so ordinary, you'd think
nothing was wrong with it and in fact, nothing is wrong with it.
It is unusual, why?  Study it. Think about it and you may find
out. If you work at it for a bit,
it will dawn on you. Try to do it without coaching.


&lt;!-- The paragraph does not contain letter 'e'. 'e' is </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1638237623614421153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1638237623614421153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1638237623614421153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1638237623614421153'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/01/unusual-paragraph.html' title='An Unusual Paragraph'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6362553076177857444</id><published>2011-01-03T21:38:00.000+05:30</published><updated>2011-01-03T21:38:56.947+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><title type='text'>World War - I Puzzle</title><summary type='text'>A grandfather is telling his grandson stories of world war.

He said : 

"At the end of World War 1, I was awarded for my bravery 
after saving a group of my men"

"We were fighting in northern France and one of our 
enemies threw a grenade at us. I managed to pick it up and 
throw it away before it exploded. So right after the war 
ended, a General gave me a sword, engraved with the words 
'</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6362553076177857444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6362553076177857444' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6362553076177857444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6362553076177857444'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2011/01/world-war-i-puzzle.html' title='World War - I Puzzle'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1555245106227301489</id><published>2010-12-26T13:50:00.001+05:30</published><updated>2010-12-26T13:51:12.432+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Program to Shuffle a pack of card in O(n)</title><summary type='text'>public class Shuffle {
	
	public static void shuff(int[] arr) {
		for(int i=0; i 
			int rand  = (int)(Math.random() * arr.length);
			int temp = arr[rand];
			arr[rand] = arr[i];
			arr[i] = temp;
		}
		for(int i=0; i 
			System.out.println(" "+arr[i]);
		}
	}
}</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1555245106227301489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1555245106227301489' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1555245106227301489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1555245106227301489'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/12/program-to-shuffle-pack-of-card-in-on.html' title='Program to Shuffle a pack of card in O(n)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-818868274301998959</id><published>2010-12-23T23:42:00.001+05:30</published><updated>2010-12-24T22:47:10.658+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>MarkIT Telephonic Interview Questions</title><summary type='text'>1. Difference between ArrayList and LinkedList. Why search in ArrayList is faster than in LL. When to use what

Ans : Array List is implemented as an Array and since arrayList is indexed, we just need to go to array+i th position directly. We do not have to traverse the whole list as in case of LL

2. HashCode and Equals contract

3. Difference between HashTable and HashMap
(If have inserted </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/818868274301998959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=818868274301998959' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/818868274301998959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/818868274301998959'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/12/markit-telephonic-interview-questions.html' title='MarkIT Telephonic Interview Questions'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6056373199889021046</id><published>2010-12-08T14:31:00.001+05:30</published><updated>2010-12-08T14:33:30.584+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Throwable'/><category scheme='http://www.blogger.com/atom/ns#' term='Threads'/><title type='text'>java.lang.ThreadDeath</title><summary type='text'>java.lang.Object
          |
java.lang.Throwable
          |
java.lang.Error
          |
java.lang.ThreadDeath (implements Serializable interface)

This Error is thrown by the Thread when the stop method with zero arguments is called.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6056373199889021046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6056373199889021046' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6056373199889021046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6056373199889021046'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/12/javalangthreaddeath.html' title='java.lang.ThreadDeath'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3875593306908525475</id><published>2010-10-31T17:05:00.000+05:30</published><updated>2010-10-31T17:05:39.357+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlets'/><category scheme='http://www.blogger.com/atom/ns#' term='SCWCD'/><title type='text'>ServletResponse : getWriter() and getOutputStream()</title><summary type='text'>getWriter() : returns PrintWriter Object that is used for writing character text.

getOutputStream() : returns ServletOutputStream Object used for writing binary data in response.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3875593306908525475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3875593306908525475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3875593306908525475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3875593306908525475'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/10/servletresponse-getwriter-and.html' title='ServletResponse : getWriter() and getOutputStream()'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3550717338540186076</id><published>2010-10-28T21:42:00.000+05:30</published><updated>2010-10-28T21:42:50.075+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><title type='text'>Mean - Median - Mode</title><summary type='text'>Mean - Median - Mode are three words which I often confuse.
Mean : Average Arithmetic Mean (AM) : (a+b+c+....+n)/n 
                                                              1/n
Geometric Mean (GM) : (a*b*c*.....*n)


Harmonic Mean (HM) 
     AM &gt;= GM &gt;= HM
Median : Middle Value     If we have a set of values, then mean of those can be found by arranging those values in ascending/      </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3550717338540186076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3550717338540186076' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3550717338540186076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3550717338540186076'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/10/mean-median-mode.html' title='Mean - Median - Mode'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2098376779932149941</id><published>2010-09-29T22:28:00.000+05:30</published><updated>2010-09-29T22:28:26.887+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tech'/><category scheme='http://www.blogger.com/atom/ns#' term='MaxEmail'/><title type='text'>MaxEmail : Send and Receive Fax by Email</title><summary type='text'>With MaxEmail, you can send and receive fax on your email account.You do not need any Fax machine or dedicated phone line for this. The Fax would come as a PDF in the email. You can also receive an audio file, which will be stored as wav file.

With this, you can also ask for a dedicated Fax number.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2098376779932149941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2098376779932149941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2098376779932149941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2098376779932149941'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/09/maxemail-send-and-receive-fax-by-email.html' title='MaxEmail : Send and Receive Fax by Email'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2083495821171269190</id><published>2010-09-06T22:25:00.004+05:30</published><updated>2010-09-08T18:19:44.838+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse Communication Framework'/><category scheme='http://www.blogger.com/atom/ns#' term='ECF'/><title type='text'>ECF : Eclipse Communication Framework - Installation</title><summary type='text'>Got to explore ECF - Eclipse Communication Framework (Introduces the concept of communications container)
It is a framework build to integrate Communication into projects. It includes various tools like Instant Messenger, Chat Client , File Sharing, Project Sharing, Simultaneous edits to a file by various developers, Real Time Collaboration etc.
Really nice Communication Framework with plenty of </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2083495821171269190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2083495821171269190' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2083495821171269190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2083495821171269190'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/09/ecf-eclipse-communication-framework.html' title='ECF : Eclipse Communication Framework - Installation'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_8FudkcmDOOc/TIUZlRHCEaI/AAAAAAAACrA/cpk0g64is-w/s72-c/ecf.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8023016634366734565</id><published>2010-08-26T20:47:00.000+05:30</published><updated>2010-08-26T20:47:03.565+05:30</updated><title type='text'>Important points : java.util.Logger</title><summary type='text'>The Logger class implements Factory patter to return logger instance.
The getLogger() method will either create a new logger instance or return a suitable(having same name as specified) existing instance. Each logger has a level associated with it, which specifies the minimum level the logger takes care of. If a  logger level is null, then its level is inherited from its parent.So, if the log </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8023016634366734565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8023016634366734565' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8023016634366734565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8023016634366734565'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/08/important-points-javautillogger.html' title='Important points : java.util.Logger'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-9142689664240779785</id><published>2010-08-26T00:12:00.000+05:30</published><updated>2010-08-26T00:12:20.826+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlets'/><category scheme='http://www.blogger.com/atom/ns#' term='SCWCD'/><title type='text'>RequestDispatcher : forward()</title><summary type='text'>The argument to forward method is the name of the resource we want the request to be forwarded to. This can be a jsp file or a Servlet. In case it is a servlet, the argument should be whatever we have specified in the url-pattern for that servlet declaration in web.xml.

So, the point to be noted here is that in case we want to forward the request to some other servlet, the argument to forward </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/9142689664240779785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=9142689664240779785' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/9142689664240779785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/9142689664240779785'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/08/requestdispatcher-forward.html' title='RequestDispatcher : forward()'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-48623661893751621</id><published>2010-08-02T22:32:00.002+05:30</published><updated>2010-08-02T22:39:49.343+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlets'/><category scheme='http://www.blogger.com/atom/ns#' term='SCWCD'/><title type='text'>Response : sendRedirect()</title><summary type='text'>sendRedirect() method takes String as an argument. This string can start with a forward slash.

E.g.

Lets say the current URL we are accessing is : http://localhost:8080/MyApp/MyServlet/welcome.do

Now in our Servlet, we can do either :
response.sendRedirect("thanks.jsp");
OR
response.sendRedirect("/thanks.jsp");

Both of these would hit differnet URLs

In first case, i.e. response.sendRedirect(</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/48623661893751621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=48623661893751621' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/48623661893751621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/48623661893751621'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/08/response-sendredirect.html' title='Response : sendRedirect()'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1572328404310995012</id><published>2010-08-02T21:04:00.001+05:30</published><updated>2010-08-02T21:08:14.413+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlets'/><title type='text'>PrintWriter : print() vs write()</title><summary type='text'>Today while reading Servlets, I came across the class PrintWriter.


I found that there we have two methods (both with various overloaded versions) : write() and print()
and I saw that print() internally calls write() only. So I was wondering that why there are different methods although they are doing the same thing. So, this seemed to be kind of redundancy to me.


Then I realized that print() </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1572328404310995012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1572328404310995012' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1572328404310995012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1572328404310995012'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/08/printwriter-print-vs-write.html' title='PrintWriter : print() vs write()'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6345954474487923048</id><published>2010-08-01T14:04:00.000+05:30</published><updated>2010-08-01T14:04:48.718+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlets'/><category scheme='http://www.blogger.com/atom/ns#' term='SCWCD'/><title type='text'>HttpServletRequest</title><summary type='text'>Some not very frequently used methods :

getServerPort():  Returns the port number to which the request was sent. (8080 in my case)
getServerName(): Name of the server (I used localhost)
getLocalAddr(): I got 0.0.0.0
getLocalPort() : This returns the port at which the request actually ends up. This is as the requests are made to the same port, but the server forwards them to different ports so </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6345954474487923048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6345954474487923048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6345954474487923048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6345954474487923048'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/08/httpservletrequest.html' title='HttpServletRequest'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5207180738511770815</id><published>2010-07-27T09:30:00.000+05:30</published><updated>2010-07-27T09:30:26.886+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlets'/><category scheme='http://www.blogger.com/atom/ns#' term='SCWCD'/><title type='text'>Overriding both doGet() and doPost() in a Servlet</title><summary type='text'>We can override either doGet() or doPost() or both in a Servlet and based upon whether the request is GET or POST, the corresponding method will be called.

The Servlet would compile and run fine.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5207180738511770815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5207180738511770815' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5207180738511770815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5207180738511770815'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/07/overriding-both-doget-and-dopost-in.html' title='Overriding both doGet() and doPost() in a Servlet'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2824987979537815503</id><published>2010-07-21T17:46:00.000+05:30</published><updated>2010-07-21T17:46:33.067+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><title type='text'>Eclipse Shortcuts</title><summary type='text'>Adding JavaDoc comments : Alt  + Shift + J
Close All                            : Ctrl + Shift + W / Ctrl + Shift + F4
Collapse All                       : Ctrl + Shift + Numpad_Divide
Copy                                 : Ctrl + C / Ctrl + Insert
Cut                                    : Ctrl + x / Shift + del
Debug                               : F11  
Delete Line                        : Ctrl+</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2824987979537815503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2824987979537815503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2824987979537815503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2824987979537815503'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/07/eclipse-shortcuts.html' title='Eclipse Shortcuts'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-7692983670142101217</id><published>2010-07-20T16:43:00.003+05:30</published><updated>2011-02-08T22:10:35.763+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Java Program without main method</title><summary type='text'>When JVM finds a class, it first executes the static block and then searches for main method.
So, to avoid the JVM from  searching for main method, we can execute the required code (iff possible) in static block and then exit .. before the main method is called.

Below is the code : 


/**
* @Author : Pragya Rawal
*
*/
public class NoMain {


static {
System.out.println("I am in static block");
</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/7692983670142101217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=7692983670142101217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7692983670142101217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7692983670142101217'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/07/java-program-without-main-method.html' title='Java Program without main method'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4252601510302739109</id><published>2010-07-11T11:29:00.004+05:30</published><updated>2010-07-11T12:33:33.634+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Implementing one-to-many relationship</title><summary type='text'>One-to-many relation can be implemented by using two tables.. in two ways :e.g we have a Department table and a Student Table1. Department :    DeptID -&gt; Primary Key   DeptName   DeptHead   Student :    StudentID -&gt; Primary Key   StudentName    DeptID -&gt; Foreign Key2. Department :    DeptID -&gt; Primary Key   DeptName   DeptHead   Student :    StudentID -&gt;  Composite Primary Key - 1   StudentName</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4252601510302739109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4252601510302739109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4252601510302739109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4252601510302739109'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/07/implementing-one-to-many-relationship.html' title='Implementing one-to-many relationship'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-7701075126706049915</id><published>2010-07-08T09:08:00.000+05:30</published><updated>2010-07-08T09:09:34.388+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Generics'/><category scheme='http://www.blogger.com/atom/ns#' term='Unboxing'/><title type='text'>Generics and Unboxing</title><summary type='text'>When using legacy (non-type safe) collections—watch out for unboxing problems! If you declare a non-generic collection, the get() methodALWAYS returns a reference of type java.lang.Object. Remember that unboxing can't convert a plain old Object to a primitive, even if that Object reference points to an Integer (or some other primitive) on the heap. Unboxing converts only from a wrapper class </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/7701075126706049915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=7701075126706049915' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7701075126706049915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7701075126706049915'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/07/generics-and-unboxing.html' title='Generics and Unboxing'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4827250300541062669</id><published>2010-07-08T08:56:00.005+05:30</published><updated>2010-07-08T09:04:20.729+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='collection'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Generics'/><title type='text'>Generics exist only till compile time. They do not exist at run time</title><summary type='text'>All your generic code is strictly for the compiler. Through a process called "type erasure," the compiler does all of its verifications on your generic code and then strips the type information out of the class bytecode. At runtime, ALL collection code—both legacy and new Java 5 code you write using generics—looks exactly like the pre-generic version of collections. None of your typing </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4827250300541062669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4827250300541062669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4827250300541062669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4827250300541062669'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/07/generics-exist-only-till-compile-time.html' title='Generics exist only till compile time. They do not exist at run time'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6101692821948452736</id><published>2010-07-03T09:36:00.004+05:30</published><updated>2011-03-09T12:04:10.234+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='CloneNotSupported'/><category scheme='http://www.blogger.com/atom/ns#' term='Clone'/><category scheme='http://www.blogger.com/atom/ns#' term='Cloneable'/><title type='text'>Cloneable Interface</title><summary type='text'>The clone( ) method generates a duplicate copy of the object on which it is called. Only classes that implement the Cloneable interface can be cloned.
The Cloneable interface defines no members. It is used to indicate that a class allows a bitwise copy of an object (that is, a clone) to be made. If you try to call clone( ) on a class that does not implement Cloneable, a CloneNotSupportedException</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6101692821948452736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6101692821948452736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6101692821948452736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6101692821948452736'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/07/cloneable-interface.html' title='Cloneable Interface'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1276741371934791207</id><published>2010-06-23T23:33:00.003+05:30</published><updated>2010-06-23T23:42:16.257+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='intersection of strings'/><category scheme='http://www.blogger.com/atom/ns#' term='longest recurring substring'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='suffix tree'/><category scheme='http://www.blogger.com/atom/ns#' term='Amazon'/><title type='text'>Amazon telephonic interview ques</title><summary type='text'>1. Write an efficient algo to find longest recurring substring in a string e.g. in banana, it would be 'ana'Ans : We can use suffix trees to implement this. I will post the exact solution soon2. Write a function to find intersection of two strings. i.e. characters common to the strings.For this, the most efficient solution would be to use 26 bits .. one for each character and put zero in all and </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1276741371934791207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1276741371934791207' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1276741371934791207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1276741371934791207'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/amazon-telephonic-interview-ques.html' title='Amazon telephonic interview ques'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3630890496732646260</id><published>2010-06-23T20:19:00.006+05:30</published><updated>2010-07-06T21:37:34.001+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Largest Recurring Substring'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='suffix tree'/><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='DataStructure'/><title type='text'>Inefficient O(n^2) Method of finding Largest Recurring Substring in a string</title><summary type='text'>import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;/** * @author Pragya Rawal  */public class LargestSubstring { public static void main(String[] args) {  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));  System.out.println("Enter String : ");  try {   String input = br.readLine();   LargestSubstring str = new LargestSubstring();   </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3630890496732646260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3630890496732646260' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3630890496732646260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3630890496732646260'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/inefficient-on2-method-of-finding.html' title='Inefficient O(n^2) Method of finding Largest Recurring Substring in a string'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-7502316034340800502</id><published>2010-06-22T12:55:00.003+05:30</published><updated>2010-07-06T21:37:57.241+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><category scheme='http://www.blogger.com/atom/ns#' term='DataStructure'/><category scheme='http://www.blogger.com/atom/ns#' term='Power of Number'/><title type='text'>Program(s) for finding power of a number</title><summary type='text'>First, an interactive solution: (raising a to the power of b) public double Power(double a, int b) {     if (b&lt;=0) return 0; // we want a positive integer for the exponent     else {         double c=1;         for (int i=0; i            c*=a;         }         return c;     } } Very easy and linear. You start from one and go on multiplying c by a so c is respectively 1, a, a^2, a^3, ... a^b. </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/7502316034340800502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=7502316034340800502' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7502316034340800502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7502316034340800502'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/programs-for-finding-power-of-number.html' title='Program(s) for finding power of a number'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-663411080616585049</id><published>2010-06-22T12:29:00.002+05:30</published><updated>2010-07-06T18:25:59.251+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Details of retainAll() in Set interface</title><summary type='text'>The Set interface contains a method 'retainAll()' which gives us the intersection of two sets.Lets say we define a Set as : Set s = new HashSet();HashSet class extends the abstract class AbstractSet , which in turn extends the abstract class AbstractCollection. The implementation of retainAll() is present in AbstractCollecction class.This method Retains only the elements in this collection that </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/663411080616585049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=663411080616585049' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/663411080616585049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/663411080616585049'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/details-of-retainall-in-set-interface.html' title='Details of retainAll() in Set interface'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-9020321384072571505</id><published>2010-06-22T11:27:00.002+05:30</published><updated>2010-07-06T21:38:44.132+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Clock Angle Problem'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Amazon'/><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><title type='text'>Clock Angle Problem : Amazon Ques</title><summary type='text'>Clock angle problems relate two different measurements - angles and time. To answer the problem the relationship between the time shown (or an elapsed time) and the position of the hands (as given by an angle) has to be found.A general approach to such problems is to consider the rate of change of the angle in degrees per minute. The hour hand of a normal 12-hour analogue clock turns 360 degrees </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/9020321384072571505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=9020321384072571505' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/9020321384072571505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/9020321384072571505'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/clock-angle-problem.html' title='Clock Angle Problem : Amazon Ques'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6032612896467452825</id><published>2010-06-14T08:26:00.004+05:30</published><updated>2010-07-06T22:11:18.450+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Class Loader'/><title type='text'>Class Loader methods : Why class loaders must delegate class loading</title><summary type='text'>defineClass() : This method converts the  array of bytes code an instance of the class.The class must be resolved before it can be used. THis is a final method. In this, an instance of class java.lang.Class is created and cached in the Class Loader so that the byte code  can not change on the further requests to load the class.  This method also checks that the given class name matches the class </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6032612896467452825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6032612896467452825' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6032612896467452825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6032612896467452825'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/class-loader-methods.html' title='Class Loader methods : Why class loaders must delegate class loading'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8110289249849841093</id><published>2010-06-13T23:56:00.003+05:30</published><updated>2011-03-09T16:29:27.884+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Class Loader'/><category scheme='http://www.blogger.com/atom/ns#' term='Extension'/><title type='text'>'Extension' Class Loader</title><summary type='text'>The extension framework makes use of the class-loading delegation mechanism. When the runtime environment needs to load a new class for an application, it looks for the class in the following locations, in order:
Bootstrap classes: the runtime classes in rt.jar, internationalization classes in i18n.jar, and others.
Installed extensions: classes in JAR files in the lib/ext directory of the JRE, </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8110289249849841093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8110289249849841093' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8110289249849841093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8110289249849841093'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/extension-class-loader.html' title='&apos;Extension&apos; Class Loader'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4744871117565556217</id><published>2010-06-13T22:02:00.003+05:30</published><updated>2010-07-06T22:11:29.720+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Class Loader'/><title type='text'>Class Loaders - getClassLoader() method</title><summary type='text'>There is a getClassLoder() method in the class java.lang.Class which tells us about the ClassLoader that loaded the class.Below is the javaDoc for the same : Returns the class loader for the class.  Some implementations may use      null to represent the bootstrap class loader. This method will return     null in such implementations if this class was loaded by the bootstrap      class loader.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4744871117565556217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4744871117565556217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4744871117565556217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4744871117565556217'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/class-loaders-getclassloader-method.html' title='Class Loaders - getClassLoader() method'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5733569660402080239</id><published>2010-06-11T23:33:00.003+05:30</published><updated>2010-07-06T22:00:14.928+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><category scheme='http://www.blogger.com/atom/ns#' term='AOP'/><category scheme='http://www.blogger.com/atom/ns#' term='Advice'/><title type='text'>Around advice vs Before/ After Advice</title><summary type='text'>MethodInterceptor provides the ability to do both berfore and after advices in one advice object:public interface MethodInterceptor extends Interceptor {Object invoke(MethodInvocation invocation) throws Throwable;}There are two important differences between the MethodInterceptor interfaceand the previous two types of advice. First, the MethodInterceptor implementationcontrols whether the target </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5733569660402080239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5733569660402080239' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5733569660402080239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5733569660402080239'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/around-advice-vs-before-after-advice.html' title='Around advice vs Before/ After Advice'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2007882449946351682</id><published>2010-06-11T23:27:00.002+05:30</published><updated>2010-07-06T22:00:55.758+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><category scheme='http://www.blogger.com/atom/ns#' term='AOP'/><category scheme='http://www.blogger.com/atom/ns#' term='Advice'/><title type='text'>Advice in Spring AOP</title><summary type='text'>Advice contains the logic of your aspect. So,when you create an advice object, you are writing the code that implements thecross-cutting functionality. Also, remember that Spring’s joinpoint model is builtaround method interception. This means that the Spring advice you write will bewoven into your application at different points around a method’s invocation.Because there are several points </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2007882449946351682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2007882449946351682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2007882449946351682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2007882449946351682'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/advice-in-spring-aop.html' title='Advice in Spring AOP'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8156694903120653982</id><published>2010-06-11T18:24:00.002+05:30</published><updated>2010-12-24T23:28:59.950+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><category scheme='http://www.blogger.com/atom/ns#' term='AOP'/><title type='text'>Spring AOP</title><summary type='text'>Spring does not create a proxied object until that proxied bean is needed by the
application. If you are using an ApplicationContext, the proxied objects will be
created when it loads all of the beans from the BeanFactory. Because Spring creates
proxies at runtime, you do not need a special compiler to use Spring’s AOP.
Spring generates proxied classes in two ways. If your target object </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8156694903120653982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8156694903120653982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8156694903120653982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8156694903120653982'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/spring-aop.html' title='Spring AOP'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1198933882846899385</id><published>2010-06-09T22:46:00.002+05:30</published><updated>2010-07-06T22:10:04.474+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SMTP'/><category scheme='http://www.blogger.com/atom/ns#' term='POP3'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet Servers'/><title type='text'>More about Internet Servers</title><summary type='text'>POP3 is by far the most common type of incoming e‑mail server for personal e‑mail accounts. And SMTP is the only type of outgoing e‑mail server that works with Windows Mail, so you normally don’t even need to check the outgoing server type with your e‑mail provider. Practically all personal e‑mail accounts—with the exception of web-based e‑mail—use an SMTP server for outgoing e‑mail.E‑mail server</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1198933882846899385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1198933882846899385' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1198933882846899385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1198933882846899385'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/more-about-internet-servers.html' title='More about Internet Servers'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5749556543982933551</id><published>2010-06-09T22:29:00.002+05:30</published><updated>2011-03-09T16:43:01.527+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='E-mail Servers'/><category scheme='http://www.blogger.com/atom/ns#' term='SMTP'/><category scheme='http://www.blogger.com/atom/ns#' term='POP3'/><category scheme='http://www.blogger.com/atom/ns#' term='IMAP'/><title type='text'>E‑mail server types</title><summary type='text'>Windows Mail supports three types of e‑mail servers.

Post Office Protocol 3 (POP3) servers. Most e‑mail services and ISPs use this type of server, especially for personal e‑mail accounts. They hold incoming e‑mail messages until you check your e‑mail, at which point they're transferred to your computer. Messages are typically deleted from the server when you check your e‑mail.

Internet Message </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5749556543982933551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5749556543982933551' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5749556543982933551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5749556543982933551'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/email-server-types.html' title='E‑mail server types'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8423477477895413893</id><published>2010-06-07T23:03:00.004+05:30</published><updated>2010-07-06T22:14:20.107+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Email Sending'/><title type='text'>Simple java Program for sending mails</title><summary type='text'>package com.abc;import javax.mail.*;import javax.mail.internet.*;import java.util.*;public class SendingEmail { public void postMail( String recipients[ ], String subject, String message , String from) throws MessagingException {     boolean debug = false;      //Set the host smtp address      java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());      Properties props =</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8423477477895413893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8423477477895413893' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8423477477895413893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8423477477895413893'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/06/simple-java-program-for-sending-mails.html' title='Simple java Program for sending mails'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4245825680511175711</id><published>2010-05-22T13:04:00.002+05:30</published><updated>2010-07-06T22:14:45.960+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DI'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring : Good Points</title><summary type='text'>1. IF you are using DI using constructor .. u have to make the constructor as public ... private / protected / default wont work</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4245825680511175711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4245825680511175711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4245825680511175711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4245825680511175711'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/05/spring-good-points.html' title='Spring : Good Points'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3242230044143544159</id><published>2010-05-18T00:28:00.002+05:30</published><updated>2010-07-06T22:14:59.305+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Class Loader'/><title type='text'>ClassLoader Documentaion</title><summary type='text'>A class loader is an object that is responsible for loading classes. The * class ClassLoader is an abstract class.  Given the  * href="#name"&gt;binary name of a class, a class loader should attempt to * locate or generate data that constitutes a definition for the class.  A * typical strategy is to transform the name into a file name and then read a * "class file" of that name from a file system. *</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3242230044143544159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3242230044143544159' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3242230044143544159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3242230044143544159'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/05/classloader-documentaion.html' title='ClassLoader Documentaion'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4376359343469586794</id><published>2010-05-13T23:44:00.003+05:30</published><updated>2010-07-06T22:22:23.505+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Container'/><category scheme='http://www.blogger.com/atom/ns#' term='BeanFactory'/><category scheme='http://www.blogger.com/atom/ns#' term='ApplicationContext'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Life cycle of a bean with Bean Factory Container and ApplicationContext Container</title><summary type='text'>1 The container finds the bean’s definition and instantiates the bean.2 Using dependency injection, Spring populates all of the properties asspecified in the bean definition.3 If the bean implements the BeanNameAware interface, the factory callssetBeanName() passing the bean’s ID.4 If the bean implements the BeanFactoryAware interface, the factory callssetBeanFactory(), passing an instance of </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4376359343469586794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4376359343469586794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4376359343469586794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4376359343469586794'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/05/life-cycle-of-bean-with-bean-factory.html' title='Life cycle of a bean with Bean Factory Container and ApplicationContext Container'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6962720686948601073</id><published>2010-05-13T23:35:00.002+05:30</published><updated>2010-07-06T22:22:48.050+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='BeanFactory'/><category scheme='http://www.blogger.com/atom/ns#' term='ApplicationContext'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Spring : Difference between BeanFactory and ApplicationContext</title><summary type='text'>ApplicationContext interface extends the BeanFactory interface.A big difference between an application context and a bean factory is howsingleton beans are loaded. A bean factory lazily loads all beans, deferring beancreation until the getBean() method is called. An application context is a bitsmarter and preloads all singleton beans upon context startup. By preloadingsingleton beans, you ensure </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6962720686948601073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6962720686948601073' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6962720686948601073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6962720686948601073'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/05/spring-difference-between-beanfactory.html' title='Spring : Difference between BeanFactory and ApplicationContext'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4049246719588124290</id><published>2010-05-13T18:11:00.002+05:30</published><updated>2010-07-06T22:23:10.786+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>DomParserExample</title><summary type='text'>import java.io.IOException;import java.util.ArrayList;import java.util.Iterator;import java.util.List;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.parsers.ParserConfigurationException;import org.w3c.dom.Document;import org.w3c.dom.Element;import org.w3c.dom.NodeList;import org.xml.sax.SAXException;public class DomParserExample { //No </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4049246719588124290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4049246719588124290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4049246719588124290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4049246719588124290'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/05/domparserexample.html' title='DomParserExample'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2091663450700333339</id><published>2010-05-13T18:03:00.004+05:30</published><updated>2010-07-05T15:15:12.508+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Parser'/><category scheme='http://www.blogger.com/atom/ns#' term='DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>Very Simple XML DOMParser</title><summary type='text'>Sample XML :&lt;?xml version="1.0" encoding="UTF-8"?&gt;                                                                                                                                                                                          Java Code : import java.io.IOException;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2091663450700333339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2091663450700333339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2091663450700333339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2091663450700333339'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/05/very-simple-xml-domparser.html' title='Very Simple XML DOMParser'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1917207447374100253</id><published>2010-05-06T12:50:00.002+05:30</published><updated>2011-03-09T17:36:36.752+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Abstraction'/><category scheme='http://www.blogger.com/atom/ns#' term='DataHiding'/><title type='text'>What the difference between data hiding and abstraction?</title><summary type='text'>Data hiding means, hiding some essential information or as you say a data from other end user or users and abstraction in simple language means hiding complex features and showing only essential features of any object.

In data hiding we hide the information by using access specifier private, public and protected..so it means we are hiding info from outside the world.But in abstrastion we express</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1917207447374100253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1917207447374100253' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1917207447374100253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1917207447374100253'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/05/what-difference-between-data-hiding-and.html' title='What the difference between data hiding and abstraction?'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-7409842753303647806</id><published>2010-05-05T15:20:00.002+05:30</published><updated>2011-03-09T17:40:01.337+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hibernate'/><title type='text'>Features of Hibernate</title><summary type='text'>*  Hibernate 3.0 provides three full-featured query facilities: Hibernate Query Language, the newly enhanced Hibernate Criteria Query API, and enhanced support for queries expressed in the native SQL dialect of the database.

* Filters for working with temporal (historical), regional or permissioned data.

* Enhanced Criteria query API: with full support for projection/aggregation and subselects.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/7409842753303647806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=7409842753303647806' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7409842753303647806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7409842753303647806'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/05/features-of-hibernate.html' title='Features of Hibernate'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-7590376968608135274</id><published>2010-04-29T15:18:00.006+05:30</published><updated>2010-07-05T15:09:06.858+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Program'/><category scheme='http://www.blogger.com/atom/ns#' term='Singleton'/><title type='text'>Singleton Class (very Good one)</title><summary type='text'>public class Singleton {    private static Singleton instance;    //public static int i =1 ;    private Singleton() {    }    public static Singleton getInstance() { // Using Double Checked Locking method        if (instance == null) {            synchronized (instance) {                if (instance == null) {                    instance = new Singleton();                }            }        }</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/7590376968608135274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=7590376968608135274' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7590376968608135274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7590376968608135274'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/04/singleton-class-very-good-one.html' title='Singleton Class (very Good one)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1185625721761268536</id><published>2010-04-29T00:44:00.002+05:30</published><updated>2010-07-06T22:27:08.209+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Depth First Polymorphism'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Depth First Polymorphism - Java</title><summary type='text'>public class DepthFirstPoly { public void Test(Object obj){  System.out.println("Obj"); } public void Test(String obj){  System.out.println("String"); } /*public void Test(StringBuffer obj){  System.out.println("String"); }*/ public static void main(String[] args) {  //System.out.println();  DepthFirstPoly dfs = new DepthFirstPoly();  dfs.Test(null);   }}Output :String</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1185625721761268536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1185625721761268536' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1185625721761268536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1185625721761268536'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/04/depth-first-polymorphism-java.html' title='Depth First Polymorphism - Java'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3057147753586783970</id><published>2010-04-23T00:14:00.003+05:30</published><updated>2011-03-09T17:46:31.719+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Primitives'/><title type='text'>Primitive Assignments - V. Important</title><summary type='text'>The equal ( = ) sign is used for assigning a value to a variable, and it's cleverly named the assignment operator. There are actually 12 assignment operators, but only the five most commonly used

You can assign a primitive variable using a literal or the result of an expression.

Take a look at the following:

int x = 7;     // literal assignment
int y = x + 2; // assignment with an expression
/</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3057147753586783970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3057147753586783970' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3057147753586783970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3057147753586783970'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/04/primitive-assignments-v-important.html' title='Primitive Assignments - V. Important'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5957641521170969816</id><published>2010-04-11T17:01:00.002+05:30</published><updated>2010-07-06T22:29:55.362+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forwards'/><category scheme='http://www.blogger.com/atom/ns#' term='Finance'/><category scheme='http://www.blogger.com/atom/ns#' term='Futures'/><title type='text'>Futures vs Forwards</title><summary type='text'>FUTURES are simply Fixed Date ForwardsForward and Futures Contracts are essentially the same, the differences being largely in conventions regarding the quotation of prices. Since we are familiar with Forward Contracts, the similarities/ differences of the Futures contracts are set off against the features of Forward Contracts, as below:Forwards Futures 1. Traded in the OTC (over the counter) or </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5957641521170969816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5957641521170969816' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5957641521170969816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5957641521170969816'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/04/futures-vs-forwards.html' title='Futures vs Forwards'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5114890955167156620</id><published>2010-03-30T14:40:00.002+05:30</published><updated>2010-07-06T22:42:13.957+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Interpreted'/><category scheme='http://www.blogger.com/atom/ns#' term='Compiled'/><title type='text'>Complied vs Interpreted languages</title><summary type='text'>Programming languages generally fall into one of two categories: Compiled or Interpreted. With a compiled language, code you enter is reduced to a set of machine-specific instructions before being saved as an executable file. With interpreted languages, the code is saved in the same format that you entered. Compiled programs generally run faster than interpreted ones because interpreted programs </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5114890955167156620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5114890955167156620' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5114890955167156620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5114890955167156620'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/03/complied-vs-interpreted-languages.html' title='Complied vs Interpreted languages'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5206816964865401329</id><published>2010-03-26T17:57:00.002+05:30</published><updated>2010-07-06T22:42:34.812+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><title type='text'>Puzzle : The Elder Twin</title><summary type='text'>One day Kerry celebrated her birthday. Two days later her older twin brother, Terry, celebrated his birthday. How come?Sol :  At the time she went into labor, the mother of the twins was traveling by boat. The older twin, Terry, was born first early on March 1st. The boat then crossed the international date line (or anytime zone line) and Kerry, the younger twin, was born on February the 28th. In</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5206816964865401329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5206816964865401329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5206816964865401329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5206816964865401329'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/03/puzzle-elder-twin.html' title='Puzzle : The Elder Twin'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3094699317925015337</id><published>2010-03-24T19:23:00.001+05:30</published><updated>2010-07-06T22:42:58.647+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Variable Names'/><title type='text'>Why can’t variable names start with numbers?</title><summary type='text'>Because then a string of digits would be a valid identifier as well as a valid number.int 17 = 497;int 42 = 6 * 9;String 1111 = "Totally text";int 2d = 42;double a = 2d;What is a? 2.0? or 42?Hint, if you don't get it, d after a number means the number before it is a double literalhttp://stackoverflow.com/questions/342152/why-cant-variable-names-start-with-numbers</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3094699317925015337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3094699317925015337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3094699317925015337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3094699317925015337'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/03/why-cant-variable-names-start-with.html' title='Why can’t variable names start with numbers?'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2933887214991144706</id><published>2010-01-21T12:55:00.003+05:30</published><updated>2011-03-09T17:57:59.971+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Subquery'/><category scheme='http://www.blogger.com/atom/ns#' term='Correlated'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Correlated SubQuery -- Find Nth maximum value in SQL Server</title><summary type='text'>Use Pubs
Go

Create table Employee
(
Eid int,
Name varchar(10),
Salary money
)
Go

Insert into Employee values (1,'harry',3500)
Insert into Employee values (2,'jack',2500)
Insert into Employee values (3,'john',2500)
Insert into Employee values (4,'xavier',5500) 
Insert into Employee values (5,'steven',7500) 
Insert into Employee values (6,'susana',2400) 
Go
A simple query that can find the </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2933887214991144706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2933887214991144706' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2933887214991144706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2933887214991144706'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/correlated-subquery-find-nth-maximum.html' title='Correlated SubQuery -- Find Nth maximum value in SQL Server'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8079324770236900370</id><published>2010-01-21T11:33:00.002+05:30</published><updated>2010-07-06T22:43:48.525+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Queries'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Important SQL Queries</title><summary type='text'>Deleting only dupes from a table DELETE FROM mytableWHERE EXISTS (  SELECT name1, age1, MIN(id) as cf_prog    FROM mytable TAB02WHERE ( mytable.name1 = TAB02.name1 ) AND          ( mytable.age1 = TAB02.age1 ) GROUP BY name1, age1  HAVING ( count(*) &gt; 1 ) AND             ( mytable.id &lt;&gt; cf_prog )   )Selecting Dupes from a tableselect cargo_id, dest_idfrom routing t1where( select count(*)from </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8079324770236900370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8079324770236900370' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8079324770236900370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8079324770236900370'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/important-sql-queries.html' title='Important SQL Queries'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2924721230869498197</id><published>2010-01-21T01:06:00.002+05:30</published><updated>2010-07-05T15:12:20.483+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Where'/><category scheme='http://www.blogger.com/atom/ns#' term='Having'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Where vs Having</title><summary type='text'>SQL Standard says that WHERE restricts the result set before returning rows and HAVING restricts the result set after bringing all the rows. So WHERE is faster. On SQL Standard compliant DBMSs in this regard, only use HAVING where you cannot put the condition on a WHERE (like computed columns in some RDBMSs.)HAVING clauses should be used to apply conditions on group functions, otherwise they can </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2924721230869498197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2924721230869498197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2924721230869498197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2924721230869498197'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/where-vs-having.html' title='Where vs Having'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-249738229389020876</id><published>2010-01-20T22:59:00.002+05:30</published><updated>2010-07-05T15:48:43.850+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cursor'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>SQL - Cursors</title><summary type='text'>SQL Server is very good at handling sets of data. For example, you can use a single UPDATE statement to update many rows of data. There are times when you want to loop through a series of rows a perform processing for each row. In this case you can use a cursor.Please note that cursors are the SLOWEST way to access data inside SQL Server. The should only be used when you truly need to access one </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/249738229389020876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=249738229389020876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/249738229389020876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/249738229389020876'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/sql-cursors.html' title='SQL - Cursors'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4075933607746211404</id><published>2010-01-20T22:25:00.003+05:30</published><updated>2010-07-06T22:44:16.569+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>SQL interview Questions</title><summary type='text'>Q: 1. What are two methods of retrieving SQL? A: SELECT statement, cursors</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4075933607746211404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4075933607746211404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4075933607746211404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4075933607746211404'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/sql-interview-questions.html' title='SQL interview Questions'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6990420573174707721</id><published>2010-01-20T14:07:00.002+05:30</published><updated>2011-03-09T18:26:45.421+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><title type='text'>Master list of Java interview questions - 115 questions</title><summary type='text'>What is the difference between procedural and object-oriented programs?
 a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessible </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6990420573174707721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6990420573174707721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6990420573174707721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6990420573174707721'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/master-list-of-java-interview-questions.html' title='Master list of Java interview questions - 115 questions'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8722396338604584559</id><published>2010-01-20T11:28:00.002+05:30</published><updated>2010-07-06T22:44:43.285+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='collection'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='queue'/><category scheme='http://www.blogger.com/atom/ns#' term='priority queue'/><title type='text'>Queue Interface</title><summary type='text'>Queue InterfaceA Queue is designed to hold a list of "to-dos," or things to be processed in some way. Although other orders are possible, queues are typically thought of as FIFO (first-in, first-out). Queues support all of the standard Collection methods and they also add methods to add and subtract elements and review queue elements.PriorityQueue This class is new with Java 5. Since the </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8722396338604584559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8722396338604584559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8722396338604584559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8722396338604584559'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/queue-interface.html' title='Queue Interface'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6957338740367037984</id><published>2010-01-20T11:27:00.007+05:30</published><updated>2011-03-09T20:16:54.430+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='collection'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Map Interface'/><title type='text'>Map Interface</title><summary type='text'>Map Interface
A Map cares about unique identifiers. You map a unique key (the ID) to a specific value, where both the key and the value are, of course, objects. You're probably quite familiar with Maps since many languages support data structures that use a key/value or name/value pair. The Map implementations let you do things like search for a value based on the key, ask for a collection of </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6957338740367037984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6957338740367037984' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6957338740367037984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6957338740367037984'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/map-interface.html' title='Map Interface'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2967873029963181123</id><published>2010-01-20T11:27:00.006+05:30</published><updated>2011-03-09T18:49:23.336+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='collection'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Set'/><title type='text'>Collection  - Set</title><summary type='text'>Set Interface
A Set cares about uniqueness—it doesn't allow duplicates. Your good friend the equals() method determines whether two objects are identical (in which case only one can be in the set). The three Set implementations are described in the following sections.

HashSet : A HashSet is an unsorted, unordered Set. It uses the hashcode of the object being inserted, so the more efficient your </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2967873029963181123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2967873029963181123' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2967873029963181123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2967873029963181123'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/collection-set.html' title='Collection  - Set'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6832971396478280492</id><published>2010-01-20T11:17:00.002+05:30</published><updated>2010-07-06T22:48:54.635+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='collection'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='list'/><title type='text'>About Collections (List)</title><summary type='text'>List InterfaceA List cares about the index. The one thing that List has that non-lists don't have is a set of methods related to the index. Those key methods include things like get(int index), indexOf(Object o), add(int index, Object obj), and so on. All three List implementations are ordered by index position—a position that you determine either by setting an object at a specific index or by </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6832971396478280492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6832971396478280492' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6832971396478280492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6832971396478280492'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/about-collections-list.html' title='About Collections (List)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8831359143288097419</id><published>2010-01-20T10:59:00.002+05:30</published><updated>2010-07-05T15:20:41.482+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='collection'/><category scheme='http://www.blogger.com/atom/ns#' term='Union'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='intersection'/><category scheme='http://www.blogger.com/atom/ns#' term='difference'/><title type='text'>Union, Intersection, Difference Operations on Sets(Collection)</title><summary type='text'>Bulk operations are particularly well suited to Sets; when applied, they perform standard set-algebraic operations. Suppose s1 and s2 are sets. Here's what bulk operations do: s1.containsAll(s2) — returns true if s2 is a subset of s1. (s2 is a subset of s1 if set s1 contains all of the elements in s2.) s1.addAll(s2) — transforms s1 into the union of s1 and s2. (The union of two sets is the set </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8831359143288097419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8831359143288097419' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8831359143288097419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8831359143288097419'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/union-intersection-difference.html' title='Union, Intersection, Difference Operations on Sets(Collection)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5583913746070966937</id><published>2010-01-19T18:34:00.002+05:30</published><updated>2010-07-06T22:49:13.858+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Class Loader'/><title type='text'>Class Loading fundamentals</title><summary type='text'>The first thing that happens when you run Java on Beetle is that you try to access Beetle.main( ) (a static method), so the loader goes out and finds the compiled code for the Beetle class (this happens to be in a file called Beetle.class). In the process of loading it, the loader notices that it has a base class (that’s what the extends keyword says), which it then loads. This will happen </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5583913746070966937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5583913746070966937' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5583913746070966937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5583913746070966937'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/class-loading-fundamentals.html' title='Class Loading fundamentals'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8385430316896125133</id><published>2010-01-19T16:39:00.003+05:30</published><updated>2010-07-05T17:28:29.273+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Iterator'/><category scheme='http://www.blogger.com/atom/ns#' term='For Each'/><title type='text'>Advantages of Iterator over forEach</title><summary type='text'>1. Iterator is a design pattern and is a light-weight container.2. Iterator doesnt need to know what the collection is (i.e. a List or sth else )3. Using iterator ,we can remove the current element. The for-each loop hides the iterator, so you cannot call remove. Therefore, the for-each loop is not usable for filtering.4. Similarly, forEach is not usable for loops where you need to replace </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8385430316896125133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8385430316896125133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8385430316896125133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8385430316896125133'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/advantages-of-iterator-over-foreach.html' title='Advantages of Iterator over forEach'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4093481104085891392</id><published>2010-01-18T18:53:00.003+05:30</published><updated>2010-07-05T17:46:54.432+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Finalize'/><category scheme='http://www.blogger.com/atom/ns#' term='Runtime Exception'/><title type='text'>If a Runtime Exception is thrown in the finalize method</title><summary type='text'>finalizeprotected void finalize()                 throws Throwable Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup. The general contract of finalize is that it is invoked if and when the JavaTM virtual machine has </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4093481104085891392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4093481104085891392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4093481104085891392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4093481104085891392'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/if-runtime-exception-is-thrown-in.html' title='If a Runtime Exception is thrown in the finalize method'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-16951883501647527</id><published>2010-01-18T18:38:00.003+05:30</published><updated>2010-07-07T10:28:56.267+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Throwable'/><title type='text'>Throwable class hierarchy</title><summary type='text'>http://www.cs.colorado.edu/~main/javasupp/throwable.html</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/16951883501647527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=16951883501647527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/16951883501647527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/16951883501647527'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/throwable-class-hierarchy.html' title='Throwable class hierarchy'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-3267777566682823343</id><published>2010-01-18T18:30:00.001+05:30</published><updated>2010-07-07T10:32:57.108+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Runtime Exception'/><category scheme='http://www.blogger.com/atom/ns#' term='Finally'/><title type='text'>Exception inside finally block</title><summary type='text'>An issue for which there's no really neat solution is that code in the finally block could itself throw an exception. In this case, the exception in the finally block would be thrown from the exception instead of any exception occurring inside the try block. Since code in the finally block is intended to be "cleanup" code, we could decide to treat exceptions occurring there as secondary, and to </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/3267777566682823343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=3267777566682823343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3267777566682823343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/3267777566682823343'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/exception-inside-finally-block.html' title='Exception inside finally block'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6612283897847515710</id><published>2010-01-18T18:13:00.002+05:30</published><updated>2010-07-07T10:38:03.822+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Final'/><title type='text'>Blank Final Variables</title><summary type='text'>A variable can be declared final. A final variable may only be assigned to once. It is a compile time error if a final variable is assigned to unless it is definitely unassigned (§16) immediately prior to the assignment.A blank final is a final variable whose declaration lacks an initializer. Once a final variable has been assigned, it always contains the same value. If a final variable holds a </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6612283897847515710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6612283897847515710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6612283897847515710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6612283897847515710'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/blank-final-variables.html' title='Blank Final Variables'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5042709982852318411</id><published>2010-01-18T16:44:00.002+05:30</published><updated>2010-07-07T17:04:31.337+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Generics'/><title type='text'>Creating Generic Methods</title><summary type='text'>Imagine you want to create a method that takes an instance of any type, instantiates an ArrayList of that type, and adds the instance to the ArrayList. The class itself doesn't need to be generic; basically we just want a utility method that we can pass a type to and that can use that type to construct a type safe collection. Using a generic method, we can declare the method without a specific </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5042709982852318411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5042709982852318411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5042709982852318411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5042709982852318411'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/creating-generic-methods.html' title='Creating Generic Methods'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-9208879770199398242</id><published>2010-01-18T16:25:00.003+05:30</published><updated>2011-03-10T22:45:51.277+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Generics'/><title type='text'>More on Generics</title><summary type='text'>look at the following statements and figure out which will compile:


1) List list = new ArrayList&lt;dog&gt;();
2) List aList = new ArrayList&lt;dog&gt;();
3) List foo = new ArrayList();
4) List cList = new ArrayList&lt;integer&gt;();
5) List bList = new ArrayList&lt;animal&gt;();
6) List dList = new ArrayList&lt;dog&gt;();

The correct answers (the statements that compile) are 1, 2, and 5. The three that won't compile are

</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/9208879770199398242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=9208879770199398242' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/9208879770199398242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/9208879770199398242'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/more-on-generics.html' title='More on Generics'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1534874477149554951</id><published>2010-01-18T14:04:00.002+05:30</published><updated>2010-07-07T19:33:57.068+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Generics'/><title type='text'>Generics Reloaded</title><summary type='text'>Generic collections give you the same benefits of type safety that you've always had with arrays, but there are some crucial differences that can bite you if you aren't prepared. Most of these have to do with polymorphism.You've already seen that polymorphism applies to the "base" type of the collection:List myList = new ArrayList();In other words, we were able to assign an ArrayList to a List </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1534874477149554951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1534874477149554951' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1534874477149554951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1534874477149554951'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/generics-reloaded.html' title='Generics Reloaded'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6675123303977223489</id><published>2010-01-18T12:35:00.002+05:30</published><updated>2010-07-07T19:32:22.913+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Overriding'/><category scheme='http://www.blogger.com/atom/ns#' term='Overloading'/><category scheme='http://www.blogger.com/atom/ns#' term='Polymorphism'/><title type='text'>Difference : Overloading and Overriding</title><summary type='text'>Argument(s) Overloaded Method : Must change. Must not change. Return type Overloaded Method :Can change. Overridden Method :Can't change except for covariant returns. Exceptions Overloaded Method :Can change. Overridden Method :Can reduce or climinate. Must not throw new or broader checked exceptions. Access Overloaded Method :Can change. Overridden Method :Must not make more restrictive (can be </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6675123303977223489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6675123303977223489' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6675123303977223489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6675123303977223489'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/difference-overloading-and-overriding.html' title='Difference : Overloading and Overriding'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8607557405406187433</id><published>2010-01-18T12:34:00.001+05:30</published><updated>2010-07-07T19:31:48.696+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Overriding'/><category scheme='http://www.blogger.com/atom/ns#' term='Overloading'/><category scheme='http://www.blogger.com/atom/ns#' term='Polymorphism'/><title type='text'>Polymorphism in Overloaded and Overridden Methods</title><summary type='text'>How does polymorphism work with overloaded methods? From what we just looked at, it doesn't appear that polymorphism matters when a method is overloaded. If you pass an Animal reference, the overloaded method that takes an Animal will be invoked, even if the actual object passed is a Horse. Once the Horse masquerading as Animal gets in to the method, however, the Horse object is still a Horse </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8607557405406187433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8607557405406187433' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8607557405406187433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8607557405406187433'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/polymorphism-in-overloaded-and.html' title='Polymorphism in Overloaded and Overridden Methods'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5773321802782978268</id><published>2010-01-18T12:33:00.002+05:30</published><updated>2010-07-07T19:33:45.183+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Overloading'/><category scheme='http://www.blogger.com/atom/ns#' term='Polymorphism'/><title type='text'>All about Overloading</title><summary type='text'>The rules are simple:Overloaded methods MUST change the argument list.Overloaded methods CAN change the return type.Overloaded methods CAN change the access modifier.Overloaded methods CAN declare new or broader checked exceptions.A method can be overloaded in the same class or in a subclass. In other words, if class A defines a dostuff(int i) method, the subclass B could define a dostuff (String</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5773321802782978268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5773321802782978268' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5773321802782978268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5773321802782978268'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/all-about-overloading.html' title='All about Overloading'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-8413529300463287845</id><published>2010-01-18T12:01:00.002+05:30</published><updated>2010-07-07T19:33:26.955+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Overriding'/><category scheme='http://www.blogger.com/atom/ns#' term='Polymorphism'/><title type='text'>Very Important concept about overriding</title><summary type='text'>If a method is overridden but you use a polymorphic (supertype) reference to refer to the subtype object with the overriding method, the compiler assumes you're calling the supertype version of the method. If the supertype version declares a checked exception, but the overriding subtype method does not, the compiler still thinks you are calling a method that declares an exception (more in Chapter</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/8413529300463287845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=8413529300463287845' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8413529300463287845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/8413529300463287845'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/very-important-concept-about-overriding.html' title='Very Important concept about overriding'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-7141430383649752110</id><published>2010-01-18T11:50:00.001+05:30</published><updated>2010-07-07T19:33:05.464+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Overriding'/><category scheme='http://www.blogger.com/atom/ns#' term='Polymorphism'/><title type='text'>All about overriding</title><summary type='text'>The rules for overriding a method are as follows:The argument list must exactly match that of the overridden method. If they don't match, you can end up with an overloaded method you didn't intend.The return type must be the same as, or a subtype of, the return type declared in the original overridden method in the superclass. (More on this in a few pages when we discuss covariant returns.)The </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/7141430383649752110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=7141430383649752110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7141430383649752110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7141430383649752110'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/all-about-overriding.html' title='All about overriding'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-1677056800391471424</id><published>2010-01-18T11:48:00.002+05:30</published><updated>2010-07-07T22:54:40.081+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Overriding'/><category scheme='http://www.blogger.com/atom/ns#' term='OOPS'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>Overriding and Exceptions</title><summary type='text'>The overriding method CAN throw any unchecked (runtime) exception, regardless of whether the overridden method declares the exception.The overriding method must NOT throw checked exceptions that are new or broader than those declared by the overridden method. For example, a method that declares a FileNotFoundException cannot be overridden by a method that declares a SQLException, Exception, or </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/1677056800391471424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=1677056800391471424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1677056800391471424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/1677056800391471424'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/overriding-and-exceptions.html' title='Overriding and Exceptions'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-6786330052451563613</id><published>2010-01-09T19:31:00.002+05:30</published><updated>2010-07-06T18:35:31.477+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='NaN'/><title type='text'>using NaN</title><summary type='text'>Not A Number"NaN" stands for "not a number". "Nan" is produced if a floating point operation has some input parameters that cause the operation to produce some undefined result. For example, 0.0 divided by 0.0 is arithmetically undefined. Taking the square root of a negative number is also undefined.0.0 / 0.0   -&gt;  NaNMath.sqrt(-2.0)  -&gt;  NaNOperations involving NaNDouble.NaN + Double.NaN  -&gt;  </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/6786330052451563613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=6786330052451563613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6786330052451563613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/6786330052451563613'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/using-nan.html' title='using NaN'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2454157087936105747</id><published>2010-01-09T19:28:00.002+05:30</published><updated>2010-07-07T22:55:03.912+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Nucleus'/><title type='text'>Nice Ques (Asked in Nucleus Software Written Test)</title><summary type='text'>if(new Boolean("true") == new Boolean("true")){   System.out.println("True");  }else{   System.out.println("False");  }Ans : False</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2454157087936105747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2454157087936105747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2454157087936105747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2454157087936105747'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/nice-ques-asked-in-nucleus-software.html' title='Nice Ques (Asked in Nucleus Software Written Test)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5156241440335577509</id><published>2010-01-09T19:24:00.004+05:30</published><updated>2010-07-07T23:08:50.682+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Static'/><category scheme='http://www.blogger.com/atom/ns#' term='Overriding'/><category scheme='http://www.blogger.com/atom/ns#' term='Nucleus'/><title type='text'>Static Override (Asked in Nucleus Software written Test)</title><summary type='text'>A static method can not override a non static method. Also, a non static method can not override a static method.We'll get compile time error in both cases.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5156241440335577509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5156241440335577509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5156241440335577509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5156241440335577509'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/static-override-asked-in-nucleus.html' title='Static Override (Asked in Nucleus Software written Test)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2759128332611205210</id><published>2010-01-09T00:38:00.001+05:30</published><updated>2010-07-07T23:07:04.993+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Adobe'/><title type='text'>Adobe interview Ques (4th Jan 10)</title><summary type='text'>public class GreatQues { public static void main(String[] args) {    int a = 10;  int b =20;   System.out.println("Sum of the numbers : " + a + b); //System.out.println("Diff of the numbers : " + a - b); // (Line 1) Compile time error System.out.println("Product of the numbers : " + a * b); System.out.println("Division of the numbers : " + a / b);    short x = 127;  short y = 140;  //short z = x </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2759128332611205210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2759128332611205210' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2759128332611205210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2759128332611205210'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/adobe-interview-ques-4th-jan-10.html' title='Adobe interview Ques (4th Jan 10)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-592724922862851167</id><published>2010-01-08T23:13:00.003+05:30</published><updated>2010-07-06T18:46:06.948+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle'/><title type='text'>Mind Blowing Puzzle</title><summary type='text'>Puzzle  :  There are 50 1-cent coins on the table. Initially all coins are tails up. Close your eyes, and I will turn over 10 random coins. The task is to divide all the coins into two groups blindly, so that the groups have an equal number of heads up.Solution : We r sure that there r 10 heads in the group ..So separate 10 random coins to form a group.. and remaining 40 will be in another group.</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/592724922862851167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=592724922862851167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/592724922862851167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/592724922862851167'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/mind-blowing-puzzle.html' title='Mind Blowing Puzzle'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-7616548963755234057</id><published>2010-01-07T21:31:00.003+05:30</published><updated>2010-07-07T19:37:03.530+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>Basic UNIX commands</title><summary type='text'>ls -&gt; List all filesls-l -&gt; Lists files in long format; e.g. the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified. ls-a -&gt; Lists all files including those whose name starts with a .(dot)</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/7616548963755234057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=7616548963755234057' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7616548963755234057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/7616548963755234057'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/basic-unix-commands.html' title='Basic UNIX commands'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4205759563358786672</id><published>2010-01-07T18:13:00.002+05:30</published><updated>2010-07-07T23:09:35.022+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>How to connect two databases</title><summary type='text'>If the two databases are on the same server you can reference either one in the other by using the fully qualified object name: [database].[owner].[object]</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4205759563358786672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4205759563358786672' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4205759563358786672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4205759563358786672'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/how-to-connect-two-databases.html' title='How to connect two databases'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-5989647777531278275</id><published>2010-01-04T01:14:00.001+05:30</published><updated>2010-07-07T23:13:21.532+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Circular Queue'/><category scheme='http://www.blogger.com/atom/ns#' term='queue'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Java Implementation of Circular Queue</title><summary type='text'>public class CircularQueue { int[] cirQueue; int front; int rear; // int size; public CircularQueue(int size) {  cirQueue = new int[size];  front = rear = -1; } public static void main(String[] args) {  CircularQueue myQueue = new CircularQueue(5);  myQueue.insert(1);  myQueue.insert(2);  myQueue.insert(3);  myQueue.insert(4);  myQueue.insert(5);  myQueue.delete();  myQueue.insert(6);  </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/5989647777531278275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=5989647777531278275' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5989647777531278275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/5989647777531278275'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/java-implementation-of-circular-queue.html' title='Java Implementation of Circular Queue'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2864379762933476289</id><published>2010-01-04T01:13:00.001+05:30</published><updated>2010-07-07T19:36:54.561+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tower Of Hanoi'/><category scheme='http://www.blogger.com/atom/ns#' term='DataStructure'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>My Hanoi Prog</title><summary type='text'>public class TowerOfHanoi { static int moves = 0; public static void main(String[] args) {  char fromPole = 'A';  char toPole = 'B';  char withPole = 'C';  hanoi(3, fromPole, toPole, withPole); } public static void hanoi(int height , char fromPole , char toPole , char withPole){  if(height &gt;= 1){   hanoi(height - 1, fromPole, withPole ,toPole);   move(fromPole , toPole);   hanoi(height - 1,</summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2864379762933476289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2864379762933476289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2864379762933476289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2864379762933476289'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/my-hanoi-prog.html' title='My Hanoi Prog'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-4940184681930170210</id><published>2010-01-04T01:02:00.003+05:30</published><updated>2010-07-07T23:17:02.094+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Tower Of Hanoi'/><category scheme='http://www.blogger.com/atom/ns#' term='DataStructure'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Java Program for Tower of Hanoi problem (Very Simple and Easy solution)</title><summary type='text'>This program implements the ``classical'' recursive algorithm that solves the Towers of Hanoi problem. The recursive algorithm is based on the observation that moving a tower of height h from pole A to pole B is equivalent to moving a tower of height h-1 to pole C, them moving the last disk from pole A to pole B, and finally moving the the tower from pole C to B. So the problem of moving a tower </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/4940184681930170210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=4940184681930170210' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4940184681930170210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/4940184681930170210'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/java-program-for-tower-of-hanoi-problem.html' title='Java Program for Tower of Hanoi problem (Very Simple and Easy solution)'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-513455140400390930.post-2330641058689268951</id><published>2010-01-04T00:21:00.002+05:30</published><updated>2010-07-08T08:35:38.854+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virtual Memory'/><category scheme='http://www.blogger.com/atom/ns#' term='OS'/><title type='text'>What is Virtual Memory</title><summary type='text'>Virtual memory is a common part of most operating systems on desktop computers. It has become so common because it provides a big benefit for users at a very low cost.Most computers today have something like 64 or 128 megabytes of RAM (random-access memory) available for use by the CPU (central processing unit). Often, that amount of RAM is not enough to run all of the programs that most users </summary><link rel='replies' type='application/atom+xml' href='http://www.pragyarawal.co.cc/feeds/2330641058689268951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=513455140400390930&amp;postID=2330641058689268951' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2330641058689268951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/513455140400390930/posts/default/2330641058689268951'/><link rel='alternate' type='text/html' href='http://www.pragyarawal.co.cc/2010/01/what-is-virtual-memory.html' title='What is Virtual Memory'/><author><name>Pragya Rawal</name><uri>http://www.blogger.com/profile/10378286744113609248</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://2.bp.blogspot.com/_8FudkcmDOOc/TQ-b1oFSsKI/AAAAAAAAC7Y/lryPUOQLoJU/S220/123.jpg'/></author><thr:total>0</thr:total></entry></feed>
