<?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: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'><id>tag:blogger.com,1999:blog-9024223644062555890</id><updated>2024-08-30T18:41:46.579+05:30</updated><title type='text'>Java Technology</title><subtitle type='html'>Provided Solutions that i faced in my IT career.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>80</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-7989708731562102935</id><published>2013-12-25T20:25:00.001+05:30</published><updated>2013-12-25T20:25:14.449+05:30</updated><title type='text'>Data structures usefull links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.careerride.com/Data-Structure-Interview-Questions.aspx&quot;&gt;http://www.careerride.com/Data-Structure-Interview-Questions.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.dsalgo.com/&quot;&gt;http://www.dsalgo.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://uniqueminds.in/Thread-Data-Structures-and-Algorithm-Interview-Questions-for-Java-Programmers&quot;&gt;http://uniqueminds.in/Thread-Data-Structures-and-Algorithm-Interview-Questions-for-&lt;/a&gt;&lt;a href=&quot;http://uniqueminds.in/Thread-Data-Structures-and-Algorithm-Interview-Questions-for-Java-Programmers&quot;&gt;Java-Programmers&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.idevelopment.info/data/Programming/data_structures/overview/Data_Structures_Algorithms_Introduction.shtml&quot;&gt;http://www.idevelopment.info/data/Programming/data_structures/overview/Data_Structures_Algorithms_Introduction.shtml&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.javaworld.com/article/2073390/core-java/datastructures-and-algorithms--part-1.html&quot;&gt;http://www.javaworld.com/article/2073390/core-java/datastructures-and-algorithms--part-1.html&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/7989708731562102935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2013/12/data-structures-usefull-links.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/7989708731562102935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/7989708731562102935'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2013/12/data-structures-usefull-links.html' title='Data structures usefull links'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-6857098998303565380</id><published>2013-10-08T18:20:00.000+05:30</published><updated>2013-10-08T18:20:40.236+05:30</updated><title type='text'>how to know the  constraints on table in oracle..............</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
select * from user_cons_columns ucc, user_constraints uc&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
where uc.constraint_name=ucc.constraint_name&lt;/div&gt;
&lt;div&gt;
and uc.constraint_type=&#39;P&#39; and uc.table_name = &#39;Table Name&#39;;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
R = Referential Constraint/Foreign Key constraint&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
C = Check Constraint&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
P = Primary Key&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
U = Unique Key&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; text-align: justify;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small; line-height: 18px;&quot;&gt;(or)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;select&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;cons.owner &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;as child_owner,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;cons.table_name &amp;nbsp; &amp;nbsp; &amp;nbsp; as child_table,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;cons.constraint_name &amp;nbsp; &amp;nbsp; constaint_name,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;cons.constraint_type &amp;nbsp; &amp;nbsp; constraint_type,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;col.owner &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parent_owner,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;col.table_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parent_table,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;col.column_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;column_name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;from dba_cons_columns &amp;nbsp; &amp;nbsp; &amp;nbsp;col,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;dba_constraints &amp;nbsp; &amp;nbsp; &amp;nbsp; cons&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;where&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;cons.r_owner = col.owner&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;cons.r_constraint_name = col.constraint_name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;cons.table_name = &#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Table Name&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&#39;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;(or)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp;select *&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; all_constraints&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;where&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; r_constraint_name in&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; (select &amp;nbsp; &amp;nbsp; &amp;nbsp; constraint_name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; from&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;all_constraints&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; where&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;table_name=&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Table Name&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&#39;)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/6857098998303565380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2013/10/how-to-know-table-constraints-on-table.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6857098998303565380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6857098998303565380'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2013/10/how-to-know-table-constraints-on-table.html' title='how to know the  constraints on table in oracle..............'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-10434521645418723</id><published>2013-10-08T16:04:00.000+05:30</published><updated>2013-10-08T16:04:55.861+05:30</updated><title type='text'>Debugging techniques in Eclipse............</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://eclipsesource.com/blogs/2013/01/08/effective-java-debugging-with-eclipse/&quot;&gt;http://eclipsesource.com/blogs/2013/01/08/effective-java-debugging-with-eclipse/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.vogella.com/articles/EclipseDebugging/article.html&quot;&gt;http://www.vogella.com/articles/EclipseDebugging/article.html&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/10434521645418723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2013/10/debugging-techniques-in-eclipse.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/10434521645418723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/10434521645418723'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2013/10/debugging-techniques-in-eclipse.html' title='Debugging techniques in Eclipse............'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-2014050308163250562</id><published>2013-09-20T17:49:00.000+05:30</published><updated>2013-09-20T17:49:18.385+05:30</updated><title type='text'>Java API- Implementations</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Please refer the below site for the java open source &amp;nbsp;API &amp;amp; its implementations.&lt;br /&gt;
&lt;a href=&quot;http://java-source.net/&quot;&gt;http://java-source.net/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://freecode.com/tags/java-libraries&quot;&gt;http://freecode.com/tags/java-libraries&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.jdocs.com/page/AllLibraries&quot;&gt;http://www.jdocs.com/page/AllLibraries&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.theserverside.com/&quot;&gt;http://www.theserverside.com/&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/2014050308163250562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2013/09/java-api-implementations.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/2014050308163250562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/2014050308163250562'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2013/09/java-api-implementations.html' title='Java API- Implementations'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-3133026348136116370</id><published>2012-11-08T18:34:00.001+05:30</published><updated>2012-11-08T18:34:25.963+05:30</updated><title type='text'> how to find 2nd highest salary or 2nd lowest salary?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt;second highest&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;
SELECT&lt;br /&gt;

&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;
&lt;br /&gt;

&lt;/span&gt;
&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;*&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; employee e1
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;
WHERE&lt;br /&gt;

&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;
&lt;br /&gt;

&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;2 &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: magenta; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: magenta; font-size: xx-small;&quot;&gt;COUNT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;DISTINCT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;e2&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;Emp_Salary&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;))&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
 emp e2 &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;WHERE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt; e2&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;Emp_Salary
&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt; e1&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;Emp_Salary&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt;second lowest&lt;/span&gt;&lt;br /&gt;

SELECT&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;*&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; employee e1
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;

&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;
WHERE&lt;br /&gt;

&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;
&lt;br /&gt;

