<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-793753016956489323</atom:id><lastBuildDate>Sat, 18 Jul 2026 05:08:41 +0000</lastBuildDate><category>java</category><category>multitasking</category><category>multithreading in java</category><category>DI</category><category>Inversion of control</category><category>jdbc</category><category>git</category><category>heap</category><category>increase heap size</category><category>interview questions</category><category>java heap space</category><category>mongodb installation</category><category>spring framework</category><category>threads</category><category>types of multitasking in java</category><category>DDL</category><category>DML</category><category>Dependency Injection</category><category>Factory pattern</category><category>OutOfMemoryError</category><category>REST</category><category>SQL statements</category><category>Servlet</category><category>TCL</category><category>amend</category><category>apache httpclient</category><category>database</category><category>delete tag in git</category><category>eclipse</category><category>equinox</category><category>exception interview questions.</category><category>git tag</category><category>gzip</category><category>http components</category><category>immutability</category><category>immutable objects</category><category>insert image</category><category>installation</category><category>integrate</category><category>inter thread communication</category><category>java web start</category><category>javaws</category><category>javaws.exe</category><category>jersey</category><category>linux</category><category>maven</category><category>mongo</category><category>mongo on windows</category><category>mongod</category><category>mongodb</category><category>monitor</category><category>notifyAll</category><category>object lock</category><category>object oriented programming</category><category>oops</category><category>oracle</category><category>osgi</category><category>out of memory error</category><category>outofmemory error</category><category>perm gen</category><category>post request using httpclient</category><category>rebase</category><category>rowset</category><category>runnable interface</category><category>sonar</category><category>synchronization</category><category>synchronized blocks</category><category>synchronized methods</category><category>thread class</category><category>thread creation</category><category>ubuntu</category><category>unix</category><category>untar</category><category>wait</category><category>weblogic</category><title>Java World</title><description>A blog about java tutorials , java interview questions.</description><link>http://javasolutionsonline.blogspot.com/</link><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><generator>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-61691052678227788</guid><pubDate>Thu, 18 Sep 2014 07:34:00 +0000</pubDate><atom:updated>2014-10-12T20:35:56.449+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><category domain="http://www.blogger.com/atom/ns#">rebase</category><title>How to resolve merge conflicts after git rebase ?</title><atom:summary type="text">


Have you faced a merge conflict while performing git rebase operation ? This is quite possible &amp;nbsp;if two commits modify the same line in the same file. Now git is confused which change to apply.


Git gives us several options in such a case :

git rebase --continue




git rebase --abort


git rebase --skip



1. git rebase --continue

Used in case if you have manually corrected the </atom:summary><link>http://javasolutionsonline.blogspot.com/2014/09/Howtoresolvemergeconflictsaftergitrebase.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>1</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-4854888548684168248</guid><pubDate>Mon, 01 Sep 2014 15:15:00 +0000</pubDate><atom:updated>2014-09-01T20:45:11.631+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">gzip</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><category domain="http://www.blogger.com/atom/ns#">unix</category><category domain="http://www.blogger.com/atom/ns#">untar</category><title>How to open or Untar a &quot;.tar.gz&quot; file in Ubuntu ?</title><atom:summary type="text">
Lets say that the name of file is - test.tar.gz


 From the terminal, change to the directory where tar file is located. 
Now to extract the file to the current directory , run the command&amp;nbsp;
&amp;nbsp;tar -zxvf test.tar.gz

To extract the file to a specific directory , run tar -C /directory_name -zxvf test.tar.gz

NOTE : The extensions .tgz and .tar.gz
are equivalent and both signify that a tar </atom:summary><link>http://javasolutionsonline.blogspot.com/2014/09/how-to-open-or-untar-targz-file-in.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-1172431389370629442</guid><pubDate>Thu, 01 May 2014 09:42:00 +0000</pubDate><atom:updated>2014-05-01T15:13:37.035+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">amend</category><category domain="http://www.blogger.com/atom/ns#">git</category><title>How to amend the last commit in Git ?</title><atom:summary type="text">



Have you ever faced a situation where you left something out of your last commit ? It may be a file or an extra change to a file you just committed.&amp;nbsp;

Such kind of scenarios can easily be handled with Git amend command .

