<?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-4034563687330741411</id><updated>2024-10-24T08:32:30.941-07:00</updated><category term="java"/><category term="class"/><category term="j2ee"/><category term="java developer"/><category term="object"/><category term="oop"/><category term="instance variable"/><category term="method"/><category term="Abstraction"/><category term="Best programming Practices"/><category term="JDBC"/><category term="MS-SQL"/><category term="String"/><category term="brainbench"/><category term="immutable"/><category term="java 7"/><category term="java devopment guid"/><category term="java fundamentals"/><category term="java standard process"/><category term="java upgrade"/><category term="java7"/><category term="modifiers"/><category term="open source developer"/><category term="open source development  guide"/><category term="opensource"/><category term="return type"/><title type='text'>Java News And FAQs</title><subtitle type='html'>This is for everyone who loves JAVA !!!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-353946715085098478</id><published>2013-02-26T02:17:00.001-08:00</published><updated>2013-02-26T02:17:23.541-08:00</updated><title type='text'>Multiple checkbox value using jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to get multiple values of checkbox using jquery , Here is the code :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;style&amp;gt;&lt;br /&gt;div { color:red; }&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;script src=&quot;http://code.jquery.com/jquery-latest.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;form&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;newsletter&quot; value=&quot;Hourly&quot; checked=&quot;checked&quot;&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;newsletter&quot; value=&quot;Daily&quot;&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;newsletter&quot; value=&quot;Weekly&quot;&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;newsletter&quot; value=&quot;Monthly&quot;&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;newsletter&quot; value=&quot;Yearly&quot;&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;var checkedSiteValues = &quot;&quot;&lt;br /&gt;var count = 0;&lt;br /&gt;&lt;br /&gt;$(&quot;input[name =&#39;newsletter&#39;]:checked&quot;).each(function() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var check = $(this).val();&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;if (check != &quot;true&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;count++;&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;if (count == 1) {&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;checkedSiteValues = $(this).val();&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;} else {&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;checkedSiteValues = checkedSiteValues + &quot;,&quot; + $(this).val();&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;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;alert(checkedSiteValues);&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; &lt;br /&gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/353946715085098478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/02/multiple-checkbox-value-using-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/353946715085098478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/353946715085098478'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/02/multiple-checkbox-value-using-jquery.html' title='Multiple checkbox value using jquery'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-5040511513085730468</id><published>2013-01-30T02:24:00.007-08:00</published><updated>2013-01-30T02:24:50.853-08:00</updated><title type='text'>Disable Copy Paste for publisher article </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Hi Everyone,&lt;br /&gt;
&lt;br /&gt;
If you want to sisable copy paste option for any of your published article,&lt;br /&gt;
Just use below code :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Disable Copy And Paste--&amp;gt;&lt;br /&gt;
&amp;lt;script language=&#39;JavaScript1.2&#39;&amp;gt;&lt;br /&gt;
function disableselect(e){&lt;br /&gt;
return false&lt;br /&gt;
}&lt;br /&gt;
function reEnable(){&lt;br /&gt;
return true&lt;br /&gt;
}&lt;br /&gt;
document.onselectstart=new Function (&quot;return false&quot;)&lt;br /&gt;
if (window.sidebar){&lt;br /&gt;
document.onmousedown=disableselect&lt;br /&gt;
document.onclick=reEnable&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/5040511513085730468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/disable-copy-paste-for-publisher-article_8706.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/5040511513085730468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/5040511513085730468'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/disable-copy-paste-for-publisher-article_8706.html' title='Disable Copy Paste for publisher article '/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-6236639445036837626</id><published>2013-01-30T02:24:00.005-08:00</published><updated>2013-01-30T02:24:41.591-08:00</updated><title type='text'>Disable Copy Paste for publisher article </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Hi Everyone,&lt;br /&gt;
&lt;br /&gt;
If you want to sisable copy paste option for any of your published article,&lt;br /&gt;
Just use below code :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Disable Copy And Paste--&amp;gt;&lt;br /&gt;
&amp;lt;script language=&#39;JavaScript1.2&#39;&amp;gt;&lt;br /&gt;
function disableselect(e){&lt;br /&gt;
return false&lt;br /&gt;
}&lt;br /&gt;
function reEnable(){&lt;br /&gt;
return true&lt;br /&gt;
}&lt;br /&gt;
document.onselectstart=new Function (&quot;return false&quot;)&lt;br /&gt;
if (window.sidebar){&lt;br /&gt;
document.onmousedown=disableselect&lt;br /&gt;
document.onclick=reEnable&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/6236639445036837626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/disable-copy-paste-for-publisher-article_2429.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/6236639445036837626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/6236639445036837626'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/disable-copy-paste-for-publisher-article_2429.html' title='Disable Copy Paste for publisher article '/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-7730890901744145080</id><published>2013-01-30T02:24:00.003-08:00</published><updated>2013-01-30T02:24:29.852-08:00</updated><title type='text'>Disable Copy Paste for publisher article </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Hi Everyone,&lt;br /&gt;
&lt;br /&gt;
If you want to sisable copy paste option for any of your published article,&lt;br /&gt;
Just use below code :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Disable Copy And Paste--&amp;gt;&lt;br /&gt;
&amp;lt;script language=&#39;JavaScript1.2&#39;&amp;gt;&lt;br /&gt;
function disableselect(e){&lt;br /&gt;
return false&lt;br /&gt;
}&lt;br /&gt;
function reEnable(){&lt;br /&gt;
return true&lt;br /&gt;
}&lt;br /&gt;
document.onselectstart=new Function (&quot;return false&quot;)&lt;br /&gt;
if (window.sidebar){&lt;br /&gt;
document.onmousedown=disableselect&lt;br /&gt;
document.onclick=reEnable&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/7730890901744145080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/disable-copy-paste-for-publisher-article_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/7730890901744145080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/7730890901744145080'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/disable-copy-paste-for-publisher-article_30.html' title='Disable Copy Paste for publisher article '/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-6960577864105377355</id><published>2013-01-24T22:50:00.002-08:00</published><updated>2013-01-24T22:50:16.593-08:00</updated><title type='text'>Memory management tips for JAVA</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1) &lt;b&gt;Minimize scope of variables&lt;/b&gt;&lt;br /&gt;
2) &lt;strong&gt;Initialize When You Actually Need (Variable Or Object)&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;3) &lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;Allocate Only Required Memory&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;strong&gt;4) &lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;Do not Declare in Loops&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;5) &lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;Memory Leaks Possibilities Through Soft References in Collections&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;6) &lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;Mutating Operations on String&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;7) &lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;Clean up Heavy Objects&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;8) &lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;Simply Use finally Block&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;9) &lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;‘finalize’ Method Call Has Advantages and Disadvantages&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;10) &lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;Design and Architecture requiring more Memory&lt;/strong&gt;&amp;nbsp;&lt;/strong&gt; &lt;/strong&gt;&amp;nbsp;&lt;/strong&gt; &lt;/strong&gt;&amp;nbsp;&lt;/strong&gt; &lt;/strong&gt;&amp;nbsp;&lt;/strong&gt; &lt;/strong&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/6960577864105377355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/memory-management-tips-for-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/6960577864105377355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/6960577864105377355'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/memory-management-tips-for-java.html' title='Memory management tips for JAVA'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-1517948103134199446</id><published>2013-01-24T04:25:00.002-08:00</published><updated>2013-01-24T04:25:54.750-08:00</updated><title type='text'>Encapsulation in Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Encapsulation is very useful feature of OOP concept when we are talking about security in java.&lt;br /&gt;
&lt;br /&gt;
As you aware that, if we declare any varibale or method as a private then it can&#39;t be accessible in&amp;nbsp; other class or packages.&lt;br /&gt;
But here java provides this features to get those values, you would be thinking how ?&lt;br /&gt;
Yes it can be achieved by declaring &lt;b&gt;getter setter &lt;/b&gt;methods of those particulate private members.&lt;br /&gt;
&lt;br /&gt;
Like ,&lt;br /&gt;
&lt;br /&gt;
package com.jignesh.brainbench;&lt;br /&gt;&lt;br /&gt;public class EncapTest {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;private &lt;/b&gt;String name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;private &lt;/b&gt;String idNum;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;private &lt;/b&gt;int age;&lt;br /&gt;
&lt;br /&gt;
public String getName() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setName(String name) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.name = name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public String getIdNum() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return idNum;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setIdNum(String idNum) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.idNum = idNum;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public int getAge() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return age;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setAge(int age) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.age = age;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;
&lt;br /&gt;
Now you can access all the public getter methods to read the value of those private variables. &lt;br /&gt;
Here you would be clear that how it can be useful for security purpose.&lt;br /&gt;
you would not knowing that where exact it will be stored but you can achieve this values.&lt;br /&gt;
&lt;br /&gt;
Benefits :&lt;br /&gt;
&lt;ul class=&quot;list&quot;&gt;
&lt;li&gt;The fields of a class can be made read-only or write-only.&lt;/li&gt;
&lt;li&gt;A class can have total control over what is stored in its fields.&lt;/li&gt;
&lt;li&gt;The users of a class do not know how the class stores its data. A
 class can change the data type of a field, and users of the class do 
not need to change any of their code.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/1517948103134199446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/encapsulation-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/1517948103134199446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/1517948103134199446'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/encapsulation-in-java.html' title='Encapsulation in Java'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-4761662240597795867</id><published>2013-01-24T04:07:00.003-08:00</published><updated>2013-01-24T04:07:54.999-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Abstraction"/><category scheme="http://www.blogger.com/atom/ns#" term="class"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Abstraction in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Abstraction is ability to make the class abstract in OOP.&lt;br /&gt;
As you know&amp;nbsp; abstract class we can not be instantiates so we can not instantiate object of that that class.&lt;br /&gt;
So her if class is not instantiated then its not much useful but to make it worth we must have to create subclass which makes this abstract class useful and where abstraction concepts comes into picture.&lt;br /&gt;
&lt;br /&gt;
Lets say,&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;abstract&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Employee&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;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public String name = &quot;Jignesh&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private String salary = &quot;1000&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
So here we can instantiate object of this class like ,&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Employee e = new Employee();&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
But we can create subclass like,&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;public class Salary extends Employee {&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
And can access particular variables and methods from abstract class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt;Abstract Method :&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
We can also declare abstract method which means we can put simply signature entry of that method in abstract class and can put
 real implementation in subclass which cause the abstraction concepts 
become true in programming world.&lt;br /&gt;
&lt;br /&gt;
To make method abstract, you must have to declare that method as abstract in abstract class. &lt;br /&gt;
&lt;br /&gt;
like,&lt;br /&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;abstract&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Employee&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;abstract&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; int mySal&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt; &lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;pln&quot;&gt;and in subclass you can implement that method :&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Salary&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;extends&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Employee&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;
   int salary =  1000;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
  
   &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;double&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; myPay&lt;/span&gt;&lt;span class=&quot;pun&quot;&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;
      &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Computing salary pay for &quot;&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; salary&lt;/span&gt;&lt;span class=&quot;pun&quot;&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;
   &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;com&quot;&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&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/4761662240597795867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/abstraction-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/4761662240597795867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/4761662240597795867'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/abstraction-in-java.html' title='Abstraction in java'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-8777367049461980252</id><published>2013-01-15T22:05:00.001-08:00</published><updated>2013-01-15T22:06:39.736-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brainbench"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="modifiers"/><title type='text'>Know About Java Modifiers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As we all know java has below modifiers :&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;public&lt;/li&gt;
&lt;li&gt;private&lt;/li&gt;
&lt;li&gt;protected&lt;/li&gt;
&lt;li&gt;no modifiers (package private)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Class level Modifiers (only class) :&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;If a class is ‘public’, then it CAN be accessed from ANYWHERE.&lt;/li&gt;
&lt;li&gt;If a class has ‘no modifer’, then it CAN ONLY be accessed from ‘same package’.&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Member Level Modifiers (variables &amp;amp; methods):&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;public and no modifier – the same way as used in class level.&lt;/li&gt;
&lt;li&gt;private – members CAN ONLY access.&lt;/li&gt;
&lt;li&gt;protected – CAN be accessed from ‘same package’ and a subclass existing in any package can access.&lt;/li&gt;
&lt;/ul&gt;
Please see below table :&lt;br /&gt;
&lt;table border=&quot;1&quot; bordercolor=&quot;#ffa500&quot; cellspacing=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;i&gt;Access Modifiers&lt;/i&gt;&lt;/h3&gt;
&lt;i&gt; &lt;/i&gt;&lt;/td&gt;
&lt;td&gt;&lt;i&gt;Same Class&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;&lt;i&gt;Same Package&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;&lt;i&gt;Subclass&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;&lt;i&gt;Other packages&lt;/i&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;public&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;b&gt;protected&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;N&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;b&gt;no access modifier&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;N&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;N&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;Y&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;N&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;N&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;N&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/8777367049461980252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/know-about-java-modifiers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/8777367049461980252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/8777367049461980252'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2013/01/know-about-java-modifiers.html' title='Know About Java Modifiers'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-351948522492666818</id><published>2012-11-01T04:00:00.000-07:00</published><updated>2012-11-01T05:03:13.369-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best programming Practices"/><category scheme="http://www.blogger.com/atom/ns#" term="j2ee"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Best Practices for JAVA Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you are a java programmer and not following java best practices, you are not java professional in real world because only programming doesn&#39;t important but how you write optimized code is more important.&lt;br /&gt;
&lt;br /&gt;
So here are some of the points which i thought to be publish which can help help to java beginners.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1) Don&#39;t create objects unnecessarily&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;Creation of object is one of the most expensive operation if we talk about memory utilization and performance as well.&lt;br /&gt;
&lt;br /&gt;
Look @ the below code :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:java;&quot;&gt;public class States{

 private List states;
 
 public List getStates() {
  
  //initialize only when required
  if(null == states) {
   States= new ArrayList();
  }
  return states;
 }
}&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;2) Never declare class instance as a public&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To declaring a class instance public, there might be security problem with your application.&lt;br /&gt;
Let say we are creating a array of some months which is fixed and if we declare as a public, it could be easily access by someone and can change those values which cause security problem.&lt;br /&gt;
&lt;br /&gt;
So instead of declaring &lt;b&gt;public &lt;/b&gt;you can use &lt;b&gt;private &lt;/b&gt;modifier&lt;tt&gt; and can access by defining getter method but again this array can be accessible so what you can do is, you can return a clone of array.&lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Look @ the below code: &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Bad practice :&lt;/b&gt; 
&lt;br /&gt;
&lt;pre class=&quot;brush: java; title: ; notranslate&quot; title=&quot;&quot;&gt;public String[] months={&quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&quot;, &quot;Apr&quot;, &quot;May&quot;, &quot;Jun&quot;, &quot;Jul&quot;,&quot;Aug&quot;, &quot;Sep&quot;, &quot;Oct&quot;, &quot;Nov&quot;, &quot;Dec&quot;};&lt;/pre&gt;
&lt;b&gt;Good Practice :&lt;/b&gt; 
&lt;br /&gt;
&lt;pre class=&quot;brush: java; title: ; notranslate&quot; title=&quot;&quot;&gt;private String[] months={&quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&quot;, &quot;Apr&quot;, &quot;May&quot;, &quot;Jun&quot;, &quot;Jul&quot;,&quot;Aug&quot;, &quot;Sep&quot;, &quot;Oct&quot;, &quot;Nov&quot;, &quot;Dec&quot;};
 public String[] getMonths() 
 {
 return months.clone(); 
 }
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/351948522492666818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/11/best-practices-for-java-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/351948522492666818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/351948522492666818'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/11/best-practices-for-java-programming.html' title='Best Practices for JAVA Programming'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-5728371037906291335</id><published>2012-10-16T02:01:00.002-07:00</published><updated>2012-11-01T05:06:38.840-07:00</updated><title type='text'>Extract img using regex</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All&lt;br /&gt;
&lt;br /&gt;
If you want to extract image from HTML code and want to separate text with html ,&lt;br /&gt;
I am sure below code help you a lot :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: java&quot;&gt; 
import java.util.regex.Matcher;
import java.util.regex.Pattern;&lt;/pre&gt;
&lt;pre class=&quot;brush: java&quot;&gt;
public class ImgTest {

&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) {

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String s = &quot;This is a jignesh&amp;lt;img src=\&quot;test.html\&quot; /&amp;gt; text&quot;;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Pattern p = Pattern.compile(&quot;[&amp;lt;](/)?img[^&amp;gt;]*[&amp;gt;]&quot;);

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Matcher m = p.matcher(s);

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (m.find()) {

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; String src = m.group();

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; System.out.println(src);

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

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; s = s.replaceAll(&quot;[&amp;lt;](/)?img[^&amp;gt;]*[&amp;gt;]&quot;, &quot;&quot;);

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(s);

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

} 
OUTPUT :

&amp;lt;img src=&quot;test.html&quot; /&amp;gt;

This is a jignesh text&amp;nbsp; 

&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Cheers !!!!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/5728371037906291335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/10/extract-img-using-regex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/5728371037906291335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/5728371037906291335'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/10/extract-img-using-regex.html' title='Extract img using regex'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-3616540846251632290</id><published>2012-07-31T00:35:00.002-07:00</published><updated>2012-07-31T00:35:54.957-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JDBC"/><category scheme="http://www.blogger.com/atom/ns#" term="MS-SQL"/><title type='text'>JDBC - MS SQL possible problem</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;skl-ans-dtl&quot;&gt;     &lt;span style=&quot;color: black; font-family: Helvetica, arial, verdana; font-size: 14px; line-height: 20px;&quot;&gt;Here  in this post I am writing about some possible solutions of JDBC – MS  SQL server connection problem. During my work I had faced this problem  and tried a little hard to findout the solution. In our project when we  tried to connect to MSSQL Server, through its default port&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;border: 0px; color: black; font-family: Helvetica, arial, verdana; font-size: 14px; line-height: 20px; outline: 0px; vertical-align: baseline;&quot;&gt;1433&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;color: black; font-family: Helvetica, arial, verdana; font-size: 14px; line-height: 20px;&quot;&gt;it thrown an exception as follows. Hope this will be helpful to you.&lt;/span&gt;&lt;div style=&quot;border: 0px; font-family: inherit; margin-bottom: 1.2em; margin-top: 0.6em; outline: 0px; vertical-align: baseline;&quot;&gt;com.microsoft.sqlserver.jdbc.SQLServerException:  The TCP/IP connection to the host localhost, port 1433 has failed.  Error: “Connection refused: connect. Verify the connection properties,  check that an instance of SQL Server is running on the host and  accepting TCP/IP connections at the port, and that no firewall is  blocking TCP connections to the port.”.&lt;/div&gt;&lt;ol style=&quot;border: 0px; color: black; font-family: Helvetica, arial, verdana; font-size: 14px; line-height: 20px; margin-left: 20px; margin-top: 0px; outline: 0px; padding-left: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Enable SQL Server Network Configuration&lt;ul style=&quot;border: 0px; font-family: inherit; font-size: 14px; margin-left: 20px; margin-top: 0px; outline: 0px; padding-left: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;For this, go to Start Menu =&amp;gt; Microsoft SQL Server 2008 =&amp;gt; Configuration Tools =&amp;gt; SQL Server Configuration Manager&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Go to SQL Server Network Configuration =&amp;gt; Protocols for [Instance Name] =&amp;gt; TCP/IP&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Instance name is the one in which you have created your database. By default it will be SQLEXPRESS&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Make it enable (if disabled)&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Check the port on which SQL server is running&lt;ul style=&quot;border: 0px; font-family: inherit; font-size: 14px; margin-left: 20px; margin-top: 0px; outline: 0px; padding-left: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;For this, go to Start Menu =&amp;gt; Microsoft SQL Server 2008 =&amp;gt; Configuration Tools =&amp;gt; SQL Server Configuration Manager&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Go to SQL Server Network Configuration =&amp;gt; Protocols for [Instance Name] =&amp;gt; TCP/IP&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Instance name is the one in which you have created your database. By default it will be SQLEXPRESS&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Right click on that and Go to Properties =&amp;gt; IP Addresses tab =&amp;gt; IP All section&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;There you will find TCP Dynamic Ports property and we have to consider that port number instead of default port 1433&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;If you still facing the issue then please check Registry&lt;ul style=&quot;border: 0px; font-family: inherit; font-size: 14px; margin-left: 20px; margin-top: 0px; outline: 0px; padding-left: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Go to Start Menu =&amp;gt; run =&amp;gt; regedit&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; margin-bottom: 10px; outline: 0px; vertical-align: baseline;&quot;&gt;Go  to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL  Server\MSSQL10.[Instance Name]\MSSQLServer\SuperSocketNetLib\Tcp\IPAll  and check the value of key TcpDynamicPorts. we have to consider that  port number instead of default port 1433&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/3616540846251632290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/07/jdbc-ms-sql-possible-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/3616540846251632290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/3616540846251632290'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/07/jdbc-ms-sql-possible-problem.html' title='JDBC - MS SQL possible problem'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-7978497157019474319</id><published>2012-05-18T05:45:00.002-07:00</published><updated>2012-05-18T05:45:41.617-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java fundamentals"/><category scheme="http://www.blogger.com/atom/ns#" term="oop"/><title type='text'>Some basics about java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;ol&gt;&lt;li&gt;Real-world objects contain &lt;strong&gt;state&lt;/strong&gt; and &lt;strong&gt;behavior&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;A software object&#39;s state is stored in &lt;strong&gt;fields&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;A software object&#39;s behavior is exposed through &lt;strong&gt;methods&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data &lt;strong&gt;encapsulation&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;A blueprint for a software object is called a &lt;strong&gt;class&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Common behavior can be defined in a &lt;strong&gt;superclass&lt;/strong&gt; and inherited into a &lt;strong&gt;subclass&lt;/strong&gt; using the &lt;strong&gt;extends&lt;/strong&gt; keyword.&lt;/li&gt;
&lt;li&gt;A collection of methods with no implementation is called an &lt;strong&gt;interface&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;A namespace that organizes classes and interfaces by functionality is called a &lt;strong&gt;package&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The term API stands for &lt;strong&gt;Application Programming Interface&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/7978497157019474319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/05/some-basics-about-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/7978497157019474319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/7978497157019474319'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/05/some-basics-about-java.html' title='Some basics about java'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-3341121119712360842</id><published>2012-05-18T02:01:00.002-07:00</published><updated>2012-05-18T02:01:56.360-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="String"/><title type='text'>Reverse string in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;code&gt; &lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;Simplest Example of making reverse string using java &lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;public&amp;nbsp;class&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;StringReverse&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;public&amp;nbsp;static&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;args&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;String&amp;nbsp;string=args&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;String&amp;nbsp;reverse&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;StringBuffer&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;br /&gt;
reverse&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.toString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;System.out.println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;\nString&amp;nbsp;before&amp;nbsp;reverse:&lt;br /&gt;
&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;+string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;System.out.println&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;String&amp;nbsp;after&amp;nbsp;reverse:&lt;br /&gt;
&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;+reverse&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/3341121119712360842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/05/reverse-string-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/3341121119712360842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/3341121119712360842'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/05/reverse-string-in-java.html' title='Reverse string in java'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-597009945739801679</id><published>2012-01-19T01:48:00.000-08:00</published><updated>2012-01-19T01:54:03.362-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="immutable"/><category scheme="http://www.blogger.com/atom/ns#" term="j2ee"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>immutability in Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;Summary:&lt;/b&gt;&amp;nbsp; Immutable objects have a number of properties  that make working with them easier, including relaxed synchronization  requirements and the freedom to share and cache object references  without concern for data corruption.  While immutability may not  necessarily make sense for all classes, most programs have at least a  few classes that would benefit from being immutable.&lt;br /&gt;
&lt;br /&gt;
An immutable object is one whose externally visible state cannot change after it is instantiated.  The &lt;code&gt;String&lt;/code&gt;, &lt;code&gt;Integer&lt;/code&gt;, and &lt;code&gt;BigDecimal&lt;/code&gt;  classes in the Java class library are examples of immutable objects --  they represent a single value that cannot change over the lifetime of  the object.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;atitle&quot;&gt;Benefits of immutability&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Immutable classes, when used properly, can greatly simplify programming.  They can only be in one state, so as long as they are properly  constructed, they can never get into an inconsistent state. You can  freely share and cache references to immutable objects without having to  copy or clone them; you can cache their fields or the results of their  methods without worrying about the values becoming stale or inconsistent  with the rest of the object&#39;s state. Immutable classes generally make  the best map keys. And they are inherently thread-safe, so you don&#39;t  have to synchronize access to them across threads. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;smalltitle&quot;&gt;Freedom to cache&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Because there is no danger of immutable objects changing their value,  you can freely cache references to them and be confident that the  reference will refer to the same value later. Similarly, because their  properties cannot change, you can cache their fields and the results of  their methods.&lt;br /&gt;
If an object is mutable, you have to exercise some care when storing a  reference to it.  Consider the code in Listing 1, which queues two tasks  for execution by a scheduler. The intent is that the first task would  start now and the second task would start in one day. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;atitle&quot;&gt;When to use immutable classes&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Immutable classes are ideal for representing values of abstract data types, such as numbers, enumerated types, or colors. The basic numeric classes in the Java class library, such as &lt;code&gt;Integer&lt;/code&gt;, &lt;code&gt;Long&lt;/code&gt;, and &lt;code&gt;Float&lt;/code&gt;, are immutable, as are other standard numeric types such as &lt;code&gt;BigInteger&lt;/code&gt; and &lt;code&gt;BigDecimal&lt;/code&gt;.   Classes for representing complex numbers or arbitrary-precision  rational numbers would be good candidates for immutability.  Depending  on your application, even abstract types that contain many discrete  values -- such as vectors or matrices -- might be good candidates for implementing as immutable  classes.&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;atitle&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Another good example of immutability in the Java class library is &lt;code&gt;java.awt.Color&lt;/code&gt;.   While colors are generally represented as an ordered set of numeric values in some color  representation (such as RGB, HSB, or CMYK), it makes more sense to think  of a color as a distinguished value in a color space, rather than an  ordered set of individually addressable values, and therefore it makes  sense to implement &lt;code&gt;Color&lt;/code&gt; as an immutable class. &lt;br /&gt;
Should we represent objects that are containers for multiple primitive  values, such as points, vectors, matrices, or RGB colors, with mutable  or immutable objects?  The answer is. . . it depends.  How are they  going to be used?  Are they being used primarily to represent  multi-dimensional values (like the color of a pixel), or simply as  containers for a collection of related properties of some other object  (like the height and width of a window)?  How often are these properties  going to be changed?  If they are changed, do the individual component  values have meaning within the application on their own?&lt;br /&gt;
&lt;br /&gt;
Events are another good example of candidates for implementation with  immutable classes.  Events are short-lived, and are often consumed in a  different thread than they were created in, so making them immutable has  more advantages than disadvantages.  Most AWT event classes are not  implemented as being strictly immutable, but could be with small  modifications. Similarly, in a system that uses some form of messaging  to communicate between components, making the message objects immutable  is probably sensible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;atitle&quot;&gt;Guidelines for writing immutable classes&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Writing immutable classes is easy. A class will be immutable if all of the following are true:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;All of its fields are final&lt;/li&gt;
&lt;li&gt;The class is declared final&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;this&lt;/code&gt; reference is not allowed to escape during construction&lt;/li&gt;
&lt;li&gt;Any fields that contain references to mutable objects, such as arrays, collections, or mutable classes like &lt;code&gt;Date&lt;/code&gt;:  &lt;ul&gt;&lt;li&gt;Are private&lt;/li&gt;
&lt;li&gt;Are never returned or otherwise exposed to callers&lt;/li&gt;
&lt;li&gt;Are the only reference to the objects that they reference&lt;/li&gt;
&lt;li&gt;Do not change the state of the referenced objects after construction&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;&lt;span class=&quot;atitle&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/597009945739801679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/01/immutability-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/597009945739801679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/597009945739801679'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2012/01/immutability-in-java.html' title='immutability in Java'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-3868365310020939376</id><published>2011-10-10T08:59:00.000-07:00</published><updated>2011-10-10T08:59:28.442-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="return type"/><title type='text'>Can a method declare multiple return values? Or Is there some way to return more than one value?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Sort of.A method can declare only one return value. BUT... If you want to return, say, three int values,&lt;br /&gt;
then the declared return type can be an Int array. Stuff those ints into the array,and passIt on back. It&#39;s&lt;br /&gt;
a little more involved to return multiple values with different types.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/3868365310020939376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/can-method-declare-multiple-return.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/3868365310020939376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/3868365310020939376'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/can-method-declare-multiple-return.html' title='Can a method declare multiple return values? Or Is there some way to return more than one value?'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-1643794227174376934</id><published>2011-10-10T08:57:00.000-07:00</published><updated>2011-10-10T08:57:43.214-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="object"/><title type='text'>What happens If the argument you want to pass Is an object Instead of II primitive?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;You&#39;ll learn more about this In later chapters,but you already know the answer.Java passes&lt;br /&gt;
everything by value. EverythIng. But...value means bits Inside the vcrtable. And remem ber,you don&#39;t&lt;br /&gt;
stuff objects Into variables; the variable Is a remote control-a reference to an object. SoIf you pass a&lt;br /&gt;
reference to an object into a method, you&#39;re passing a copy of the remote control. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/1643794227174376934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/what-happens-if-argument-you-want-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/1643794227174376934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/1643794227174376934'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/what-happens-if-argument-you-want-to.html' title='What happens If the argument you want to pass Is an object Instead of II primitive?'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-7223219913526263288</id><published>2011-10-10T07:22:00.001-07:00</published><updated>2011-10-10T07:31:33.404-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="class"/><category scheme="http://www.blogger.com/atom/ns#" term="instance variable"/><category scheme="http://www.blogger.com/atom/ns#" term="method"/><category scheme="http://www.blogger.com/atom/ns#" term="object"/><title type='text'>Identify who am I ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I am compiled from a .java file.&amp;nbsp;&amp;nbsp; : &lt;b&gt;class&lt;/b&gt;&lt;br /&gt;
My instance variable values can be different from my buddy’s values. : &lt;b&gt;object&lt;/b&gt;&lt;br /&gt;
I behave like a template. : &lt;b&gt;class&lt;/b&gt;&lt;br /&gt;
I like to do stuff. : &lt;b&gt;object, method&lt;/b&gt;&lt;br /&gt;
I can have many methods. : &lt;b&gt;class,object &lt;/b&gt;&lt;br /&gt;
I represent ‘state’. :&lt;b&gt; instance variable&lt;/b&gt;&lt;br /&gt;
I have behaviors. : &lt;b&gt;object,class&lt;/b&gt;&lt;br /&gt;
I am located in objects. : &lt;b&gt;method, instance variable&lt;/b&gt;&lt;br /&gt;
I live on the heap.&amp;nbsp; : &lt;b&gt;object&lt;/b&gt;&lt;br /&gt;
I am used to create object instances.  : &lt;b&gt;class&lt;/b&gt;&lt;br /&gt;
My state can change.: &lt;b&gt;object,instance variable&lt;/b&gt;&lt;br /&gt;
I declare methods. : &lt;b&gt;class&lt;/b&gt;&lt;br /&gt;
I can change at runtime. : &lt;b&gt;object, instance variable&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/7223219913526263288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/identify-who-am-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/7223219913526263288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/7223219913526263288'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/identify-who-am-i.html' title='Identify who am I ?'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-8195172911480405544</id><published>2011-10-10T06:39:00.000-07:00</published><updated>2011-10-10T06:39:04.964-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="class"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="object"/><title type='text'>What’s the difference between a class and an object?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;A class is blueprint for an object .It tell VM how to make an object of that perticular type.&lt;br /&gt;
Each object made from that class can have its own values for the instance variables of that class.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/8195172911480405544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/whats-difference-between-class-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/8195172911480405544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/8195172911480405544'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/whats-difference-between-class-and.html' title='What’s the difference between a class and an object?'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-9145006630887906724</id><published>2011-10-10T06:34:00.000-07:00</published><updated>2011-10-10T06:34:41.699-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="instance variable"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="method"/><category scheme="http://www.blogger.com/atom/ns#" term="oop"/><title type='text'>What is method and instance variable ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Things an object knows about itself are called instance variable.&lt;br /&gt;
While Things an object can do are called methods.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/9145006630887906724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/what-is-method-and-instance-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/9145006630887906724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/9145006630887906724'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/what-is-method-and-instance-variable.html' title='What is method and instance variable ?'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-5390663188332001637</id><published>2011-10-10T06:11:00.001-07:00</published><updated>2011-10-10T06:42:08.443-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="class"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="oop"/><title type='text'>Why does everything have to be In a class ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;java is an object-oriented(00) language. It&#39;s not Iike the old days when you had steam driven&lt;br /&gt;
compliers and wrote one monolithic source file with a pile of procedures &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/5390663188332001637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/why-does-everything-have-to-be-in-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/5390663188332001637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/5390663188332001637'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/why-does-everything-have-to-be-in-class.html' title='Why does everything have to be In a class ?'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-239135649436725317</id><published>2011-10-03T03:07:00.000-07:00</published><updated>2011-10-03T03:07:21.792-07:00</updated><title type='text'>Preparing Article For Best Java Practices</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Dear Visitors,&lt;br /&gt;
As we are working on some best java article for programming practice,&lt;br /&gt;
So stay tuned and wait for couple of days for &quot;Best JAVA Rocking Solution&quot; !!!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/239135649436725317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/preparing-article-for-best-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/239135649436725317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/239135649436725317'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/10/preparing-article-for-best-java.html' title='Preparing Article For Best Java Practices'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-5149080169507153873</id><published>2011-07-08T02:04:00.000-07:00</published><updated>2011-07-08T02:04:07.210-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="java 7"/><category scheme="http://www.blogger.com/atom/ns#" term="java developer"/><category scheme="http://www.blogger.com/atom/ns#" term="java7"/><title type='text'>JAVA 7 available now</title><content type='html'>Guys do you know JAVA 7 has been launched.&lt;br /&gt;
Please check &lt;a href=&quot;http://www.techgig.com/tech-news/editors-pick/Finally-Java-7-Release-Candidate-Available-for-Download-4232?mailer_id=233&amp;amp;utm_source=tgdailynews&amp;amp;utm_medium=email&amp;amp;utm_campaign=tgdailynews_8Jul&amp;amp;dt=20110708&amp;amp;usr=121354&quot;&gt;here&lt;/a&gt; . &lt;br /&gt;
Enjoy journey of java</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/5149080169507153873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/07/java-7-available-now.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/5149080169507153873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/5149080169507153873'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/07/java-7-available-now.html' title='JAVA 7 available now'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-2858399564981307502</id><published>2011-06-16T23:44:00.000-07:00</published><updated>2011-06-16T23:48:43.740-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="java developer"/><category scheme="http://www.blogger.com/atom/ns#" term="java standard process"/><category scheme="http://www.blogger.com/atom/ns#" term="java upgrade"/><title type='text'>Java standards process to get an upgrade</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;Hi&lt;br /&gt;
&lt;br /&gt;
Guys do you know that Java standards process to get an upgrade &lt;br /&gt;
and &amp;nbsp; Java SE 7 gets thumbs-up from standards committee ?&amp;nbsp;                                   &lt;br /&gt;
&lt;br /&gt;
Please check &lt;a href=&quot;http://www.javaworld.com/javaworld/jw-06-2011/110613-jcp-next.html&quot;&gt;here &lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/2858399564981307502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/06/java-standards-process-to-get-upgrade.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/2858399564981307502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/2858399564981307502'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/06/java-standards-process-to-get-upgrade.html' title='Java standards process to get an upgrade'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4034563687330741411.post-8121095137156421095</id><published>2011-05-15T01:45:00.000-07:00</published><updated>2011-06-16T23:03:38.632-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="j2ee"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="java developer"/><category scheme="http://www.blogger.com/atom/ns#" term="java devopment guid"/><category scheme="http://www.blogger.com/atom/ns#" term="open source developer"/><category scheme="http://www.blogger.com/atom/ns#" term="open source development  guide"/><category scheme="http://www.blogger.com/atom/ns#" term="opensource"/><title type='text'>Java news</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Hi Everyone,&lt;br /&gt;
&lt;br /&gt;
Here you will see different news of java as well as new technology updates with best development practices.&lt;br /&gt;
So Be here to be java geeks !!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bejavadeveloper.blogspot.com/feeds/8121095137156421095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/05/10-common-bad-habits-of-man.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/8121095137156421095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4034563687330741411/posts/default/8121095137156421095'/><link rel='alternate' type='text/html' href='http://bejavadeveloper.blogspot.com/2011/05/10-common-bad-habits-of-man.html' title='Java news'/><author><name>Jignesh Vachhani</name><uri>http://www.blogger.com/profile/18040117955302228816</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>