&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;2 &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: magenta; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: magenta; font-size: xx-small;&quot;&gt;COUNT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;DISTINCT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;e2&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;Emp_Salary&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;))&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;
 emp e2 &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;WHERE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt; e2&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;Emp_Salary
 &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt; e1&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: xx-small;&quot;&gt;Emp_Salary&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;margin-top: 0px;&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;search-highlight&quot;&gt;salary&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; TN a 
    &lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; n - &lt;span class=&quot;code-digit&quot;&gt;1&lt;/span&gt; = (&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; COUNT(&lt;span class=&quot;search-highlight&quot;&gt;salary&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; TN b &lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; b.&lt;span class=&quot;search-highlight&quot;&gt;salary&lt;/span&gt; &amp;gt; a.&lt;span class=&quot;search-highlight&quot;&gt;salary&lt;/span&gt;)&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;margin-top: 0px;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;margin-top: 0px;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;margin-top: 0px;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;margin-top: 0px;&quot;&gt;oracle&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;margin-top: 0px;&quot;&gt;..........&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;margin-top: 0px;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;margin-top: 0px;&quot;&gt;select max(sal) from emp where sal not in (select max(sal) from emp)&lt;/pre&gt;
&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: xx-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/3133026348136116370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/11/how-to-find-2nd-highest-salary-or-2nd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/3133026348136116370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/3133026348136116370'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/11/how-to-find-2nd-highest-salary-or-2nd.html' title=' how to find 2nd highest salary or 2nd lowest salary?'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-4078773541630630429</id><published>2012-10-01T20:52:00.003+05:30</published><updated>2012-10-01T20:54:53.466+05:30</updated><title type='text'>Datasource configuration for DB2 in Jboss 7.1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;lt;datasource jta=&quot;true&quot; jndi-name=&quot;java:jboss/datasources/DataSource&quot; pool-name=&quot;DataSource&quot; enabled=&quot;true&quot; use-java-context=&quot;true&quot; use-ccm=&quot;true&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connection-url&amp;gt;url&amp;lt;/connection-url&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;driver&amp;gt;db2jdbc&amp;lt;/driver&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pool&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;min-pool-size&amp;gt;10&amp;lt;/min-pool-size&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;max-pool-size&amp;gt;100&amp;lt;/max-pool-size&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;prefill&amp;gt;true&amp;lt;/prefill&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/pool&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;security&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;user-name&amp;gt;user&amp;lt;/user-name&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;password&amp;gt;pw&amp;lt;/password&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/security&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/datasource&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;drivers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;driver name=&quot;db2jdbc&quot; module=&quot;com.ibm.db2&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;driver-class&amp;gt;com.ibm.db2.jcc.DB2Driver&amp;lt;/driver-class&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xa-datasource-class&amp;gt;com.ibm.db2.jcc.DB2XADataSource&amp;lt;/xa-datasource-class&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/driver&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;/drivers&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create Folder Structure:jboss-as-7.1.1.Final\modules\com\ibm\db2\main&lt;br /&gt;
place Module,xml file and related jar files&lt;br /&gt;
&amp;lt;module xmlns=&quot;urn:jboss:module:1.1&quot; name=&quot;com.ibm.db2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;resources&amp;gt;&lt;br /&gt;
&amp;lt;resource-root path=&quot;db2jcc.jar&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;resource-root path=&quot;db2jcc_license_cu.jar&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/resources&amp;gt;&lt;br /&gt;
&amp;lt;dependencies&amp;gt;&lt;br /&gt;
&amp;lt;module name=&quot;javax.api&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;module name=&quot;javax.transaction.api&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;module name=&quot;javax.servlet.api&quot; optional=&quot;true&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/dependencies&amp;gt;&lt;br /&gt;
&amp;lt;/module&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and invoke from java code&lt;br /&gt;
..................................&lt;br /&gt;
&lt;br /&gt;
InitialContext context = new InitialContext();&lt;br /&gt;
&amp;nbsp;DataSource dataSource = (DataSource) context.lookup(&quot;java:jboss/datasources/SampleDS&quot;);&lt;br /&gt;
Connection connection = dataSource.getConnection();&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/4078773541630630429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/10/datasource-configuration-for-db2-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/4078773541630630429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/4078773541630630429'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/10/datasource-configuration-for-db2-in.html' title='Datasource configuration for DB2 in Jboss 7.1'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-7692751380115586298</id><published>2012-10-01T20:42:00.000+05:30</published><updated>2012-10-01T20:42:32.012+05:30</updated><title type='text'>Default radio button &amp; Dropdown values selected using spring mvc in jsp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt; 
&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:radiobutton&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;path&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;rBusiness&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&#39;rnmName&#39;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;id&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;rnmName&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;checked&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;checked&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
&amp;lt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:select&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;path&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;recordsPerPage&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:option&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;10&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;label&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;10&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:option&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;15&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;label&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;15&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:option&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;20&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;label&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;20&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:option&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;25&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;label&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;25&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;selected&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;selected&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:option&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;30&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;label&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;30&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:option&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;40&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;label&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;40&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:option&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;value&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;50&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f007f; font-size: x-small;&quot;&gt;label&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;50&quot;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f7f7f; font-size: x-small;&quot;&gt;form:select&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/7692751380115586298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/10/default-radio-button-dropdown-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/7692751380115586298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/7692751380115586298'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/10/default-radio-button-dropdown-values.html' title='Default radio button &amp; Dropdown values selected using spring mvc in jsp'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-6583558628476706562</id><published>2012-09-04T19:52:00.002+05:30</published><updated>2014-06-28T19:53:40.977+05:30</updated><title type='text'>Datasource configuration with Sql server 2008  in jboss 7.1.1  with jdk7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1.Configure the Datasource in standalone.xml&lt;br /&gt;
C:\Program Files\jboss-as-7.1.1.Final\standalone\configuration\standalone.xml&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
add below code under subsystem&lt;br /&gt;
&amp;lt;datasource jndi-name=&quot;java:jboss/datasources/SampleDS&quot; pool-name=&quot;SampleDS&quot; enabled=&quot;true&quot; use-java-context=&quot;true&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connection-url&amp;gt;jdbc:sqlserver://localhost\\SQLEXPRESS/Databases/EPS:4718;databaseName=SampleDB&amp;lt;/connection-url&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;driver&amp;gt;sqljdbc&amp;lt;/driver&amp;gt;&lt;br /&gt;
&amp;lt;pool&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;min-pool-size&amp;gt;10&amp;lt;/min-pool-size&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;max-pool-size&amp;gt;100&amp;lt;/max-pool-size&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;prefill&amp;gt;true&amp;lt;/prefill&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/pool&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;security&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;user-name&amp;gt;sa&amp;lt;/user-name&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;password&amp;gt;xxx&amp;lt;/password&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/security&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/datasource&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;driver name=&quot;sqljdbc&quot; module=&quot;com.microsoft.sqlserver.jdbc&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xa-datasource-class&amp;gt;com.microsoft.sqlserver.jdbc.SQLServerDataSource&amp;lt;/xa-datasource-class&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/driver&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Port Number will be Dynamic port of Your Sql Server 2008&lt;br /&gt;
&lt;br /&gt;
configure module info&lt;br /&gt;
create module.xml file under&amp;nbsp; &lt;br /&gt;
C:\Program Files\jboss-as-7.1.1.Final\modules&lt;br /&gt;
&lt;br /&gt;
create subdirectory:&lt;br /&gt;
C:\Program Files\jboss-as-7.1.1.Final\modules\com\microsoft\sqlserver\jdbc\main&lt;br /&gt;
&lt;br /&gt;
place module.xml and sqljdbc4.jar file&lt;br /&gt;
&lt;br /&gt;
module.xml&lt;br /&gt;
.......&lt;br /&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br /&gt;
&amp;lt;module xmlns=&quot;urn:jboss:module:1.1&quot; name=&quot;com.microsoft.sqlserver.jdbc&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;resources&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resource-root path=&quot;sqljdbc4.jar&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/resources&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;dependencies&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;module name=&quot;javax.api&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;module name=&quot;javax.transaction.api&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;module name=&quot;javax.servlet.api&quot; optional=&quot;true&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/dependencies&amp;gt;&lt;br /&gt;
&amp;lt;/module&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and invoke from java code&lt;br /&gt;
..................................&lt;br /&gt;
&lt;br /&gt;
InitialContext context = new InitialContext();&lt;br /&gt;
&amp;nbsp;DataSource dataSource = (DataSource) context.lookup(&quot;java:jboss/datasources/SampleDS&quot;);&lt;br /&gt;
Connection connection = dataSource.getConnection();&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/6583558628476706562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/09/datasource-configuration-with-sql.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6583558628476706562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6583558628476706562'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/09/datasource-configuration-with-sql.html' title='Datasource configuration with Sql server 2008  in jboss 7.1.1  with jdk7'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-7136242784498626818</id><published>2012-08-29T16:05:00.002+05:30</published><updated>2012-08-29T17:08:50.925+05:30</updated><title type='text'>how to set default selected item in dropdownlist in jsp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;SELECT id=&#39;naicsCode&#39; NAME=&#39;naicsCode&#39; class=&#39;textfield1&#39; selectedValue=&#39;&amp;lt;c:out value=&quot;${viewObject.naicsCode}&quot;/&amp;gt;&#39; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;%if(viewObject.getNaicsCode().equals(&quot;&quot;)){%&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value=&quot;&quot; selected=&quot;selected&quot;&amp;gt; &amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;%} else {%&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value=&quot;&amp;lt;%=viewObject.getNaicsCode()%&amp;gt;&quot; selected=&quot;selected&quot;&amp;gt;&amp;lt;%=viewObject.getNaicsCode()%&amp;gt;&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;%}%&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Agriculture, Forestry, Fishing and Hunting&#39; &amp;gt;Agriculture, Forestry, Fishing and Hunting&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Mining&#39; &amp;gt;Mining&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Utilities&#39; &amp;gt;Utilities&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Construction&#39; &amp;gt;Construction&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Manufacturing&#39; &amp;gt;Manufacturing&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Wholesale Trade&#39; &amp;gt;Wholesale Trade&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Retail Trade&#39; &amp;gt;Retail Trade&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Transportation and Warehousing&#39; &amp;gt;Transportation and Warehousing&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Information&#39; &amp;gt;Information&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Finance and Insurance&#39; &amp;gt;Finance and Insurance&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Real Estate and Rental and Leasing&#39; &amp;gt;Real Estate and Rental and Leasing&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Professional and Technical Services&#39; &amp;gt;Professional and Technical Services&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Management of Companies and Enterprises&#39; &amp;gt;Management of Companies and Enterprises&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Administrative and Waste Services&#39; &amp;gt;Administrative and Waste Services&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Educational Services&#39; &amp;gt;Educational Services&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Health Care and Social Assistance&#39; &amp;gt;Health Care and Social Assistance&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Arts, Entertainment and Recreation&#39; &amp;gt;Arts, Entertainment and Recreation&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Accommodation and Food Services&#39; &amp;gt;Accommodation and Food Services&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Other Services (Except Public Administration)&#39; &amp;gt;Other Services (Except Public Administration)&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE=&#39;Public Administration&#39; &amp;gt;Public Administration&amp;lt;/OPTION&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/SELECT&amp;gt;&lt;br /&gt;
&lt;br /&gt;
.............................................&lt;br /&gt;
&lt;br /&gt;
function SetSelectedIndex(dropdownlist,sVal)&lt;br /&gt;{&lt;br /&gt;var a = 
document.getElementById(dropdownlist);&lt;br /&gt;

for(i=0;i&amp;lt;a.length;i++)&lt;br /&gt;{&lt;br /&gt;if(a.options[i].value == 
sVal)&lt;br /&gt;{&lt;br /&gt;a.selectedIndex = i;&lt;br /&gt;}&lt;br /&gt;

}&lt;br /&gt;

}&lt;br /&gt;
&lt;br /&gt;
.................................&lt;br /&gt;
&lt;br /&gt;
&amp;lt;select name=&quot;states&quot;&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;for(int i=0;i&amp;lt;sL.size();i++)&lt;br /&gt;{ 
&lt;br /&gt;if (selState.equals(sL.get(ac)))&lt;br /&gt;{ %&amp;gt; &lt;br /&gt;&amp;lt;option 
value=&quot;&amp;lt;%=(String)sL.get(i)%&amp;gt;&quot;SELECTED&amp;gt;&amp;lt;%=(String)sL.get(i)%&amp;gt;&lt;br /&gt;&amp;lt;% 
}&lt;br /&gt;else &lt;br /&gt;{ %&amp;gt;&lt;br /&gt;&amp;lt;option 
value=&quot;&amp;lt;%=sL.get(i)%&amp;gt;&quot;&amp;gt;&amp;lt;%=sL.get(ac)%&amp;gt;&lt;br /&gt;&amp;lt;% } 
%&amp;gt;&lt;br /&gt;&amp;lt;/option&amp;gt; &lt;br /&gt;&amp;lt;%} %&amp;gt;&lt;br /&gt;&amp;lt;/select&amp;gt;&amp;nbsp; &lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/7136242784498626818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-to-set-default-selected-item-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/7136242784498626818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/7136242784498626818'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-to-set-default-selected-item-in.html' title='how to set default selected item in dropdownlist in jsp'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-5726298055914941850</id><published>2012-08-28T12:49:00.001+05:30</published><updated>2012-08-28T12:49:32.564+05:30</updated><title type='text'> how to find the number of tables in DB2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
SELECT COUNT(*) FROM syscat.tables&lt;br /&gt;WHERE tabschema = &#39;SSCSCRD1&#39;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/5726298055914941850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-to-find-number-of-tables-in-db2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/5726298055914941850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/5726298055914941850'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-to-find-number-of-tables-in-db2.html' title=' how to find the number of tables in DB2'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-7555176129943291123</id><published>2012-08-27T15:33:00.001+05:30</published><updated>2012-08-27T15:33:01.368+05:30</updated><title type='text'>Captca implementation in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;post-text&quot;&gt;
The three CAPTCHA libraries I&#39;ve used for Java are:&lt;br /&gt;


&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;JCaptcha&lt;/strong&gt; - This is the most configurable of the 
three, and pretty well documented. But we can&#39;t seem to get this to look
 right, no matter what. It also does audio and other unconventional 
CAPTCHAs&lt;br /&gt;
&lt;img alt=&quot;JCaptcha example&quot; src=&quot;http://jcaptcha.sourceforge.net/samples/SimpleListImageCaptchaEngineCaptcha_0.jpg&quot; /&gt;&lt;br /&gt;
&lt;a href=&quot;http://jcaptcha.sourceforge.net/&quot; rel=&quot;nofollow&quot;&gt;http://jcaptcha.sourceforge.net/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SimpleCaptcha&lt;/strong&gt; - This is reasonably configurable,
 and pretty well documented. I like the way this looks, but some people 
have trouble reading it.&lt;br /&gt;
&lt;img alt=&quot;SimpleCaptcha example&quot; src=&quot;http://simplecaptcha.sourceforge.net/images/Captcha.jpg&quot; /&gt;&lt;br /&gt;
&lt;a href=&quot;http://simplecaptcha.sourceforge.net/&quot; rel=&quot;nofollow&quot;&gt;http://simplecaptcha.sourceforge.net/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;icaptcha&lt;/strong&gt; - This is pretty poorly documented, but
 shouldn&#39;t be too hard to figure out from the examples. In our tests, we
 found this to be more readable than the other two (can be a good thing 
or a bad thing, depending on your target audience)&lt;br /&gt;
&lt;img alt=&quot;icaptcha example&quot; src=&quot;http://icaptcha.googlecode.com/files/2_img_test.jpg&quot; /&gt;&lt;br /&gt;
&lt;a href=&quot;http://code.google.com/p/icaptcha/&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/icaptcha/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
Our apps are Spring MVC based, and it was really easy to integrate these.&lt;br /&gt;


We just went with what looked best to us (icaptcha).&lt;br /&gt;

&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/7555176129943291123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/captca-implementation-in-java.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/7555176129943291123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/7555176129943291123'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/captca-implementation-in-java.html' title='Captca implementation in java'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-1972671325919286047</id><published>2012-08-09T11:13:00.001+05:30</published><updated>2012-08-10T19:40:08.879+05:30</updated><title type='text'>Things to carry to onsite useful links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://www.gadling.com/2008/11/13/top-10-things-you-must-pack-first-before-going-abroad/&lt;br /&gt;
http://www.scribd.com/doc/24947028/Things-to-Carry-When-Going-Onsite&lt;br /&gt;
&lt;br /&gt;
http://belkud.blogspot.in/2008/07/checklist-things-to-carry-for-travel-to.html&lt;br /&gt;
&lt;br /&gt;
http://matadornetwork.com/abroad/10-things-i-wish-id-known-before-studying-abroad/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/1972671325919286047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/things-to-carry-to-onsite-useful-links.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/1972671325919286047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/1972671325919286047'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/things-to-carry-to-onsite-useful-links.html' title='Things to carry to onsite useful links'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-8495448111064441868</id><published>2012-08-08T18:07:00.001+05:30</published><updated>2012-10-01T20:55:19.534+05:30</updated><title type='text'>OCR process in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;use apire libraries&lt;br /&gt;
&lt;br /&gt;
1.1 About OCR&lt;br /&gt;
OCR (Optical Character Recognition) is the technology that allows you to transform&lt;br /&gt;
images (e.g., images scanned from paper documents) into editable text-based&lt;br /&gt;
computer files.&lt;br /&gt;
&lt;br /&gt;
package com.jnet.ocr;&lt;br /&gt;
&lt;br /&gt;
import java.awt.image.BufferedImage;&lt;br /&gt;
import java.io.File;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
&lt;br /&gt;
import javax.imageio.ImageIO;&lt;br /&gt;
&lt;br /&gt;
import com.asprise.util.ocr.OCR;&lt;br /&gt;
&lt;br /&gt;
public class OCRMain {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* @param args&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* @throws IOException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*/&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) throws IOException {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; OCR.setLibraryPath(&quot;C:/WINDOWS/system/AspriseOCR.dll&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; BufferedImage image = ImageIO.read(new File(&quot;scanned-text-100dpi.jpg&quot;));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;height&quot; + image.getHeight());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;width&quot; + image.getWidth());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;minx&quot; + image.getMinX());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;minY&quot; + image.getMinY());&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; image = image.getSubimage(75, 250, 240, 20);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // String s = new OCR().recognizeEverything(image);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // recognizes both characters and barcodes&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String s = new OCR().recognizeEverything(image);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // prints the results.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;RESULTS: \n&quot; + s);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/8495448111064441868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/ocr-process-in-java.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/8495448111064441868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/8495448111064441868'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/ocr-process-in-java.html' title='OCR process in java'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-6108538571160868903</id><published>2012-08-04T15:13:00.001+05:30</published><updated>2012-08-04T15:13:03.829+05:30</updated><title type='text'>How many objects are created for a particular class how to find?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
class One&lt;br /&gt;
{&lt;br /&gt;
  static int count = 0;&lt;br /&gt;
  One()&lt;br /&gt;
  {&lt;br /&gt;
    count++;&lt;br /&gt;
    System.out.println(&quot;Number of Object created :&quot;+count);&lt;br /&gt;
  }&lt;br /&gt;
  public static void main(String[] args)&lt;br /&gt;
  {&lt;br /&gt;
    new One();&lt;br /&gt;
    new One();&lt;br /&gt;
    new One();&lt;br /&gt;
    new One();&lt;br /&gt;
    One o = new One();&lt;br /&gt;
  }&lt;br /&gt;
}




                         


   
    &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/6108538571160868903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-many-objects-are-created-for.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6108538571160868903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6108538571160868903'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-many-objects-are-created-for.html' title='How many objects are created for a particular class how to find?'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-4647096476174143316</id><published>2012-08-02T19:11:00.000+05:30</published><updated>2012-08-02T19:11:22.788+05:30</updated><title type='text'>ways to know new technologies in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://www.javaspecialists.eu/&lt;br /&gt;