How does it work ?
1.&amp;nbsp;Just add the file using git add ( Like what we do for &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; normal commit ).
&amp;nbsp; &amp;nbsp; git add &amp;lt;file&amp;gt;

2. Now</atom:summary><link>http://javasolutionsonline.blogspot.com/2014/05/how-to-amend-last-commit-in-git.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHeHHAjmb4WQrhJTO5bfcT0exBaRaIREDMrfUXZZS1neQLFwoWmI9Q5QwpJFhYE4bVdWYHqVlNOyMEwZE-qo5DK8Xk7oI3hwqSmlKEkSgU-SxvdMsXTKMNLpzQvrMC9Ip19iBhT54y5yw/s72-c/git-logo.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-3097362120516913541</guid><pubDate>Tue, 29 Apr 2014 14:54:00 +0000</pubDate><atom:updated>2014-04-29T20:24:57.093+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">maven</category><title>Unbound Classpath Variable M2_REPO error in Eclipse</title><atom:summary type="text">
Problem Description :

My Eclipse IDE gives errors whenever I try to build the project . The problems tab shows the message as given below 

Unbound classpath variable: &#39;M2_REPO/...&#39;





Solution :


M2_REPO is a classpath variable that tells eclipse where maven repository is on your disk .





Setting M2_REPO&amp;nbsp;

Open Eclipse Preferences [Window -&amp;gt; Preferences]


Go to [Java -&amp;gt; Build</atom:summary><link>http://javasolutionsonline.blogspot.com/2014/04/unbound-classpath-variable-m2repo-error.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin9bOSz-Ewhgm2th_R2fskW4JQkK9rBxMRjC1QPwQdkHvS8drGPeMrNuabwechoDmctJ1KQtQt_dMnbyFFtj4FmF1seH46rdrUt6NLN2nijqzYZL2PdPQKjqUz6DqY-xQp2DuUOVutUNY/s72-c/unbound-classpath-variable-m2-repo.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-5374711601255135647</guid><pubDate>Sun, 30 Mar 2014 12:14:00 +0000</pubDate><atom:updated>2014-03-30T17:44:51.567+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">jdbc</category><category domain="http://www.blogger.com/atom/ns#">rowset</category><title>What is JDBC RowSet ?</title><atom:summary type="text">



A RowSet (&amp;nbsp;javax.sql.RowSet&amp;nbsp;) is an object that encapsulates a set of rows from either Java Database Connectivity (JDBC) result sets or tabular data sources like a file or spreadsheet. RowSets support component-based development models like JavaBeans, with a standard set of properties and an event notification mechanism.Interfaces that extends&amp;nbsp;RowSet&amp;nbsp;are &amp;nbsp;:
JdbcRowSet</atom:summary><link>http://javasolutionsonline.blogspot.com/2014/03/what-is-jdbc-rowset_30.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU5W0Jyd5dn6d-iAY6NhaI20iNz4HIVuEJghOmk0JeKmbAJpxtM1HbEozFwusxhsgJnprpvBem5tBQqPCQ0Hoyfr9Lb8CzkQEkkJVx6iZynEWDbBU59XkjnSS1h2KI1LjzAZ6ppXdVX28/s72-c/Java+World.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-344607136680530431</guid><pubDate>Sat, 29 Mar 2014 17:01:00 +0000</pubDate><atom:updated>2014-03-29T22:31:47.084+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">equinox</category><category domain="http://www.blogger.com/atom/ns#">osgi</category><title>How to run a standalone OSGi server</title><atom:summary type="text">

This post shows how to run Equinox as an OSGi stand-alone runtime.



Download org.eclipse.osgi_.jar from here. The same jar exists in eclipse installation directory ( plugin folder ). Copy the jar and paste into a new directory.

Example -&amp;nbsp;C:\osgi\org.eclipse.osgi_3.9.1.v20140110-1610.jar



Starting the OSGi server :


java -jar org.eclipse.osgi_3.9.1.v20140110-1610.jar -console</atom:summary><link>http://javasolutionsonline.blogspot.com/2014/03/how-to-run-standalone-osgi-server.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOLI4U9vEX7XLJKyPe9Vk6lqlRkqOFfIXdr4eQV63YzQV81IUDoHNpXV1hm4haKNcB24H1JW0fGp-piGb24vl1nmwJhu-Mm6Zm4kGjKl7uNBAnNRxrm9aghgkPbIUTSttc4Ffym7rNdWg/s72-c/Starting+OSGi+server.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-1802842205938309235</guid><pubDate>Sat, 29 Mar 2014 12:29:00 +0000</pubDate><atom:updated>2014-03-29T17:59:44.146+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">jdbc</category><title>Understanding the JDBC architecture.</title><atom:summary type="text">





The JDBC API uses a driver manager and database-specific drivers to provide transparent connectivity to heterogeneous databases.



The JDBC driver manager ensures that the correct driver is used to access each data source.







&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;

The JDBC Architecture consists of two layers:

The JDBC
     API&amp;nbsp;, which provides the&amp;nbsp;application-to-JDBC Driver Manager&amp;</atom:summary><link>http://javasolutionsonline.blogspot.com/2014/03/understanding-jdbc-architecture.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU5W0Jyd5dn6d-iAY6NhaI20iNz4HIVuEJghOmk0JeKmbAJpxtM1HbEozFwusxhsgJnprpvBem5tBQqPCQ0Hoyfr9Lb8CzkQEkkJVx6iZynEWDbBU59XkjnSS1h2KI1LjzAZ6ppXdVX28/s72-c/Java+World.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-4657577622890645899</guid><pubDate>Thu, 27 Feb 2014 06:13:00 +0000</pubDate><atom:updated>2014-02-27T11:47:11.422+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">exception interview questions.</category><category domain="http://www.blogger.com/atom/ns#">interview questions</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>java exception interview questions and answers</title><atom:summary type="text">



What is Exception in Java ?
What happens when a method throws an exception ?
Explain Java Exception Hierarchy?
What are important methods of Java Exception Class?
What is OutOfMemoryError in Java?
What is the concept of multi-catch block ?
What is difference between Checked and Unchecked Exception in Java?
What is difference between throw and throws keyword in Java?
What happens when </atom:summary><link>http://javasolutionsonline.blogspot.com/2014/02/java-exception-interview-questions-and.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ACyTr__gFtiq28vHEehe1xKXOSh1YDjQmMfQrina4h6sMafqAmAA34CZGwguS33f3ZQfhz22ouTFuz769uqCCXYeo5wYaO3pIAUkhawgt_6WG-iSROHjCYZUvcz_QpGyOZHj8zu1Tlk/s72-c/exception+call+stack.jpg" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-265915208904410033</guid><pubDate>Tue, 25 Feb 2014 12:46:00 +0000</pubDate><atom:updated>2014-12-08T15:30:10.981+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">interview questions</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">Servlet</category><title>Servlet interview questions</title><atom:summary type="text">




What is a Servlet ?
What is the hierarchy of servlet api ?
What are the uses of Servlet?
What are the advantages of Servlet over CGI?
Define servlet life cycle?
Why do we need a constructor in a servlet if we use the init method ?
How the servlet is loaded ?
How a Servlet is unloaded ?
What is the GenericServlet ?
What is the difference between GenericServlet and HttpServlet ?
Why is </atom:summary><link>http://javasolutionsonline.blogspot.com/2014/02/servlet-interview-questions.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkTIHKlwjpeUnoyw64Xcth32Y-egB_NR1D54kdwO7ScjWYbS90e_AQqoIGguFHpZ6Dj6Aq16HpMY4mG65ziHPLF9l0Oz82z0JvXyULaXY0QTn2mD_-508ci2jdTfP3sTMoHFWzsqGi7K8/s72-c/servlet-hierarchy.jpg" height="72" width="72"/><thr:total>4</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-1140618803122388044</guid><pubDate>Mon, 24 Feb 2014 11:27:00 +0000</pubDate><atom:updated>2014-02-24T18:40:09.298+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">object oriented programming</category><category domain="http://www.blogger.com/atom/ns#">oops</category><title>Object Oriented Programming ( OOP ) concepts interview questions</title><atom:summary type="text">



What is an Object ?
What is Class ?
What are the principle concepts of OOPS?
What is Inheritance?
What is Polymorphism?
What is Abstraction?
What is Encapsulation?
What is the difference between abstraction and encapsulation?
Explain the different forms of Polymorphism.
What is runtime polymorphism or dynamic method dispatch?
What is Dynamic Binding?
What is method overloading?
What is method</atom:summary><link>http://javasolutionsonline.blogspot.com/2014/02/object-oriented-programming-concepts-OOP-interview-questions.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>14</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-829090219967676635</guid><pubDate>Sun, 23 Feb 2014 18:03:00 +0000</pubDate><atom:updated>2014-08-09T12:30:26.632+05:30</atom:updated><title>Collections interview questions in java</title><atom:summary type="text">


GENERAL COLLECTION QUESTIONS 


What is Java collection framework ?
Why Collection does not extends Serializable or Cloneable ?
Why Map interface does not extends Collection interface ?
What is UnsupportedOperationException?
What is read-only collection ? How can we create the same?
What are thread safe collections ?
What are concurrent collection classes?

 LIST INTERFACE


What is List </atom:summary><link>http://javasolutionsonline.blogspot.com/2014/02/collections-interview-questions-in-java.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>7</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.580994 37.654286000000042 49.768361999999996 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-6396601944352628978</guid><pubDate>Thu, 20 Feb 2014 17:20:00 +0000</pubDate><atom:updated>2014-12-08T15:22:03.013+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">multitasking</category><category domain="http://www.blogger.com/atom/ns#">multithreading in java</category><title>20 basic Multithreading Interview Questions</title><atom:summary type="text">
Hi. &amp;nbsp;This post dedicated to some basic questions on Java multithreading concepts.
Multithreading is a topic that is asked in all the interviews, and &amp;nbsp;especially in companies working on banking solutions .










What is a Thread?
What is thread priority ? How can we set the priority of a thread ?
What is the difference between Thread and Process?
What are the advantages and </atom:summary><link>http://javasolutionsonline.blogspot.com/2014/02/20-basic-multithreading-interview.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>1</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.5815185000000014 37.654286000000042 49.7688865 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-5313355026853958323</guid><pubDate>Sun, 16 Feb 2014 11:36:00 +0000</pubDate><atom:updated>2014-02-18T12:07:20.488+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">jersey</category><category domain="http://www.blogger.com/atom/ns#">REST</category><title>Creating a Simple Web Service with Jersey Framework</title><atom:summary type="text">



What are RESTful Web Services?
HTTP Methods

 Constraints
 
Client–Server
Layered System
Stateless Communication
Caching Constraint
Code on Demand
Uniform Interface


When should we use REST ?
When to use SOAP based design
JAX-RS
Important annotations in JAX-RS
Implementations of JAX-RS
Introducing Jersey
Sample application in Jersey
 
Step 1 - Creating maven project
Step 2 - Adding </atom:summary><link>http://javasolutionsonline.blogspot.com/2014/02/creating-simple-web-service-with-jersey.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXKw1EKmTp4FqsSvpNkGMBrTtZHzc4S2nO0fpj5D2x4GyJlYU0DY_j42le9Intj55_LiO_tIGeUL5fyzNg5HryKRabQkeRNufNOqAbqsNwI30ZMD0ej9_haTWSMaIlCXfg731KbVPr6F0/s72-h120-c/jersey_logo.png" height="72" width="72"/><thr:total>7</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.5815185000000014 37.654286000000042 49.7688865 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-7488832483697503200</guid><pubDate>Fri, 31 Jan 2014 12:20:00 +0000</pubDate><atom:updated>2014-01-31T17:59:20.605+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">sonar</category><title>Sonar - Effective code Reviewer</title><atom:summary type="text">



What is Code Analysis ?
Benefits
Introduction to Sonar
Sonar Dashboard 
Features

Unit tests inspection
Quality Profiles
Issues Drilldown
Application Lifecycle Management
Time Machine








Well we all know that code analysis is a very basic and important part of software development process . &amp;nbsp;It doesn&#39;t matter how much experience we have in software development , we usually end up in</atom:summary><link>http://javasolutionsonline.blogspot.com/2014/01/sonar-effective-code-reviewer.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgepWoDdvHWRnSG2_fa4dGdhgEDLCVquTlY6hEzvuWVkMDQnFXwJ7w6k8m4TCiQIX0ELFMV8J_dB9VtQSehB4G5EvIuDkhgsWIm_j00mc75zMe_VomKvJ1BU57u4opMJgU1irY4g8SrbkM/s72-h86-c/sonarqube.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.5815185000000014 37.654286000000042 49.7688865 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-8158342237885400779</guid><pubDate>Sun, 12 Jan 2014 15:24:00 +0000</pubDate><atom:updated>2014-01-13T23:32:43.073+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">DI</category><category domain="http://www.blogger.com/atom/ns#">Factory pattern</category><category domain="http://www.blogger.com/atom/ns#">Inversion of control</category><category domain="http://www.blogger.com/atom/ns#">spring framework</category><title>Dependency Injection Vs. Factory pattern.</title><atom:summary type="text">


Dependency Injection ( DI ) and Factory pattern might look related to each other but there is a difference between them .&amp;nbsp;Factory take the responsibility of creating an object while DI inverse the process of how an object obtains the dependencies . DI gives the&amp;nbsp;responsibility&amp;nbsp;of injecting&amp;nbsp;dependencies&amp;nbsp;to an external entity.

Example :&amp;nbsp;

1. While using a factory , </atom:summary><link>http://javasolutionsonline.blogspot.com/2014/01/dependency-injection-vs-factory-pattern.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBIJYrCvGJ2jWPNFa1lH-FzKpM2W4-HZyCM6YNFnbF18hujeHKQg36-pNxiT9cUEGb-WuvN_6S6RKS41Wvo_oqnaPoQ0iWEBY-1dWi551ub5hFq_oMEqtrDvsyJ2jdM8RC-tYIkPsN6pw/s72-c/spring+logo.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.962880000000041</georss:point><georss:box>-8.5815185000000014 37.654286000000042 49.7688865 120.27147400000004</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-5688606965422336851</guid><pubDate>Sat, 11 Jan 2014 21:12:00 +0000</pubDate><atom:updated>2014-01-12T21:40:56.637+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">DI</category><category domain="http://www.blogger.com/atom/ns#">Inversion of control</category><category domain="http://www.blogger.com/atom/ns#">spring framework</category><title>Dependency Injection with Spring framework</title><atom:summary type="text">



What is Dependency Injection ( DI ) ?
Types of DI.
Advantages.
DI with Spring framework. 
Constructor based DI or Setter based DI  
















What is Dependency Injection ( DI ) ?



Dependency Injection means inversion of responsibilities with regard to how an object&amp;nbsp;obtains&amp;nbsp;references&amp;nbsp;to collaborating objects.&amp;nbsp;When applying DI , objects are given their dependencies</atom:summary><link>http://javasolutionsonline.blogspot.com/2014/01/dependency-injection-with-spring.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUFKS2639zzZpCWYC_YvBpTosHZ9jT2q1TeMjNZgD3BGfoLjkHx7XVJSikU1O1m5hrY8y7xJ-5zQM-MtEHj4-i1wNMRGrAIdnkwY7n-pIFNpJtGvVtMEC9NzS3uygCsLKXkOB7jtfJ4H0/s72-c/spring+logo.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>28.608637026615575 77.2283935546875</georss:point><georss:box>28.385636026615575 76.9056700546875 28.831638026615575 77.5511170546875</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-8414084344983224175</guid><pubDate>Mon, 04 Nov 2013 16:45:00 +0000</pubDate><atom:updated>2013-11-05T10:33:12.006+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">java web start</category><category domain="http://www.blogger.com/atom/ns#">javaws</category><category domain="http://www.blogger.com/atom/ns#">javaws.exe</category><title>What is Java Web Start ( javaws.exe ) ?</title><atom:summary type="text">


Java Web Start is an application deployment technology that can be used to download and run java applications from the web . The download and installation can be done with a single step without going through the complicated installation process.

Java Web Start also&amp;nbsp;caches the downloaded application on local machine so the subsequent invocations are instantaneous as all the required </atom:summary><link>http://javasolutionsonline.blogspot.com/2013/11/what-is-java-web-start-javawsexe.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU5W0Jyd5dn6d-iAY6NhaI20iNz4HIVuEJghOmk0JeKmbAJpxtM1HbEozFwusxhsgJnprpvBem5tBQqPCQ0Hoyfr9Lb8CzkQEkkJVx6iZynEWDbBU59XkjnSS1h2KI1LjzAZ6ppXdVX28/s72-c/Java+World.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Gurgaon, Haryana, India</georss:featurename><georss:point>28.4594965 77.026638300000059</georss:point><georss:box>28.236067 76.703914800000064 28.682926000000002 77.349361800000054</georss:box></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-1685581931557479537</guid><pubDate>Mon, 07 Oct 2013 14:01:00 +0000</pubDate><atom:updated>2013-10-08T11:49:53.108+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">inter thread communication</category><category domain="http://www.blogger.com/atom/ns#">notifyAll</category><category domain="http://www.blogger.com/atom/ns#">wait</category><title>Inter thread communication showing the usage of notifyAll() method.</title><atom:summary type="text">


Lets start with the methods that facilitates Inter Thread Communication in Java . All these methods are present in java.lang.Object class .

wait()

wait() method is used to instruct the current thread to release the object&#39;s lock and get suspended until some other thread invokes notify() or notifyAll() method for the same monitor.



notify()

notify() method is used to wake up a thread that </atom:summary><link>http://javasolutionsonline.blogspot.com/2013/10/inter-thread-communication-showing.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcAXH025irX0f8XS104VIOByYX54FfjSOEFPruZJ42-DswJT7QKL6oDZ_ry4EEDcg34MTGrMLCl4xrOMGY2Gi1xxjMUpUXEwoAi2XchNnzKYNUjdJuYvSkaB76ZBjNcJVS6LzTtoAHA0o/s72-c/images.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-9124157656978223306</guid><pubDate>Fri, 04 Oct 2013 19:47:00 +0000</pubDate><atom:updated>2013-10-12T21:53:02.368+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">apache httpclient</category><category domain="http://www.blogger.com/atom/ns#">http components</category><category domain="http://www.blogger.com/atom/ns#">post request using httpclient</category><title>Sending POST request using http components HttpClient</title><atom:summary type="text">



Hi . In my previous posts , we talked about the basics of HttpClient ( Click here&amp;nbsp;) and how to use it safely in a multithreaded environment (&amp;nbsp;Click here ) &amp;nbsp;. In this post we will learn how we can send POST request to a server using HttpClient .&amp;nbsp;




Get Ready :
Download HttpClient dependencies and put them in the classpath of your application&amp;nbsp;or if you are a&amp;nbsp;</atom:summary><link>http://javasolutionsonline.blogspot.com/2013/10/sending-post-request-using-http.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGAYxu7Q0Lq55D-yliz9VYZAUE36Ny8PvO1HiCQjpyi5OSRXXntClIHYorr9if3phCooDdMggIFqTJHMK3fFnPL4JiPeTbQ6fcD27fv7yd1w3GhJccrEH1NVj_bYPrgqGst3k6cut7SUs/s72-c/httpcomponents.png" height="72" width="72"/><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-7896633259756139145</guid><pubDate>Sat, 21 Sep 2013 18:01:00 +0000</pubDate><atom:updated>2013-10-06T14:42:54.971+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">monitor</category><category domain="http://www.blogger.com/atom/ns#">multitasking</category><category domain="http://www.blogger.com/atom/ns#">multithreading in java</category><category domain="http://www.blogger.com/atom/ns#">object lock</category><category domain="http://www.blogger.com/atom/ns#">synchronization</category><category domain="http://www.blogger.com/atom/ns#">synchronized blocks</category><category domain="http://www.blogger.com/atom/ns#">synchronized methods</category><title>Intrinsic Locks and Synchronization</title><atom:summary type="text">
What is Synchronization ?
Synchronization is a way to control the access to a shared resource in multithreaded environment in such a way that only one thread can access a shared resource at a time.&amp;nbsp;Synchronization is achieved through the concept of monitor. A monitor is an exclusive lock that is obtained on an object by a thread when a synchronized method is called on the object ( or a </atom:summary><link>http://javasolutionsonline.blogspot.com/2013/09/intrinsic-locks-and-synchronization.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-5586420560751169669</guid><pubDate>Fri, 20 Sep 2013 19:10:00 +0000</pubDate><atom:updated>2013-09-21T00:40:25.595+05:30</atom:updated><title>Race condition in Concurrency</title><atom:summary type="text">
The situation where multiple threads try to operate on a shared resource without proper synchronization &amp;nbsp;and sequence of their operations interleave is &amp;nbsp;Race Condition ( Also see Thread interference and Memory consistency errors) .

Example 1 .
The most basic example to describe a Race condition is a Counter class &amp;nbsp;that increments value of an instance variable .&amp;nbsp;

class </atom:summary><link>http://javasolutionsonline.blogspot.com/2013/09/race-condition-in-concurrency.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-7340691796209312749</guid><pubDate>Sat, 14 Sep 2013 14:47:00 +0000</pubDate><atom:updated>2013-10-05T14:27:46.893+05:30</atom:updated><title>OOP concept in Java</title><atom:summary type="text">





Hi Guys !!! So this blog is all about the Object Oriented Programming &amp;nbsp;concepts . Lets start from the very basic concept of Object and Class .

What is an Object ?
Well It is the most basic concept and a key to understand the Object-Oriented programming . Object is an entity that has two characteristics , &amp;nbsp;State and Behavior . Some examples of real world object can be : Bike , </atom:summary><link>http://javasolutionsonline.blogspot.com/2013/09/oop-concept-in-java.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU5W0Jyd5dn6d-iAY6NhaI20iNz4HIVuEJghOmk0JeKmbAJpxtM1HbEozFwusxhsgJnprpvBem5tBQqPCQ0Hoyfr9Lb8CzkQEkkJVx6iZynEWDbBU59XkjnSS1h2KI1LjzAZ6ppXdVX28/s72-c/Java+World.png" height="72" width="72"/><thr:total>17</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-4385161675649336996</guid><pubDate>Wed, 11 Sep 2013 06:09:00 +0000</pubDate><atom:updated>2013-09-13T22:46:36.097+05:30</atom:updated><title>Using HttpClient safely in a Multi-threaded environment.</title><atom:summary type="text">
In my previous post ( Understanding commons HttpClient with example.)&amp;nbsp;, we discussed about the basics of HttpClient with an example . In this post we will learn how we can use HttpClient in a multi-threaded environment.



Why use HttpClient in Multi-threaded environment ?

Now that&#39;s a good question . Suppose we need to download multiple files simultaneously .For example &amp;nbsp;in my </atom:summary><link>http://javasolutionsonline.blogspot.com/2013/09/using-httpclient-safely-in-multi.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-6829311828668001725</guid><pubDate>Mon, 09 Sep 2013 05:31:00 +0000</pubDate><atom:updated>2013-09-09T18:56:56.703+05:30</atom:updated><title>Understanding commons HttpClient with example.</title><atom:summary type="text">

What is HttpClient :
HttpClient is a client side &amp;nbsp;HTTP transport library whose purpose is to transmit and receive HTTP messages.&amp;nbsp;The HTTP (Hyper Text Transfer Protocol ) is the most significant protocol used on the internet today. HttpClient can be used by anyone building HTTP-aware client applications such as Web Browsers , Web services clients or any system that uses HTTP protocol </atom:summary><link>http://javasolutionsonline.blogspot.com/2013/09/understanding-commons-httpclient-with.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-793753016956489323.post-3052136707622291141</guid><pubDate>Tue, 03 Sep 2013 17:46:00 +0000</pubDate><atom:updated>2013-09-14T21:30:59.618+05:30</atom:updated><title>Thread interference and Memory consistency errors.</title><atom:summary type="text">

Generally threads communicates by sharing member variables and the Object references members refer to. Well this type of communication is extremely efficient but can cause two kind of problems :

1. Thread Interference&amp;nbsp;
2. Memory Consistency Errors&amp;nbsp;

Interference occurs when two operations , running in different threads , but acting on the same data , interleave.

See the Counter </atom:summary><link>http://javasolutionsonline.blogspot.com/2013/09/thread-interference-and-memory.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item></channel></rss>