http://refcardz.dzone.com/&lt;br /&gt;
http://freecode.com/tags/java&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/4647096476174143316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/ways-to-know-new-technologies-in-java.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/4647096476174143316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/4647096476174143316'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/ways-to-know-new-technologies-in-java.html' title='ways to know new technologies in java'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-2746725890727349292</id><published>2012-08-02T11:41:00.000+05:30</published><updated>2012-08-02T11:41:39.626+05:30</updated><title type='text'>how to dipaly processing on button in java script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;
var processing = false;&lt;br /&gt;
function submitPage(button){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(!processing){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; processing = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; button.style.color =&#39;#ffffff&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; button.value = &#39;Processing...&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }else{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;input type=&#39;submit&#39; name=&#39;submittor&#39; value=&#39;Create Customer&#39;&amp;nbsp; class=&#39;button&#39;&amp;nbsp;&amp;nbsp; onclick=&quot;return submitPage(this)&quot; /&amp;gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/2746725890727349292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-to-dipaly-processing-on-button-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/2746725890727349292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/2746725890727349292'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-to-dipaly-processing-on-button-in.html' title='how to dipaly processing on button in java script'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-4854340475943097677</id><published>2012-08-01T16:36:00.003+05:30</published><updated>2012-08-01T18:02:13.619+05:30</updated><title type='text'>how to get real path instead of fakepath in java script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; browserName&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;navigator&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;appName&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;browserName&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Microsoft Internet Explorer&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; soloNombre &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; encodeURI&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;soloNombre&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; soloNombre &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; soloNombre&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;C:%5Cfakepath%5C&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; soloNombre &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; decodeURI&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;soloNombre&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; alert&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;soloNombre&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;................................&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; dir=&quot;ltr&quot; lang=&quot;en&quot;&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Testing the FakePath String&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;form id=&quot;Form1&quot; action=&quot;&quot; method=&quot;post&quot;&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;&lt;span style=&quot;color: red;&quot;&gt;file&lt;/span&gt;&quot; /&amp;gt;&amp;lt;input type=&quot;button&quot; onclick=&quot;&lt;span style=&quot;color: red;&quot;&gt;alert(this.previousSibling.value);&lt;/span&gt;&quot; value=&quot;select file and press the button&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/4854340475943097677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-to-get-real-path-instead-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/4854340475943097677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/4854340475943097677'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/how-to-get-real-path-instead-of.html' title='how to get real path instead of fakepath in java script'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-3781663626251570460</id><published>2012-08-01T15:13:00.001+05:30</published><updated>2012-08-01T15:13:58.367+05:30</updated><title type='text'>password strength in jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;&amp;lt;script language=&quot;javascript&quot; src=&quot;js/jquery_password_strength_meter.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp; $(function () {&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;$(&#39;#password&#39;).keyup(function(){$(&#39;#result&#39;).html(passwordStrength($(&#39;#password&#39;).val(),$(&#39;#loginName&#39;).val()))});&amp;nbsp;&lt;br /&gt;&amp;nbsp;}); &lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;.style1 {&lt;br /&gt;&amp;nbsp;font-family: Geneva, Arial, Helvetica, sans-serif;&lt;br /&gt;&amp;nbsp;font-size: 12px;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;&amp;nbsp;&amp;lt;td width=&quot;40%&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;input type=&quot;text&quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;id=&quot;loginName&quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name=&quot;loginName&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;css=&quot;textfield1&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;initValue=&quot;${viewObject.loginName}&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;concord:event name=&quot;size&quot; handler=&quot;30&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;concord:event name=&quot;maxlength&quot; handler=&quot;9&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;concord:event name=&quot;onblur&quot; handler=&quot;if(validateLoginName(this,&#39;Login Name&#39;)){checkAvailability();}&quot;/&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td width=&quot;60%&quot;&amp;gt;&amp;lt;label&amp;gt;&lt;br /&gt;
&lt;br /&gt;&amp;nbsp;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;nbsp; valign=&quot;top&quot;&amp;gt;&amp;lt;table width=&quot;700&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td width=&quot;219&quot; align=&quot;right&quot;&amp;gt;Password:&amp;lt;span class=&quot;red&quot;&amp;gt;*&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td width=&quot;464&quot;&amp;gt;&amp;lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td width=&quot;47%&quot; height=&quot;33&quot;&amp;gt;&amp;lt;input name=&quot;password&quot;&amp;nbsp; type=&quot;password&quot; class=&quot;textfield1&quot; value=&#39;&amp;lt;c:out value=&quot;${viewObject.password}&quot;/&amp;gt;&#39; id=&quot;password&quot; maxlength=&quot;8&quot; size=&quot;30&quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td width=&quot;53%&quot; class=&quot;plft10&quot;&amp;gt;&amp;lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;font_grey10&quot;&amp;gt;Password Strength&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;img src=&quot;images/customer/password-strength.gif&quot; name=&quot;pstrength&quot; alt=&quot;&quot; width=&quot;93&quot; height=&quot;7&quot; /&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;span class=&quot;style1&quot; style=&quot;color:green;&quot; id=&#39;result&#39;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/table&amp;gt; &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/3781663626251570460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/password-strength-in-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/3781663626251570460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/3781663626251570460'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/08/password-strength-in-jquery.html' title='password strength in jquery'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-902945664041790237</id><published>2012-07-19T12:22:00.003+05:30</published><updated>2012-07-19T12:22:37.790+05:30</updated><title type='text'>facebook integration with java useful links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://faheemsohail.com/2012/03/integrating-java-spring-mvc-and-facebook-part-1/&lt;br /&gt;
http://cagrikilit.com/2011/01/06/restfb-an-easy-way-to-integrate-with-facebook/&lt;br /&gt;
http://www.intelligrape.com/blog/2010/11/14/integrate-java-application-with-facebook-using-graph-api/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/902945664041790237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/facebook-integration-with-java-useful.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/902945664041790237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/902945664041790237'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/facebook-integration-with-java-useful.html' title='facebook integration with java useful links'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-104264185800285850</id><published>2012-07-18T16:28:00.001+05:30</published><updated>2012-07-18T16:29:00.485+05:30</updated><title type='text'>XSLT useful links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
http://binodsuman.blogspot.in/2009/04/xslt-tutorial-using-java-and-xml.html&lt;br /&gt;
&lt;br /&gt;
http://www.vogella.com/articles/XSLT/article.html&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/104264185800285850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/xslt-useful-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/104264185800285850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/104264185800285850'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/xslt-useful-links.html' title='XSLT useful links'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-6132734951878196767</id><published>2012-07-17T16:13:00.001+05:30</published><updated>2012-10-10T20:23:38.639+05:30</updated><title type='text'>unix/linux commands for java developers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://javarevisited.blogspot.in/2011/05/unix-command-interview-questions.html&lt;br /&gt;
http://www.fromdev.com/2008/12/debugging-java-on-unixlinux-my-favorite.html&lt;br /&gt;
http://www.cs.carleton.edu/generic-course-info/unix.html &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/6132734951878196767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/unixlinux-commands-for-java-developers.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6132734951878196767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6132734951878196767'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/unixlinux-commands-for-java-developers.html' title='unix/linux commands for java developers'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-5485219412254073947</id><published>2012-07-11T19:01:00.000+05:30</published><updated>2012-07-18T16:30:11.699+05:30</updated><title type='text'>Java Interview Questions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q1.&amp;nbsp; Explain two main differences in List and Set.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0in 0in 0pt 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in; text-indent: 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q2:&amp;nbsp; Which Collection permits null values, HashMap or Hashtable.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer:&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q3: What is the super class of java.lang.Exception&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer:&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q4: How to achieve Runtime Polymorphism in Java&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q5: When you call Thread.start() method on the thread object, which state the thread will go in first.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q6: Is JVM platform independent?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q7: What are the methods of &lt;b&gt;Object&lt;/b&gt; class&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer:&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q8: How do you prevent a member variable in any object from getting serialized?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q9: Can two threads execute two different Synchronized methods of an object at the same time?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q10: Can you add objects to an ArrayList which has been declared as final.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q11: Can you call one constructor from another?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer:&lt;b&gt; &lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q12: Inheritance in java expresses which relationship?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q13: Can you extend from two classes?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q14: What is anonymous class?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q15: Can there be an abstract class with none of its methods declared as abstract?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q16: Can abstract class have constructor?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q17: Are static variables - instance variables or class variables?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q17: When you invoke run() method on instance of Thread class, will it start thread?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer: &lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q18: &lt;span style=&quot;background: none repeat scroll 0% 0% white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The command to eliminate a table from a database is:&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer:&lt;span style=&quot;background: none repeat scroll 0% 0% white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q19:&lt;span style=&quot;background: none repeat scroll 0% 0% white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; The result of a SQL SELECT statement is a(n)&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer:&lt;span style=&quot;background: none repeat scroll 0% 0% white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Q20:&lt;span style=&quot;background: none repeat scroll 0% 0% white; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; Which of the following is valid SQL for an Index?&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt 0.5in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Answer:&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/5485219412254073947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/java-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/5485219412254073947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/5485219412254073947'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/java-interview-questions.html' title='Java Interview Questions'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-3197936309692080357</id><published>2012-07-11T16:46:00.001+05:30</published><updated>2012-07-11T16:46:19.834+05:30</updated><title type='text'>Declaring ArrayList ae final in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;kwd&quot;&gt;&lt;span style=&quot;color: darkblue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt; &lt;div align=&quot;left&quot;&gt;
public&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
System.&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
}&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
}&lt;br /&gt;
o/p:2&lt;br /&gt;
&amp;nbsp;we can add the objects to the final declared ArrayList.&lt;br /&gt;
&lt;br /&gt;
if We want to prevent it we need to&amp;nbsp; use &lt;span class=&quot;typ&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;Collections&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;unmodifiableList()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;pln&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
public&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
System.&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
}&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;/div&gt;
}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; SampleTest {&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;final&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; List&amp;lt;String&amp;gt; &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; =Collections.&lt;i&gt;unmodifiableList&lt;/i&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; ArrayList&amp;lt;String&amp;gt;());&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; main(String[] args){&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.add(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;ABC&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;);&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.add(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;BCD&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;);&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;out&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.println(&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.size());&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/i&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; SampleTest {&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;final&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; ArrayList&amp;lt;String&amp;gt; &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; =&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; ArrayList&amp;lt;String&amp;gt;() ;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7f0055; font-size: x-small;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; main(String[] args){&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.add(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;ABC&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;);&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.add(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #2a00ff; font-size: x-small;&quot;&gt;&quot;BCD&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;);&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;out&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.println(&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #0000c0; font-size: x-small;&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.size());&lt;/span&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/i&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;o/p :&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style=&quot;color: navy; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: navy; font-size: x-small;&quot;&gt;java.lang.UnsupportedOperationException&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;div align=&quot;left&quot;&gt;
at java.util.Collections$UnmodifiableCollection.add(&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
at com.jnet.test.SampleTest.main(&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;Now we are not able to modify the List&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style=&quot;color: navy; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: navy; font-size: x-small;&quot;&gt;Collections.java:1018&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style=&quot;color: navy; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: navy; font-size: x-small;&quot;&gt;SampleTest.java:11&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/u&gt;&lt;/u&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;votecell&quot;&gt;&lt;div class=&quot;vote&quot;&gt;
&lt;a class=&quot;vote-down-off&quot; href=&quot;&quot; jquery17106098743187626511=&quot;14&quot; title=&quot;This answer is not useful (click again to undo)&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;answercell&quot;&gt;&lt;div class=&quot;post-text&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div align=&quot;left&quot;&gt;
Exception in thread &quot;main&quot; &lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/3197936309692080357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/declaring-arraylist-ae-final-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/3197936309692080357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/3197936309692080357'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/declaring-arraylist-ae-final-in-java.html' title='Declaring ArrayList ae final in java'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-6237383593561494054</id><published>2012-07-11T12:54:00.000+05:30</published><updated>2012-07-11T12:58:51.437+05:30</updated><title type='text'>Exceptions(checked,Unchecked) in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;normal&quot;&gt;
Java has a powerful concept for exception and error handling. An exception is an error that occurs at runtime. It is either generated by the Java Virtual Machine (VM) in response to an unexpected condition or it is generated by your code as a result of executing a &lt;b&gt;throw&lt;/b&gt; statement. &lt;/div&gt;
&lt;div class=&quot;big&quot;&gt;
Understanding Exceptions &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
Exceptions generated from runtime are called &lt;i&gt;unchecked exceptions&lt;/i&gt;, since it is not possible for the compiler to determine that your code will handle the exception. Exception classes that descend from &lt;i&gt;RuntimeException&lt;/i&gt; and &lt;i&gt;Error&lt;/i&gt; classes are unchecked exceptions. Examples for &lt;i&gt;RuntimeException&lt;/i&gt; are illegal cast operation, inappropriate use of a null pointer, referencing an out of bounds array element. &lt;i&gt;Error&lt;/i&gt; exception classes signal critical problems that typically cannot be handled by your application. Examples are out of memory error, stack overflow, failure of the Java VM. &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
Thrown exceptions are referred to as &lt;i&gt;checked exceptions&lt;/i&gt;. The compiler will confirm at compile time that the method includes code that might &lt;b&gt;throw&lt;/b&gt; an exception. Moreover the compiler requires the code that calls such a method to include this call within a &lt;b&gt;try&lt;/b&gt; block, and provide an appropriate &lt;b&gt;catch&lt;/b&gt; block to catch the exception. &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
java.lang.Object&lt;br /&gt;
&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp; +--java.lang.Throwable&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.Exception&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.ClassNotFoundException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.io.IOException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.io.FileNotFoundException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.RuntimeException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.NullPointerException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.IndexOutOfBoundsException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.ArrayIndexOutOfBoundsException&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.Error&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.VirtualMachineError&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +--java.lang.OutOfMemoryError &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
When an (either checked or unchecked) exception is thrown, execution will attempt to immediately branch to the first &lt;b&gt;catch&lt;/b&gt; block whose associated exception class matches the class or a superclass of the thrown exception. If the exception does not occur within a &lt;b&gt;try&lt;/b&gt; block or the thrown exception is not caught in a matching &lt;b&gt;catch&lt;/b&gt; block, execution of the method immediately terminates and control returns to the invoker of the method, where this process is repeated. The result is that the exception chain is escalated until a matching &lt;b&gt;catch&lt;/b&gt; block is found. If not, the thread containing the thrown exception is terminated. &lt;/div&gt;
&lt;div class=&quot;header&quot;&gt;
First Example &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
The following Demo1 class demonstrates the behaviour of exceptions and applications. &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
import java.io.*; &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
class Demo1 { &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp; public static FileInputStream f1(String fileName)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; throws FileNotFoundException&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream fis = new FileInputStream(fileName);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;f1: File input stream created&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return fis;&lt;br /&gt;
&amp;nbsp; } &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp; public static FileInputStream f2(String fileName)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream fis = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fis = new FileInputStream(fileName);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (FileNotFoundException ex)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;f2: Oops, FileNotFoundException caught&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;f2: finally block&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;f2: Returning from f2&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return fis;&lt;br /&gt;
&amp;nbsp; } &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream fis1 = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream fis2 = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; String fileName = &quot;foo.bar&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;// String fileName = null;&lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&amp;nbsp; &quot;main: Starting &quot; + Demo1.class.getName()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + &quot; with file name = &quot; + fileName); &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;// get file input stream 1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fis1 = f1(fileName);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (FileNotFoundException ex)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;main: Oops, FileNotFoundException caught&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;main: Oops, genreal exception caught&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;// get file input stream 2&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fis2 = f2(fileName); &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;main: &quot; + Demo1.class.getName() + &quot; ended&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
} &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
Compile and run the &lt;i&gt;Demo1&lt;/i&gt; class will generate output as follows (assuming that the file &lt;i&gt;foo.bar&lt;/i&gt; does not exist): &lt;/div&gt;
&lt;blockquote&gt;
&lt;div class=&quot;courier&quot;&gt;
main: Starting Demo1 with file name = foo.bar&lt;br /&gt;
main: Oops, FileNotFoundException caught&lt;br /&gt;
f2: Oops, FileNotFoundException caught&lt;br /&gt;
f2: finally block&lt;br /&gt;
f2: Returning from f2&lt;br /&gt;
main: Demo1 ended &lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;normal&quot;&gt;
The example program tries to create two file input streams. Therefore two methods &lt;i&gt;f1&lt;/i&gt; and &lt;i&gt;f2&lt;/i&gt; are implemented. First, the main program calls &lt;i&gt;f1&lt;/i&gt; method. Because the constructor of the &lt;i&gt;FileInputStream&lt;/i&gt; throws a &lt;i&gt;FileNotFoundException&lt;/i&gt; the method &lt;i&gt;f1&lt;/i&gt; must be defined with the &lt;b&gt;throws&lt;/b&gt; &lt;i&gt;FileNotFoundException&lt;/i&gt; in the method definition. The thrown exception is not handled in the method but forwarded to the invoker. Note, that the system output before the &lt;b&gt;return&lt;/b&gt; statement is never executed. &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
So the invoker, in our example the main program, must catch this exception. The method &lt;i&gt;f1&lt;/i&gt; is called in a &lt;b&gt;try&lt;/b&gt; block. The following &lt;b&gt;catch&lt;/b&gt; blocks catch either a &lt;i&gt;FileNotFoundException&lt;/i&gt; or a general &lt;i&gt;Exception&lt;/i&gt;. In our example, the exception is caught in the first &lt;b&gt;catch&lt;/b&gt; block and the system output is generated. Since the exception in &lt;i&gt;f1&lt;/i&gt; is caught and handled, the execution of the program is not terminated. &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
Second, the example program creates another &lt;i&gt;FileInputStream&lt;/i&gt; invoking the &lt;i&gt;f2&lt;/i&gt; method. This method catches the &lt;i&gt;FileNotFoundException&lt;/i&gt;, so this exception must not be forwarded to the invoker. The &lt;b&gt;try ... catch&lt;/b&gt; statement is followed by a &lt;b&gt;finally&lt;/b&gt; block. This block is always executed, regardless whether or not an exception occurs within the &lt;b&gt;try&lt;/b&gt; block. This generates the system output in our example. Again, the exception is caught and the program executes, this generates the system output in &lt;i&gt;f2&lt;/i&gt; and main. &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
This was a straight forward example with caught exceptions. What happens with uncaught exceptions? Change the &lt;i&gt;fileName&lt;/i&gt; assignment in the main method: Comment out the first assignment and activate the second &lt;i&gt;String fileName = null;&lt;/i&gt; then compile and execute &lt;i&gt;Demo1&lt;/i&gt; again. The generated output is: &lt;/div&gt;
&lt;blockquote&gt;
&lt;div class=&quot;courier&quot;&gt;
main: Starting Demo1 with file name = null&lt;br /&gt;
main: Oops, genreal exception caught&lt;br /&gt;
&lt;i&gt;f2&lt;/i&gt;: finally block&lt;br /&gt;
java.lang.NullPointerException&lt;br /&gt;
java.io.FileInputStream Demo1.f2(java.lang.String)&lt;br /&gt;
void Demo1.main(java.lang.String[])&lt;br /&gt;
Exception in thread main &lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;normal&quot;&gt;
This time, we try to create two &lt;i&gt;FileInputStream&lt;/i&gt; objects using &lt;b&gt;null&lt;/b&gt; instead of a file name. Invoking &lt;i&gt;f1&lt;/i&gt; will generate a &lt;i&gt;NullPointerException&lt;/i&gt; which is caught in the main program. Next &lt;i&gt;f2&lt;/i&gt; is called which could handle only the &lt;i&gt;FileNotFoundException&lt;/i&gt; but not a &lt;i&gt;NullPointerException&lt;/i&gt;. Nevertheless the &lt;b&gt;finally&lt;/b&gt; block is executed and then the control returns to the main program. Because there is no &lt;b&gt;try ... catch&lt;/b&gt; statement around the call to &lt;i&gt;f2&lt;/i&gt; and no matching &lt;b&gt;catch&lt;/b&gt; block is found, the thread is terminated. Note, that &lt;i&gt;f2&lt;/i&gt; and main can not execute the system output statements any more. &lt;/div&gt;
&lt;div class=&quot;header&quot;&gt;
Second Example &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
The second example will show some special behaviour in &lt;b&gt;catch&lt;/b&gt; and &lt;b&gt;finally&lt;/b&gt; blocks: &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
import java.io.*; &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
class Demo2 { &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp; public static FileInputStream f1(String fileName)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream fis = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fis = new FileInputStream(fileName);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (FileNotFoundException ex)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;f1: Oops, FileNotFoundException caught&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new Error(&quot;f1: File not found&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;f1: File input stream created&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return fis;&lt;br /&gt;
&amp;nbsp; } &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp; public static FileInputStream f2(String fileName)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream fis = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fis = new FileInputStream(fileName);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (FileNotFoundException ex)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;f2: Oops, FileNotFoundException caught&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return fis;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;f2: finally block&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return fis;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;// Compiler error: statement not reacheable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // System.out.println(&quot;f2: Returning from f2&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // return fis;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; } &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream fis1 = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FileInputStream fis2 = null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; String fileName = &quot;foo.bar&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;// String fileName = null;&lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&amp;nbsp; &quot;main: Starting &quot; + Demo2.class.getName()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + &quot; with file name = &quot; + fileName); &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;// get file input stream 1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fis1 = f1(fileName);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;main: Oops, general exception caught&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Throwable th)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;main: Oops, throwable object caught&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;// get file input stream 2&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fis2 = f2(fileName); &lt;/div&gt;
&lt;div class=&quot;courier&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;main: &quot; + Demo2.class.getName() + &quot; ended&quot;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
} &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
Compile and run &lt;i&gt;Demo2&lt;/i&gt; will generate the following output: &lt;/div&gt;
&lt;blockquote&gt;
&lt;div class=&quot;courier&quot;&gt;
main: Starting Demo2 with file name = foo.bar&lt;br /&gt;
f1: Oops, FileNotFoundException caught&lt;br /&gt;
main: Oops, throwable object caught&lt;br /&gt;
f2: Oops, FileNotFoundException caught&lt;br /&gt;
f2: finally block&lt;br /&gt;
main: Demo2 ended &lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;normal&quot;&gt;
Again &lt;i&gt;f1&lt;/i&gt; is called to get a new &lt;i&gt;FileInputStream&lt;/i&gt; with a given file name. The thrown &lt;i&gt;FileNotFoundException&lt;/i&gt; in &lt;i&gt;f1&lt;/i&gt; is caught in the following &lt;b&gt;catch&lt;/b&gt; block. But this time an Error is thrown so that the method is terminated immediately. Because Error is not a subclass of Exception the first catch block does not match. But the second &lt;b&gt;catch&lt;/b&gt; block matches all throwable objects. &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
Calling &lt;i&gt;f2&lt;/i&gt; method will generate a &lt;i&gt;FileNotFoundException&lt;/i&gt; too. This exception is caught in &lt;i&gt;f2&lt;/i&gt; and the method returns directly from the &lt;b&gt;catch&lt;/b&gt; block. Remember, that the finally block is executed regardless whether an exception is caught or not. &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
In both methods &lt;i&gt;f1&lt;/i&gt; and &lt;i&gt;f2&lt;/i&gt;, the &lt;i&gt;FileNotFoundException&lt;/i&gt; is caught and handled, so the program can terminate normally. Change again the &lt;i&gt;fileName&lt;/i&gt; assignment in the &lt;i&gt;main&lt;/i&gt; method and compile and run &lt;i&gt;Demo2&lt;/i&gt; again: &lt;/div&gt;
&lt;blockquote&gt;
&lt;div class=&quot;courier&quot;&gt;
main: Starting Demo2 with file name = null&lt;br /&gt;
main: Oops, general exception caught&lt;br /&gt;
f2: finally block&lt;br /&gt;
main: Demo2 ended &lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;normal&quot;&gt;
The &lt;i&gt;NullPointerException&lt;/i&gt; thrown in &lt;i&gt;f1&lt;/i&gt; is not caught, so the exception is forwarded to the invoker. The main program catches &lt;i&gt;Exception&lt;/i&gt;, which is a superclass of the thrown exception. &lt;/div&gt;
&lt;div class=&quot;normal&quot;&gt;
The call to &lt;i&gt;f2&lt;/i&gt; method seems to work fine even the thrown &lt;i&gt;NullPointerException&lt;/i&gt; is not caught directly. Note, that the &lt;b&gt;finally&lt;/b&gt; block is executed regardless whether an exception is caught or not. Since the &lt;b&gt;finally&lt;/b&gt; block terminates with a &lt;b&gt;return&lt;/b&gt; statement, the program executes without failure. So be careful returning within &lt;b&gt;finally&lt;/b&gt; blocks, this breaks the exception chaining to the invoker and it simulates error free program execution. &lt;/div&gt;
&lt;div class=&quot;big&quot;&gt;
Summary &lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div class=&quot;normal&quot;&gt;
Normal program execution is immediately branched when an exception is thrown.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;normal&quot;&gt;
Checked exceptions must be caught or forwarded. This can be done in a &lt;b&gt;try ... catch&lt;/b&gt; statement or by defining the exception in the method definition.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;normal&quot;&gt;
The exception is caught by the first &lt;b&gt;catch&lt;/b&gt; block whose associated exception class matches the class or a superclass of the thrown exception.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;normal&quot;&gt;
If no matching &lt;b&gt;catch&lt;/b&gt; block is found in the exception chain, the thread containing the thrown exception is terminated.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;normal&quot;&gt;
The &lt;b&gt;finally&lt;/b&gt; block after a &lt;b&gt;try ... catch&lt;/b&gt; statement is executed regardless whether an exception is caught or not.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;normal&quot;&gt;
Returning within a &lt;b&gt;finally&lt;/b&gt; block breaks the exception chain to the invoker even for uncaught exceptions. &lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
......................&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Checked or Unchecked&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
In Java there are basically two types of exceptions: Checked exceptions and unchecked exceptions. C# only has unchecked exceptions. The differences between checked and unchecked exceptions are: &lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Checked exceptions must be explicitly caught or propagated as described in &lt;a href=&quot;http://tutorials.jenkov.com/java-exception-handling/basic-try-catch-finally.html&quot;&gt;Basic try-catch-finally Exception Handling&lt;/a&gt;. Unchecked exceptions do not have this requirement. They don&#39;t have to be caught or declared thrown.&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Checked exceptions in Java extend the java.lang.Exception class. Unchecked exceptions extend the java.lang.RuntimeException. &lt;/li&gt;
&lt;/ol&gt;
There are many arguments for and against both checked and unchecked, and whether to use checked exceptions at all. I will go through the most common arguments throughout this text. Before I do so, let me just make one thing clear: &lt;br /&gt;
&lt;blockquote&gt;
Checked and unchecked exceptions are functionally equivalent. There is nothing you can do with checked exceptions that cannot also be done with unchecked exceptions, and vice versa. &lt;/blockquote&gt;
Regardless of your choice between checked and unchecked exceptions it is a matter of personal or organisational style. None is functionally better than the other. &lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;
A Simple Example&lt;/h2&gt;
Before discussing the advantages and disadvantages of checked and unchecked exceptions I will show you the difference in the code they make. Here is a method that throws a checked exception, and another method that calls it: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public void storeDataFromUrl(String url){
        try {
            String data = readDataFromUrl(url);
        } catch (BadUrlException e) {
            e.printStackTrace();
        }
    }

    public String readDataFromUrl(String url)
    throws BadUrlException{
        if(isUrlBad(url)){
            throw new BadUrlException(&quot;Bad URL: &quot; + url);
        }

        String data = null;
        //read lots of data over HTTP and return
        //it as a String instance.

        return data;
    }
&lt;/pre&gt;
As you can see the readDataFromUrl() method throws a BadUrlException. I have created BadUrlException myself. BadUrlException is a checked exception because it extends java.lang.Exception: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public class BadUrlException extends Exception {
        public BadUrlException(String s) {
            super(s);
        }
    }
&lt;/pre&gt;
If storeDataFromUrl() wants to call readDataFromUrl() it has only two choices. Either it catches the BadUrlException or propagates it up the call stack. The storeDataFromUrl() listed above catches the exception. This storeDataFromUrl() implementation propagates the BadUrlException instead: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public void storeDataFromUrl(String url)
    throws BadUrlException{
        String data = readDataFromUrl(url);
    }
&lt;/pre&gt;
Notice how the try catch block is gone and a &quot;throws BadUrlException&quot; declaration is added instead. Now, let&#39;s see how it looks with unchecked exceptions. First I change the BadUrlException to extend java.lang.RuntimeException instead: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public class BadUrlException extends RuntimeException {
        public BadUrlException(String s) {
            super(s);
        }
    }
&lt;/pre&gt;
Then I change the methods to use the now unchecked BadUrlException: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public void storeDataFromUrl(String url){
        String data = readDataFromUrl(url);
    }

    public String readDataFromUrl(String url) {
        if(isUrlBad(url)){
            throw new BadUrlException(&quot;Bad URL: &quot; + url);
        }

        String data = null;
        //read lots of data over HTTP and
        //return it as a String instance.

        return data;
    }
&lt;/pre&gt;
Notice how the readDataFromUrl() method no longer declares that it throws BadUrlException. The storeDataFromUrl() method doesn&#39;t have to catch the BadUrlException either. The storeDataFromUrl() method can still choose to catch the exception but it no longer has to, and it no longer has to declare that it propagates the exception. &lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;
Checked or Unchecked?&lt;/h2&gt;
Now that we have seen the difference in code between checked and unchecked exceptions, let&#39;s dive into the arguments for and against both. &lt;br /&gt;
Some Java books(*) covering exceptions advice you to use checked exceptions for all errors the application can recover from, and unchecked exceptions for the errors the application cannot recover from. In reality most applications will have to recover from pretty much all exceptions including NullPointerException, IllegalArgumentExceptions and many other unchecked exceptions. The action / transaction that failed will be aborted but the application has to stay alive and be ready to serve the next action / transaction. The only time it is normally legal to shut down an application is during startup. For instance, if a configuration file is missing and the application cannot do anything sensible without it, then it is legal to shut down the application. &lt;br /&gt;
(*) Suns Java Tutorial does for one. &lt;br /&gt;
My advice to you is to use either only checked exceptions or only unchecked exceptions. Mixing exception types often results in confusion and inconsistent use. Of course you should be pragmatic. Do what makes sense in your situation. &lt;br /&gt;
Below is a list of the most common arguments for and against checked and unchecked exceptions. An argument in favor of one type of exceptions is usually against the other type (pro-checked = con-unchecked, pro-unchecked = con-checked). Therefore the arguments are only listed as either in favour of checked or unchecked exceptions. &lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Pro Checked Exceptions: &lt;br /&gt;Compiler enforced catching or propagation of checked exceptions make it harder to forget handling that exception.&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Pro Checked Exceptions: &lt;br /&gt;Unchecked exceptions makes it easier to forget handling errors since the compiler doesn&#39;t force the developer to catch or propagate exceptions (reverse of 1).&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Pro Unchecked Exceptions: &lt;br /&gt;Checked exceptions that are propagated up the call stack clutter the top level methods, because these methods need to declare throwing all exceptions thrown from methods they call.&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Pro Checked Exceptions:&lt;br /&gt;When methods do not declare what unchecked exceptions they may throw it becomes more difficult to handle them.&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Pro Unchecked Exceptions:&lt;br /&gt;Checked exceptions thrown become part of a methods interface and makes it harder to add or remove exceptions from the method in later versions of the class or interface. &lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;&lt;br /&gt;
Each of the arguments also have counter arguments which will be discussed as I go through the argument in the following sections. &lt;br /&gt;
&lt;h3&gt;
Argument 1 (Pro Checked Exceptions):&lt;/h3&gt;
Compiler enforced catching or propagation of checked exceptions makes it harder to forget the handling of that exception. &lt;br /&gt;
&lt;h3&gt;
Counter-argument:&lt;/h3&gt;
When being forced to catch or propagate many exceptions developers risk acting sloppily, and just write &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;try{
   callMethodThatThrowsException();
catch(Exception e){
}
&lt;/pre&gt;
and thus effectively ignore the error. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
Argument 2 (Pro Checked Exceptions):&lt;/h3&gt;
Unchecked exceptions makes it easier to forget handling errors since the compiler doesn&#39;t force the developer to catch or propagate exceptions. &lt;br /&gt;
&lt;h3&gt;
Counter-argument 1:&lt;/h3&gt;
It&#39;s not any worse than the sloppy exception handling tendency when being forced to handle or propagate checked exceptions. &lt;br /&gt;
&lt;h3&gt;
Counter-argument 2:&lt;/h3&gt;
On a recent larger project we decided to go with unchecked exceptions. My personal experience from that project is this: When using unchecked exceptions any method can potentially throw exceptions. Thus I was always reasonably conscious about exceptions no matter what parts of the code I was working on. Not only when checked exceptions were declared. &lt;br /&gt;
In addition many of the standard Java API methods that do not declare any checked exceptions may still throw unchecked exceptions like NullPointerException or InvalidArgumentException. Your application will still need to handle these unchecked exceptions. You could argue that the fact that there are checked exceptions makes it easy to forget handling the unchecked exceptions because they are not declared. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
Argument 3 (Pro Unchecked Exceptions):&lt;/h3&gt;
Checked exceptions that are propagated up the call stack clutter the top level methods, because these methods need to declare throwing all exceptions thrown from methods they call. That is. the declared exceptions are aggreated up the methods in the call stack. Example: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public long readNumberFromUrl(String url)
    throws BadUrlExceptions, BadNumberException{
        String data = readDataFromUrl(url);
        long number = convertData(data);
        return number;
    }

    private String readDataFromUrl(String url)
    throws BadUrlException {
       //throw BadUrlException if url is bad.
       //read data and return it.
    }

    private long convertData(String data)
    throws BadNumberException{
        //convert data to long.
        //throw BadNumberException if number isn&#39;t within valid range.
    }
&lt;/pre&gt;
As you can see the readNumberFromUrl() needs to declare throwing both the BadUrlException and the BadNumberException that are thrown from the readDataFromUrl() and converData() methods. Imagine how many exceptions would need to be declared at the top level methods of an application with thousands of classes. This can make checked exception propagation a real pain. &lt;br /&gt;
&lt;h3&gt;
Counter-argument 1:&lt;/h3&gt;
The exception declaration aggregation rarely happens in real applications. Often developers will use exception wrapping instead. Here is how that could look: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public void readNumberFromUrl(String url)
    throws ApplicationException{
        try{
            String data = readDataFromUrl(url);
            long number = convertData(data);
        } catch (BadUrlException e){
            throw new ApplicationException(e);
        } catch (BadNumberException e){
            throw new ApplicationException(e);
        }
    }
&lt;/pre&gt;
As you can see the readNumberFromUrl() method now only declares throwing ApplicationException. The exceptions BadUrlException and BadNumberException are caught and wrapped in a more general ApplicationException. This way exception wrapping avoids exception declaration aggregation. &lt;br /&gt;
My personal opinion is, that if all you do is to wrap the exception and not provide any extra information, why wrap it at all? The try-catch block is just extra code that doesn&#39;t do anything. It would be easier to just make the ApplicationException, BadUrlException and BadNumberException be unchecked exceptions. Here is an unchecked version of the above code: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public void readNumberFromUrl(String url){
        String data = readDataFromUrl(url);
        long number = convertData(data);
    }
&lt;/pre&gt;
It is still possible to wrap unchecked exceptions if you should want to. Below is a wrapping edition of the unchecked code. Notice how the readNumberFromUrl() method does not declare throwing the ApplicationException even if it throws it. &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public void readNumberFromUrl(String url)
        try{
            String data = readDataFromUrl(url);
            long number = convertData(data);
        } catch (BadUrlException e){
            throw new ApplicationException(
                &quot;Error reading number from URL&quot;, e);
        } catch (BadNumberException e){
            throw new ApplicationException(
                &quot;Error reading number from URL&quot;, e);
        }
    }
&lt;/pre&gt;
&lt;h3&gt;
Counter-argument 2:&lt;/h3&gt;
Another commonly used technique to avoid exception declaration aggregation up the call stack of an application is to create an application base exception. All exceptions thrown in the application must be a subclass of the base exception. All methods throwing exceptions need only declare to throw the base exception. As you know a method throwing Exception may also throw any subclass of Exception. Here is how that could look: &lt;br /&gt;
&lt;pre class=&quot;codeBox&quot;&gt;    public long readNumberFromUrl(String url)
    throws ApplicationException {
        String data = readDataFromUrl(url);
        long number = convertData(data);
        return number;
    }

    private String readDataFromUrl(String url)
    throws BadUrlException {
       //throw BadUrlException if url is bad.
       //read data and return it.
    }

    private long convertData(String data)
    throws BadNumberException{
        //convert data to long.
        //throw BadNumberException if number isn&#39;t within valid range.
    }


    public class ApplicationException extends Exception{ }
    public class BadNumberException   extends ApplicationException{}
    public class BadUrlException      extends ApplicationException{}
&lt;/pre&gt;
Notice how the BadNumberException and BadUrlException are no longer declared thrown nor caught and wrapped. They are subclasses of the ApplicationException so they will get propagated up the call stack. &lt;br /&gt;
My opinion is the same as with exception wrapping: If all methods in the application just declares throwing the ApplicationException (base exception), why not just make the ApplicationException unchecked and save some try-catch blocks and throws ApplicationExceptions clauses? &lt;br /&gt;
&lt;h3&gt;
Argument 4 (Pro Checked Exceptions)&lt;/h3&gt;
When methods do not declare what unchecked exceptions they may throw it becomes more difficult to handle them. Without declaration you cannot know which exceptions the method may throw. Thus you may not know how to handle them properly. Except of course, if you have access to the code and can see there what exceptions may be thrown from the method. &lt;br /&gt;
&lt;h3&gt;
Counter-argument:&lt;/h3&gt;
In most cases you cannot do anything about the exception except showing an error message to the user, write a message to the log, and/or rollback the transaction etc. No matter what exception occurs you will in many situations handle it the same way. Because of this applications often have a few central and general pieces of error handling code. Therefore it is not so important to know exactly what exceptions may be thrown. &lt;br /&gt;
&lt;h3&gt;
Argument 5 (Pro Unchecked Exceptions)&lt;/h3&gt;
Checked exceptions declared on methods become part of a the class or interface contract. This makes it harder to add new exceptions to the method later without breaking the contract. &lt;br /&gt;
&lt;h3&gt;
Counter-argument&lt;/h3&gt;
This is not a problem if the method uses a base exception. New exceptions can be thrown at will if the method declares throwing the base exception. The only requirement is that the new exceptions thrown are subclasses of the base exception. &lt;br /&gt;
Again, what is the value of having all methods that may throw exceptions declare throwing the same base exception? Does it enable you to handle the exceptions any better than if you knew the methods might throw an unchecked exception? &lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;h2&gt;
Summary&lt;/h2&gt;
I used to be in favor of checked exceptions but recently I have begun to change my mind. Personalities like Rod Johnson (Spring Framework), Anders Hejlsberg (father of C#), Joshua Bloch (Effective Java, item 41: Avoid unnecessary use of checked exceptions) and others have made me rethink the real benefit of checked exceptions. Lately we have tried using unchecked exceptions on a larger project, and they have worked out just fine. The error handling is centralized in a few classes. Here and there we have had to do local error handling instead of propagating the exception to the main error handling code. But it is not in very many places. Our code has become somewhat more readable now that there aren&#39;t try-catch blocks all over the code. In other words, there are a lot less no-benefit catch-rethrow try-catch blocks in the code than with checked exceptions. All in all I would recommend using unchecked exceptions. At least give it a try on a project. I have summarized the reasons below: &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Unchecked exceptions do not clutter the code with unnecessary try-catch blocks. &lt;/li&gt;
&lt;li&gt;Unchecked exceptions do not clutter the method declarations with aggregated exception declarations. &lt;/li&gt;
&lt;li&gt;The argument that you easier forget to handle unchecked exceptions is not valid in my experience. &lt;/li&gt;
&lt;li&gt;The argument that it is harder to know how to handle undeclared exceptions is not valid in my experience. &lt;/li&gt;
&lt;li&gt;Unchecked exceptions avoids versioning problems altogether. &lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/6237383593561494054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/exceptions-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6237383593561494054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/6237383593561494054'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/exceptions-in-java.html' title='Exceptions(checked,Unchecked) in java'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9024223644062555890.post-2977339082526556034</id><published>2012-07-04T12:46:00.003+05:30</published><updated>2012-07-04T12:47:32.596+05:30</updated><title type='text'>how to save a object in database using java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
import org.exolab.castor.xml.MarshalException;&lt;br /&gt;import org.exolab.castor.xml.Marshaller;&lt;br /&gt;import org.exolab.castor.xml.Unmarshaller;&lt;br /&gt;import org.exolab.castor.xml.ValidationException;&lt;br /&gt;static final String saveReportSQLStat = &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;Insert into DOCUMENT_GEN &quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;(ID_BUS, ID_BUS_FLNG, CD_DOC_TYPE, &quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;TS_CREATED, DT_CYCLE, TX_DOCUMENT) &quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;values(?, ?, &#39;FI&#39;, &quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;?, ?, ?)&quot;;&lt;br /&gt;public void saveReport(String businessID, String filingNumber,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SavedReportResult savableReport, Connection con)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throws CRDException, SQLException&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PreparedStatement prepStat = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean newManager = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(savableReport == null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(con == null){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; newManager = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; con = DBManager.getConnection();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat = con.prepareStatement(saveReportSQLStat);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.setString(1, businessID);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.setString(2, filingNumber);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.setTimestamp(3, DateFormatter.getInstance().getTimeStamp(savableReport.getFilingDate(), savableReport.getFilingTime()));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.setString(4, savableReport.getFilingDate());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (savableReport != null) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; StringWriter writer = new StringWriter();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Marshaller.marshal(savableReport, writer);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (MarshalException e) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; throw new CRDException(e.getMessage());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (ValidationException e) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; throw new CRDException(e.getMessage());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ByteArrayInputStream is =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; new ByteArrayInputStream(writer.toString().getBytes());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.setBinaryStream(5, is, is.available());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.setNull(5, Types.BLOB);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.execute();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }finally{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(prepStat != null)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat.close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(con != null &amp;amp;&amp;amp; newManager)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; con.close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; prepStat = null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; con = null;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sudheersunny.blogspot.com/feeds/2977339082526556034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/how-to-save-object-in-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/2977339082526556034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9024223644062555890/posts/default/2977339082526556034'/><link rel='alternate' type='text/html' href='http://sudheersunny.blogspot.com/2012/07/how-to-save-object-in-database.html' title='how to save a object in database using java'/><author><name>Sudheer Gidigi</name><uri>http://www.blogger.com/profile/02794233454014252162</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtg5EVT8Cjt3Yoy2OuOwwrXBp387wzGvkvouAYx1dXtZag0ccqZ6ExISsf8bIfy8Ga-JsG8WhLdkL6eEtvWqoAkvE_Zyb2zRfT7AGEehtblE93brGsdy6tyhnmMUMMg/s1600/*'/></author><thr:total>0</thr:total></entry></feed>