<?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-3717622510887074921</id><updated>2024-08-30T08:19:49.033+05:30</updated><category term="Java programs"/><category term="Java points to remember"/><category term="Php"/><category term="Java interview questions"/><category term="A+ dumbs"/><category term="Engineering fun"/><category term="Project"/><title type='text'>Programming Katta</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><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>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3717622510887074921.post-3420782219736805236</id><published>2012-05-10T02:02:00.000+05:30</published><updated>2012-06-01T02:36:04.023+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Whether given no. is Armstrong or not</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;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;


&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;/*Write a program to find whether given no. is Armstrong or not.&lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Example :&lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Input - 153&lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Output - 1^3 + 5^3 + 3^3 = 153, so it is Armstrong no. */&lt;/b&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;
class Armstrong{&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num = Integer.parseInt(args[0]);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int n = num; //use to check at last time&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int check=0,remainder;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(num &amp;gt; 0){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;remainder = num % 10;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;check = check + (int)Math.pow(remainder,3);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;num = num / 10;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(check == n)&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&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;System.out.println(n+&quot; is an Armstrong Number&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&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;System.out.println(n+&quot; is not a Armstrong Number&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
}&lt;/div&gt;
&lt;hr align=&quot;left&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #f2f2f2; font-family: arial, verdana; font-size: 13px; height: 1px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot; width=&quot;100%&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/3420782219736805236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/whether-given-no-is-armstrong-or-not.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/3420782219736805236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/3420782219736805236'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/whether-given-no-is-armstrong-or-not.html' title='Whether given no. is Armstrong or not'/><author><name>Unknown</name><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3717622510887074921.post-2163723067678832724</id><published>2012-05-08T02:13:00.000+05:30</published><updated>2012-05-09T19:32:23.779+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Convert given no. of days into months and days</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;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;/* Write a program to convert given no. of days into months and days.&lt;/b&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;(Assume that each month is of 30 days)&lt;/b&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;Example :&lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;Input - 69&lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;Output - 69 days = 2 Month and 9 days */&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;
class DayMonthDemo{&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num = Integer.parseInt(args[0]);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int days = num%30;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int month = num/30;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(num+&quot; days = &quot;+month+&quot; Month and &quot;+days+&quot; days&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
}&lt;/div&gt;
&lt;hr align=&quot;left&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #f2f2f2; font-family: arial, verdana; font-size: 13px; height: 1px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot; width=&quot;100%&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/2163723067678832724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/convert-given-no-of-days-into-months.html#comment-form' title='34 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2163723067678832724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2163723067678832724'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/convert-given-no-of-days-into-months.html' title='Convert given no. of days into months and days'/><author><name>Unknown</name><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>34</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3717622510887074921.post-2827808044817307080</id><published>2012-05-08T02:12:00.000+05:30</published><updated>2012-05-09T19:32:23.865+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Program to generate a Triangle</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;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

/*Write a program to generate a Triangle.&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&amp;nbsp;eg:&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&amp;nbsp;&amp;nbsp;1&lt;br /&gt;&amp;nbsp;&amp;nbsp;2 2&lt;br /&gt;&amp;nbsp;&amp;nbsp;3 3 3&lt;br /&gt;&amp;nbsp;&amp;nbsp;4 4 4 4&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&amp;nbsp;and so on as per user given number */&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;
class Triangle{&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num = Integer.parseInt(args[0]);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(int i=1;i&amp;lt;=num;i++){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&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;for(int j=1;j&amp;lt;=i;j++){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&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;&amp;nbsp;System.out.print(&quot; &quot;+i+&quot; &quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&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;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&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;System.out.print(&quot;\n&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&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;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
}&lt;/div&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;/b&gt;&lt;br /&gt;
&lt;hr align=&quot;left&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #f2f2f2; height: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; width=&quot;100%&quot; /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/2827808044817307080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/program-to-generate-triangle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2827808044817307080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2827808044817307080'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/program-to-generate-triangle.html' title='Program to generate a Triangle'/><author><name>Unknown</name><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-3717622510887074921.post-6626570129445746341</id><published>2012-05-08T01:55:00.000+05:30</published><updated>2012-05-09T19:32:23.874+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Program to Swap the values</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;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;/* Write a program to Swap the values */&lt;/b&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
class Swap{&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num1 = Integer.parseInt(args[0]);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num2 = Integer.parseInt(args[1]);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;\n***Before Swapping***&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Number 1 : &quot;+num1);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Number 2 : &quot;+num2);&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Swap logic&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;num1 = num1 + num2;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;num2 = num1 - num2;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;num1 = num1 - num2;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;\n***After Swapping***&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Number 1 : &quot;+num1);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Number 2 : &quot;+num2);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
}&lt;/div&gt;
&lt;hr align=&quot;left&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #f2f2f2; font-family: arial, verdana; font-size: 13px; height: 1px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot; width=&quot;100%&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/6626570129445746341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/program-to-swap-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/6626570129445746341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/6626570129445746341'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/program-to-swap-values.html' title='Program to Swap the values'/><author><name>Unknown</name><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-3717622510887074921.post-2264651516945775541</id><published>2012-05-08T01:53:00.000+05:30</published><updated>2012-05-09T19:32:23.823+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Program to Display Multiplication Table</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;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;/* Program to Display Multiplication Table */&lt;/b&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
class MultiplicationTable{&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num = Integer.parseInt(args[0]);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;*****MULTIPLICATION TABLE*****&quot;);&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(int i=1;i&amp;lt;=num;i++){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(int j=1;j&amp;lt;=num;j++){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&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;System.out.print(&quot; &quot;+i*j+&quot; &quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.print(&quot;\n&quot;);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
}&lt;/div&gt;
&lt;hr align=&quot;left&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #f2f2f2; font-family: arial, verdana; font-size: 13px; height: 1px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot; width=&quot;100%&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/2264651516945775541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/program-to-display-multiplication-table.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2264651516945775541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2264651516945775541'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/program-to-display-multiplication-table.html' title='Program to Display Multiplication Table'/><author><name>Unknown</name><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>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3717622510887074921.post-2629195933668718634</id><published>2012-05-08T01:50:00.000+05:30</published><updated>2012-05-09T19:32:23.853+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Concatenate  string using for Loop</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;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b style=&quot;font-size: 13px;&quot;&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;/* Write a program to Concatenate&amp;nbsp; string using for Loop&lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Example:&lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Input - 5&lt;/b&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Output - 1 2 3 4 5 */&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;&quot;&gt;
class Join{&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num = Integer.parseInt(args[0]);&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String result = &quot; &quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(int i=1;i&amp;lt;=num;i++){&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result = result + i + &quot; &quot;;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(result);&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&amp;nbsp;&amp;nbsp;}&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
}&lt;/div&gt;
&lt;hr align=&quot;left&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #f2f2f2; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #f2f2f2; font-family: arial, verdana; font-size: 13px; height: 1px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot; width=&quot;100%&quot; /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/2629195933668718634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/concatenate-string-using-for-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2629195933668718634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2629195933668718634'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/concatenate-string-using-for-loop.html' title='Concatenate  string using for Loop'/><author><name>Unknown</name><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-3717622510887074921.post-8256869154141631745</id><published>2012-05-06T13:55:00.001+05:30</published><updated>2012-05-23T16:39:28.987+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java points to remember"/><title type='text'>JavaServer Pages</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;




&amp;nbsp;
&lt;b&gt;Java Server Pages&lt;/b&gt; (JSP)&amp;nbsp;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
It is a &lt;a href=&quot;http://programmingkatta.blogspot.in/search/label/Java%20points%20to%20remember&quot; target=&quot;_blank&quot;&gt;Java&lt;/a&gt; technology that allows software developers 
to dynamically generate HTML, XML or other types of documents in response to a 
Web client request. The technology allows Java code and certain pre-defined 
actions to be embedded into static content.&lt;/div&gt;
&lt;br /&gt;
The JSP syntax adds additional XML-like tags, called JSP actions, to be used to 
invoke built-in functionality. Additionally, the technology allows for the 
creation of JSP tag libraries that act as extensions to the standard HTML or 
XML 
tags. Tag libraries provide a platform independent way of extending the 
capabilities of a Web server. JSPs are compiled into Java Servlets
 by a JSP compiler. A JSP compiler may 
generate a servlet in Java code that is then compiled by the Java 
compiler, or it may generate byte code for the servlet directly.&lt;br /&gt;
&quot;JavaServer Pages&quot; is a technology released by Sun.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;JSP and Servlets&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Architecturally speaking, JSP can be viewed as a high-level abstraction of 
servlets that is implemented as an extension of the Servlet 2.1 API. Both 
servlets and JSPs were originally developed at Sun Microsystems, initially 
created by Anselm Baird-Smith and later elaborated on as a specification by 
Satish Dharmaraj. Starting with version 1.2 of the JSP specification, JavaServer 
Pages have been developed under the Java Community Process. JSR 53 defines both 
the JSP 1.2 and Servlet 2.3 specifications and JSR 152 defines the JSP 2.0 
specification. As of May 2006 the JSP 2.1 specification has been released under 
JSR 245 as part of Java EE 5.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSP Syntax:&lt;/b&gt;&lt;br /&gt;
A JavaServer Page may be broken down into the following pieces:&lt;br /&gt;
&lt;ins style=&quot;border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; display: inline-table; height: 60px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; visibility: visible; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;
&lt;br /&gt;
* static data such as HTML,&lt;br /&gt;
* JSP directives such as the include directive,&lt;br /&gt;
* JSP scripting elements and variables,&lt;br /&gt;
* JSP actions,&lt;br /&gt;
* custom tags&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Static data&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Static data is written out to the HTTP response exactly as it appears in the 
input file. Thus a normal HTML page with no embedded java or actions would be 
valid JSP input. In that case, the same data would be sent in the response each 
and every time by the web server to the browser.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSP directives&lt;/b&gt;&lt;br /&gt;
JSP directives control how the JSP compiler generates the servlet. The following directives are available:&lt;br /&gt;
&lt;br /&gt;
* include – The include directive informs the JSP compiler to include a complete 
file into the current file. It is as if the contents of the included file were 
pasted directly into the original file. This functionality is similar to the one 
provided by the C preprocessor. Included files generally have the extension &quot;jspf&quot; 
(for JSP Fragment):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ include file=&quot;somefile.jspf&quot; %&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* page – There are several options to the page directive.&lt;br /&gt;
&lt;br /&gt;
import results in a Java import statement being inserted into the resulting file&lt;br /&gt;
contentType specifies the content that is generated. This should be used if HTML 
is not used or if the character set is not the default character set.&lt;br /&gt;
errorPage indicates the page that will be shown if an exception occurs while processing the HTTP request.&lt;br /&gt;
isErrorPage if set to true, it indicates that this is the error page.&lt;br /&gt;
isThreadSafe indicates if the resulting servlet is thread safe.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ page import=&quot;java.util.*&quot; %&amp;gt; //example import&lt;br /&gt;
&amp;lt;%@ page contentType=&quot;text/html&quot; %&amp;gt; //example contentType&lt;br /&gt;
&amp;lt;%@ page isErrorPage=false %&amp;gt; //example for non error page&lt;br /&gt;
&amp;lt;%@ page isThreadSafe=true %&amp;gt; //example for a thread safe JSP&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Note:&lt;/u&gt; Only the &quot;import&quot; page directive can be used multiple times in the same JSP.&lt;br /&gt;
&lt;br /&gt;
* taglib – The taglib directive indicates that a JSP tag library is to be used. 
The directive requires that a prefix be specified (much like a namespace in C++) and the URI for the tag library description.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ taglib prefix=&quot;myprefix&quot; uri=&quot;taglib/mytag.tld&quot; %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSP scripting elements and objects&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSP Implicit Objects&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The following JSP implicit objects are exposed by the JSP container and can be referenced by the programmer:&lt;br /&gt;
&lt;br /&gt;
* out – The JSPWriter used to write the data to the response stream.&lt;br /&gt;
* page – The servlet itself.&lt;br /&gt;
* pageContext – A PageContext instance that contains data associated with the 
whole page. A given HTML page may be passed among multiple JSPs.&lt;br /&gt;
* request – The HTTP request object.&lt;br /&gt;
* response – The HTTP response object.&lt;br /&gt;
* session – The HTTP session object that can be used to track information about 
a user from one request to another.&lt;br /&gt;
* config – Provides servlet configuration data.&lt;br /&gt;
* application – Data shared by all JSPs and servlets in the application.&lt;br /&gt;
* exception – Exceptions not caught by application code.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Scripting elements&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
There are three basic kinds of scripting elements that allow java code to be 
inserted directly into the servlet.&lt;br /&gt;
&lt;br /&gt;
* A declaration tag places a variable definition inside the body of the 
java servlet class. Static data members may be defined as well.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%! int serverInstanceVariable = 1; %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* A scriptlet tag places the contained statements inside the _jspService() method of the java servlet class.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;% int localStackBasedVariable = 1;&lt;br /&gt;
out.println(localStackBasedVariable); %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* An expression tag places an expression to be evaluated inside the java
 servlet class. Expressions should not be terminated with a semi-colon .&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%= &quot;expanded inline data &quot; + 1 %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSP actions&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
JSP actions are XML tags that invoke built-in web server functionality. The following actions are provided:&lt;br /&gt;
&lt;br /&gt;
jsp:include Similar to a subroutine, the Java servlet temporarily hands the 
request and response off to the specified JavaServer Page. Control will then 
return to the current JSP, once the other JSP has finished. Using this, JSP code 
will be shared between multiple other JSPs, rather than duplicated.&lt;br /&gt;
jsp:param Can be used inside a jsp:include, jsp:forward or jsp:params block. 
Specifies a parameter that will be added to the request&#39;s current parameters.&lt;br /&gt;
jsp:forward Used to hand off the request and response to another JSP or servlet. 
Control will never return to the current JSP.&lt;br /&gt;
jsp:plugin Older versions of Netscape Navigator and Internet Explorer used 
different tags to embed an applet. This action generates the browser specific 
tag needed to include an applet.&lt;br /&gt;
jsp:fallback The content to show if the browser does not support applets.&lt;br /&gt;
jsp:getProperty Gets a property from the specified JavaBean.&lt;br /&gt;
jsp:setProperty Sets a property in the specified JavaBean.&lt;br /&gt;
jsp:useBean Creates or re-uses a JavaBean available to the JSP page.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Examples of tags&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
jsp:include&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;jsp:include page=&quot;mycommon.jsp&quot; &amp;gt;&lt;br /&gt;
&amp;lt;jsp:param name=&quot;extraparam&quot; value=&quot;myvalue&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/jsp:include&amp;gt;&lt;br /&gt;
name:&amp;lt;%=request.getParameter(&quot;extraparam&quot;)%&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
jsp:forward&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jsp:forward page=&quot;subpage.jsp&quot; &amp;gt;&lt;br /&gt;
&amp;lt;jsp:param name=&quot;forwardedFrom&quot; value=&quot;this.jsp&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/jsp:forward&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this forwarding example, the request is forwarded to &quot;subpage.jsp&quot;. The request handling does not return to this page.&lt;br /&gt;
&lt;br /&gt;
jsp:plugin&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jsp:plugin type=applet height=&quot;100%&quot; width=&quot;100%&quot;&lt;br /&gt;
archive=&quot;myjarfile.jar,myotherjar.jar&quot;&lt;br /&gt;
codebase=&quot;/applets&quot;&lt;br /&gt;
code=&quot;com.foo.MyApplet&quot; &amp;gt;&lt;br /&gt;
&amp;lt;jsp:params&amp;gt;&lt;br /&gt;
&amp;lt;jsp:param name=&quot;enableDebug&quot; value=&quot;true&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/jsp:params&amp;gt;&lt;br /&gt;
&amp;lt;jsp:fallback&amp;gt;&lt;br /&gt;
Your browser does not support applets.&lt;br /&gt;
&amp;lt;/jsp:fallback&amp;gt;&lt;br /&gt;
&amp;lt;/jsp:plugin&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The plugin example illustrates a &amp;lt;html&amp;gt; uniform way of embedding 
applets in a web page. Before the advent of the &amp;lt;OBJECT&amp;gt; tag, 
there was no common way of 
embedding applets. This tag is poorly designed and hopefully future 
specs will allow for dynamic attributes (height=&quot;${param.height}&quot;, 
code=&quot;${chart}&quot;,
etc) and dynamic parameters. Currently, the jsp:plugin tag does not 
allow for dynamically called applets. For example, if you have a 
charting applet that requires the data
points to be passed in as parameters, you can&#39;t use jsp:params unless 
the number of data points are constant. You can&#39;t, for example, loop 
through a ResultSet to
create the jsp:param tags. You have to hand code each jsp:param tag. 
Each of those jsp:param tags however can have a dynamic name and a 
dynamic value.&lt;br /&gt;
&lt;br /&gt;
jsp:useBean&lt;br /&gt;
&lt;br /&gt;
&amp;lt;jsp:useBean id=&quot;myBean&quot; class=&quot;com.foo.MyBean&quot; scope=&quot;request&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;jsp:getProperty name=&quot;myBean&quot; property=&quot;lastChanged&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;jsp:setProperty name=&quot;myBean&quot; property=&quot;lastChanged&quot; value=&quot;&amp;lt;%= new Date()%&amp;gt;&quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The scope attribute can be request, page, session or application. It has the following meanings:&lt;br /&gt;
&lt;br /&gt;
* request — the attribute is available for the lifetime of the request. 
Once the request has been processed by all of the JSPs, the attribute 
will be 
de-referenced.&lt;br /&gt;
* page — the attribute is available for the current page only.&lt;br /&gt;
* session — the attribute is available for the lifetime of the user&#39;s session.&lt;br /&gt;
* application — the attribute is available to every instance and is never de-referenced. Same as a global variable.&lt;br /&gt;
&lt;br /&gt;
The example above will use a Bean Manager to create an instance of the class 
com.foo.MyBean and store the instance in the attribute named &quot;myBean&quot;. The 
attribute will be available for the life-time of the request. It can be shared 
among all of the JSPs that were included or forwarded-to from the main JSP that first received the request.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSP tag libraries&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In addition to the pre-defined JSP actions, developers may add their own custom 
actions using the JSP Tag Extension API. Developers write a Java class that 
implements one of the Tag interfaces and provide a tag library 
XML description file that specifies the tags and the java classes that implement the tags.&lt;br /&gt;
&lt;br /&gt;
Consider the following JSP.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ taglib uri=&quot;mytaglib.tld&quot; prefix=&quot;myprefix&quot; %&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;myprefix:myaction&amp;gt; &amp;lt;%-- the start tag %&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/myprefix:myaction&amp;gt; &amp;lt;%-- the end tag %&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
The JSP compiler will load the mytaglib.tld XML file and see that the 
tag &#39;myaction&#39; 
is implemented by the java class &#39;MyActionTag&#39;. The first time the tag 
is used 
in the file, it will create an instance of &#39;MyActionTag&#39;. Then (and each
 
additional time that the tag is used), it will invoke the method 
doStartTag() 
when it encounters the starting tag. It looks at the result of the start
 tag, 
and determines how to process the body of the tag. The body is the text 
between the start tag and the end tag. The doStartTag() method may 
return one of the following:&lt;br /&gt;
&lt;br /&gt;
* SKIP_BODY - the body between the tag is not processed&lt;br /&gt;
* EVAL_BODY_INCLUDE - evaluate the body of the tag&lt;br /&gt;
* EVAL_BODY_TAG - evaluate the body of the tag and push the result onto stream 
(stored in the body content property of the tag).&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Note:&lt;/u&gt; If tag extends the BodyTagSupport class, the method 
doAfterBody() will be called when the body has been processed just prior
 to calling the doEndTag(). 
This method is used to implement looping constructs.&lt;br /&gt;
&lt;br /&gt;
When it encounters the end tag, it invokes the doEndTag() method. The method may return one of two values:&lt;br /&gt;
&lt;br /&gt;
* EVAL_PAGE - this indicates that the rest of the JSP file should be processed.&lt;br /&gt;
* SKIP_PAGE - this indicates that no further processing should be done. Control 
leaves the JSP page. This is what is used for the forwarding action.&lt;br /&gt;
&lt;br /&gt;
The myaction tag above would have an implementation class that looked like something below:&lt;br /&gt;
&lt;br /&gt;
public class MyActionTag extends TagSupport {&lt;br /&gt;
//Releases all instance variables.&lt;br /&gt;
public void release() {...}&lt;br /&gt;
&lt;br /&gt;
public MyActionTag() { ... }&lt;br /&gt;
&lt;br /&gt;
//called for the start tag&lt;br /&gt;
public int doStartTag() { ... }&lt;br /&gt;
&lt;br /&gt;
//called at the end tag &lt;br /&gt;
public int doEndTag(){ ... }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Add Body Tag description.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Internationalization&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Internationalization in JSP is accomplished the same way as in a normal Java application, that is by using resource bundles.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;JSP 2.0&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The new version of the JSP specification includes new features meant to improve programmer productivity. Namely:&lt;br /&gt;
&lt;br /&gt;
* An Expression Language (EL) which allows developers to create Velocity-style templates (among other things).&lt;br /&gt;
* A faster/easier way to create new tags.&lt;br /&gt;
&lt;br /&gt;
Hello, ${param.visitor} &amp;lt;%-- same as: Hello, &amp;lt;%=request.getParameter(&quot;visitor&quot;)%&amp;gt; --%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Model-view-controller paradigm&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Sun recommends that the Model-view-controller pattern be used with the 
JSP files in order to split the presentation from request processing and
 data storage. 
Either regular servlets or separate JSP files are used to process the 
request. After the request processing has finished, control is passed to
 a JSP used only 
for creating the output. There are several platforms based on 
Model-view-controller pattern for web tiers (such as Apache Struts and 
Spring framework).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Example&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Regardless of whether the JSP compiler generates Java source code for a servlet 
or emits the byte code directly, it is helpful to understand how the JSP 
compiler transforms the page into a Java servlet. For an example, consider the following input JSP and its resulting generated 
Java Servlet.&lt;br /&gt;
&lt;br /&gt;
Input JSP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ page errorPage=&quot;myerror.jsp&quot; %&amp;gt;&lt;br /&gt;
&amp;lt;%@ page import=&quot;com.foo.bar&quot; %&amp;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;%! int serverInstanceVariable = 1;%&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;% int localStackBasedVariable = 1; %&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;%= &quot;expanded inline data &quot; + 1 %&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
Resulting servlet&lt;br /&gt;
&lt;br /&gt;
package jsp_servlet;&lt;br /&gt;
import java.util.*;&lt;br /&gt;
import java.io.*;&lt;br /&gt;
import javax.servlet.*;&lt;br /&gt;
import javax.servlet.http.*;&lt;br /&gt;
import javax.servlet.jsp.*;&lt;br /&gt;
import javax.servlet.jsp.tagext.*;&lt;br /&gt;
&lt;br /&gt;
import com.foo.bar; //imported as a result of &amp;lt;%@ page import=&quot;com.foo.bar&quot; %&amp;gt;&lt;br /&gt;
import ...&lt;br /&gt;
&lt;br /&gt;
class _myservlet implements javax.servlet.Servlet, javax.servlet.jsp.HttpJspPage 
{&lt;br /&gt;
//inserted as a&lt;br /&gt;
//result of &amp;lt;%! int serverInstanceVariable = 1;%&amp;gt;&lt;br /&gt;
int serverInstanceVariable = 1; &lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
public void _jspService( javax.servlet.http.HttpServletRequest request,&lt;br /&gt;
javax.servlet.http.HttpServletResponse response )&lt;br /&gt;
throws javax.servlet.ServletException,&lt;br /&gt;
java.io.IOException&lt;br /&gt;
{&lt;br /&gt;
javax.servlet.ServletConfig config = ...;//get the servlet config&lt;br /&gt;
Object page = this;&lt;br /&gt;
PageContext pageContext = ...;//get the page context for this request &lt;br /&gt;
javax.servlet.jsp.JspWriter out = pageContext.getOut();&lt;br /&gt;
HttpSession session = request.getSession( true );&lt;br /&gt;
try {&lt;br /&gt;
out.print( &quot;&amp;lt;html&amp;gt;\r\n&quot; );&lt;br /&gt;
out.print( &quot;&amp;lt;head&amp;gt;\r\n&quot; );&lt;br /&gt;
...&lt;br /&gt;
//from &amp;lt;% int localStackBasedVariable = 1; %&amp;gt;&lt;br /&gt;
int localStackBasedVariable = 1; &lt;br /&gt;
...&lt;br /&gt;
out.print( &quot;&amp;lt;table&amp;gt;\r\n&quot; );&lt;br /&gt;
out.print( &quot; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&quot; );&lt;br /&gt;
//note, toStringOrBlank() converts the expression into a string or if&lt;br /&gt;
// the expression is null, it uses the empty string.&lt;br /&gt;
//from &amp;lt;%= &quot;expanded inline data &quot; + 1 %&amp;gt;&lt;br /&gt;
out.print( toStringOrBlank( &quot;expanded inline data &quot; + 1 ) );&lt;br /&gt;
out.print( &quot; &amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;\r\n&quot; );&lt;br /&gt;
...&lt;br /&gt;
} catch ( Exception _exception ) {&lt;br /&gt;
//clean up and redirect to error page in &amp;lt;%@ page errorPage=&quot;myerror.jsp&quot; %&amp;gt;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/8256869154141631745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/javaserver-pages.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/8256869154141631745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/8256869154141631745'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/javaserver-pages.html' title='JavaServer Pages'/><author><name>Unknown</name><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3717622510887074921.post-6750988594006324169</id><published>2012-05-06T13:54:00.001+05:30</published><updated>2012-05-23T16:40:12.036+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java points to remember"/><title type='text'>Java Servlet</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;



&lt;b&gt;Java Servlet&lt;/b&gt;&lt;/h2&gt;
The Servlet API, contained in the Java package hierarchy 
javax.servlet, defines the expected interactions of a web container and a
 servlet. A web container is essentially
the component of a web server that interacts with the servlets. The web 
container is responsible for managing the lifecycle of servlets, mapping
 a URL to a particular
servlet and ensuring that the URL requester has the correct access 
rights.&lt;br /&gt;
&lt;br /&gt;
A Servlet is an object that receives requests (ServletRequest) and 
generates a response (ServletResponse) based on the request. The API 
package javax.servlet.http defines
HTTP subclasses of the generic servlet (HttpServlet) request 
(HttpServletRequest) and response (HttpServletResponse) as well as an 
(HttpSession) that tracks multiple
requests and responses between the web server and a client. Servlets may
 be packaged in a WAR file as a Web application.&lt;br /&gt;
&lt;br /&gt;
Moreover, servlets can be generated automatically by &lt;a href=&quot;http://www.freejavaguide.com/jsp.html&quot;&gt;JavaServer Pages&lt;/a&gt; (JSP), or alternately by template engines such as WebMacro. Often servlets are used in 
conjunction with JSPs in a pattern called &quot;Model 2&quot;, which is a flavor of the model-view-controller pattern.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;History&lt;/b&gt;&lt;br /&gt;
The original servlet specification was created by Sun Microsystems 
(version 1.0 was finalized in June 1997). Starting with version 2.3, the
 servlet 
specification was developed under the Java Community Process. JSR 53 
defined both the Servlet 2.3 and JavaServer Page 1.2 specifications. JSR
 154 specifies 
the Servlet 2.4 and 2.5 specifications. As of May 10, 2006, the current 
version of the servlet specification is 2.5.&lt;br /&gt;
&lt;br /&gt;
In his blog on java.net, Sun veteran and GlassFish lead Jim Driscoll 
details the history of servlet technology. James Gosling first thought 
of servlets in the 
early days of Java, but the concept did not become a product until Sun 
shipped the Java Web Server product. This was before what is now the 
Java Platform, 
Enterprise Edition was made into a specification.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Web containers&lt;/b&gt;&lt;br /&gt;
A Web container is a computer program that runs Web applications. Web 
containers are also sometimes called Web engines. Like the other Java 
APIs, different 
vendors provide their own implementation. Below is a list of some of the
 free web containers. (Note that &#39;free&#39; means that commercial use is 
free. Some of the 
commercial containers, e.g. Resin and Orion, make ideal development 
containers and are also free to use in a server environment for 
non-profit organizations).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Non-commercial web containers&lt;/b&gt;&lt;br /&gt;
&lt;ins style=&quot;border: none; display: inline-table; height: 15px; margin: 0; padding: 0; position: relative; visibility: visible; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;
&lt;ins id=&quot;aswift_3_anchor&quot; style=&quot;border: none; display: block; height: 15px; margin: 0; padding: 0; position: relative; visibility: visible; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;
&lt;br /&gt;
* Java System Application Server is developed by Sun.&lt;br /&gt;
* Apache Tomcat (formerly Jakarta Tomcat) is an open source web 
container available free of charge under the Apache Software License. It
 is used in the 
official reference implementation and has a reputation for being stable.&lt;br /&gt;
* Jetty&lt;br /&gt;
* Jaminid contains a higher abstraction than servlets.&lt;br /&gt;
* Enhydra&lt;br /&gt;
* jo!&lt;br /&gt;
* Winstone supports specification v2.4, has a focus on minimal 
configuration and the ability to strip the container down to only what 
you need.&lt;br /&gt;
* tjws spec 2.4, small footprint, modular design&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/6750988594006324169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/java-servlet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/6750988594006324169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/6750988594006324169'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/java-servlet.html' title='Java Servlet'/><author><name>Unknown</name><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-3717622510887074921.post-4510709287041747492</id><published>2012-05-03T21:49:00.000+05:30</published><updated>2012-05-23T16:41:00.021+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java points to remember"/><title type='text'>Flow control and Exception in 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;h2 style=&quot;text-align: center;&quot;&gt;

&lt;u style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;Flow Control and Exceptions&lt;/b&gt;&lt;/u&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.25in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Unreachable statements produce a compile-time error.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
while (false) { x = 3; } // won&#39;t compile&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
for (;false;) { x =3; } // won&#39;t compile&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
if (false) {x = 3; } // will compile, to provide the ability to conditionally compile the code.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.25in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Local variables already declared in an enclosing block, therefore visible in a nested block cannot be re-declared inside the nested block.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.25in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;A local variable in a block may be re-declared in another local block, if the blocks are disjoint.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.25in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Method parameters cannot be re-declared.&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Loop constructs&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;3 constructs - for, while, do&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;All loops are controlled by a boolean expression.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;In while and for, the test occurs at the top, so if the test fails at the first time, body of the loop might not be executed at all.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;In do, test occurs at the bottom, so the body is executed&amp;nbsp;&lt;u style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;at least once&lt;/u&gt;.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;In for, we can declare multiple variables in the first part of the loop separated by commas, also we can have multiple statements in the third part separated by commas.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;In the first section of for statement, we can have a list of declaration statements&amp;nbsp;&lt;u style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;or&amp;nbsp;&lt;/u&gt;a list of expression statements, but not both. We cannot mix them.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;All expressions in the third section of for statement will always execute, even if the first expression makes the loop condition false. There is no short -circuit here.&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Selection Statements&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;if takes a boolean arguments. Parenthesis required. else part is optional. else if structure provides multiple selective branching.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;switch takes an argument of byte, short, char or int.(assignment compatible to int)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;case value should be a constant expression that can be evaluated at compile time.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #993366; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Compiler checks each case value against the range of the switch expression&#39;s data type&lt;/span&gt;&lt;/b&gt;.&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;The following code won&#39;t compile.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 1in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
byte b;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 1in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
switch (b) {&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 1in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;case 200: // 200 not in range of byte&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 1in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;default:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 1in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;We need to place a break statement in each case block to prevent the execution to fall through other case blocks. But this is not a part of switch statement and not enforced by the compiler.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;We can have multiple case statements execute the same code. Just list them one by one.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;default case can be placed anywhere. It&#39;ll be executed&amp;nbsp;&lt;i style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;only if&lt;/i&gt;&amp;nbsp;none of the case values match.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;switch can be nested. Nested case labels are independent, don&#39;t clash with outer case labels.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Empty switch construct is a valid construct. But any statement within the switch block should come under a case label or the default case label.&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Branching statements&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;break statement can be used with any kind of loop or a switch statement or just a labeled block.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;continue statement can be used with only a loop (any kind of loop).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Loops can have labels. We can use break and continue statements to branch out of multiple levels of nested loops using labels.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Names of the labels follow the same rules as the name of the variables.(Identifiers)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Labels can have the same name, as long as they don&#39;t enclose one another.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;There is no restriction against using the same identifier as a label and as the name of a package, class, interface, method, field, parameter, or local variable.&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

4.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Exception Handling&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;An&amp;nbsp;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;exception&lt;/em&gt;&amp;nbsp;is an event that occurs&amp;nbsp;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #993366; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;during the execution&lt;/span&gt;&lt;/b&gt;&amp;nbsp;of a program that disrupts the normal flow of instructions.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;There are 3 main advantages for exceptions:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.75in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Separates error handling code from &quot;regular&quot; code&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.75in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Propagating errors up the call stack (without tedious programming)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.75in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Grouping error types and error differentiation&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;An exception causes a jump to the end of try block. If the exception occurred in a method called from a try block, the called method is abandoned.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;If there&#39;s a catch block for the occurred exception or a parent class of the exception, the exception is now considered handled.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span class=&quot;CODE&quot; style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;At least one &#39;catch&#39; block or one &#39;finally&#39; block must accompany a &#39;try&#39; statement&lt;span class=&quot;CODE&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;. If all 3 blocks are present, the order is important. (try/catch/finally)&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;CODE&quot; style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;finally and catch can come only with try, they cannot appear on their own.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Regardless of whether or not an exception occurred or whether or not it was handled, if there is a finally block, it&#39;ll be executed always. (Even if there is a return statement in try block).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;color: navy; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;System.exit() and error conditions are the only exceptions where finally block is not executed.&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: navy; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;If there was no exception or the exception was handled, execution continues at the statement after the try/catch/finally blocks.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: navy; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;If the exception is not handled, the process repeats looking for next enclosing try block up the call hierarchy. If this search reaches the top level of the hierarchy (the point at which the thread was created), then the thread is killed and message stack trace is du&lt;/span&gt;mped to System.err.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Use throw new xxxException() to throw an exception. If the thrown object is null, a NullPointerException will be thrown at the handler.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;If an exception handler re-throws an exception (throw in a catch block), same rules apply. Either you need to have a try/catch within the catch or specify the entire method as throwing the exception that&#39;s being re-thrown in the catch block. Catch blocks at the same level will not handle the exceptions thrown in a catch block - it needs its own handlers.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;The method fillInStackTrace() in Throwable class throws a Throwable object. It will be useful when re-throwing an exception or error.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;The Java language requires that methods either&amp;nbsp;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;catch&lt;/em&gt;&amp;nbsp;or&amp;nbsp;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;specify&lt;/em&gt;&amp;nbsp;all checked exceptions that can be thrown within the scope of that method.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;All objects of type java.lang.Exception are checked exceptions. (Except the classes under java.lang.RuntimeException) If any method that contains lines of code that might throw checked exceptions, compiler checks whether you&#39;ve handled the exceptions or you&#39;ve declared the methods as throwing the exceptions. Hence the name checked exceptions.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;If there&#39;s no code in try block that may throw exceptions specified in the catch blocks, compiler will produce an error. (This is not the case for super-class Exception)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #993366; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Java.lang.RuntimeException&lt;/span&gt;&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;color: #993366; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;java.lang.Error&lt;/span&gt;&lt;/b&gt;&amp;nbsp;need not be handled or declared.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; margin-left: 0.5in; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;An overriding method may not throw a checked exception unless the overridden method also throws that exception or a super-class of that exception. In other words, an overriding method may not throw checked exceptions that are not thrown by the overridden method. If we allow the overriding methods in sub-classes to throw more general exceptions than the overridden method in the parent class, then the compiler has no way of checking the exceptions the sub-class might throw. (If we declared a parent class variable and at runtime it refers to sub-class object) This violates the concept of checked exceptions and the sub-classes would be able to by-pass the enforced checks done by the compiler for checked exceptions. This should not be allowed.&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyTextIndent&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Here is the exception hierarchy.&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Object&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;|&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;|&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Throwable&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;|&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;|&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;|&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&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;&lt;/span&gt;|&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;|&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&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;&lt;/span&gt;|&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;|&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;Error&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;|&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;Preformatted&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;|&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
Exception--&amp;gt;ClassNotFoundException, ClassNotSupportedException, IllegalAccessException, InstantiationException, IterruptedException, NoSuchMethodException,&lt;u style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;RuntimeException&lt;/u&gt;, AWTException,&amp;nbsp;&lt;u style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;IOException&lt;/u&gt;&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
RuntimeException--&amp;gt;EmptyStackException, NoSuchElementException, ArithmeticException, ArrayStoreException, ClassCastException,&amp;nbsp;&lt;u style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;IllegalArgumentException&lt;/u&gt;, IllegalMonitorStateException,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
&lt;u style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;IndexOutOfBoundsException&lt;/u&gt;, NegativeArraySizeException, NullPointerException, SecurityException.&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
IllegalArgumentException--&amp;gt;IllegalThreadStateException, NumberFormatException&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
IndexOutOfBoundsException--&amp;gt;ArrayIndexOutOfBoundsException, StringIndexOutOfBoundsException&lt;o:p style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 1.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;
IOException--&amp;gt;EOFException, FileNotFoundException, InterruptedIOException, UTFDataFormatException, MalformedURLException, ProtocolException, SockException, UnknownHostException, UnknownServiceException.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/4510709287041747492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/flow-control-and-exception-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/4510709287041747492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/4510709287041747492'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/05/flow-control-and-exception-in-java.html' title='Flow control and Exception in java'/><author><name>Unknown</name><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-3717622510887074921.post-1346558708402686205</id><published>2012-04-30T20:05:00.000+05:30</published><updated>2012-04-30T20:05:19.893+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="A+ dumbs"/><title type='text'>Hardware Basics</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;1. Which
of the following components found on a motherboard is the most visible?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
Keyboard connector&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
BIOS chip&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
Expansion slots&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
Power connectors&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;Which
of the following BEST describes the difference between the &quot;baby&quot; AT
and ATX motherboards?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
The &quot;baby&quot; AT motherboard allows for the installation of more than
two full- length expansion cards whereas the ATX motherboard allows for only
one or two.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
The processor, memory, and expansion slots are all in line with each other on a
&quot;baby&quot; AT motherboard, whereas the ATX motherboard has the processor
and memory slots at right angles to the expansion cards.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
The ATX motherboard allows for the installation of more than two full-lengthexpansion
cards, whereas the &quot;baby&quot; AT allows for only one or two.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
The &quot;baby&quot; AT motherboard has a 20-pin power connector while the ATX
has a12-pin power connector.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;(Select two options)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;Which
of the following memory module form factors are commonly used for laptops?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
Dual Inline Memory Modules (DIMMs)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
Small Outline DIMMs (SODIMMs)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
Single Inline Memory Modules (SIMMs)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
Rambus Inline Memory Modules (RIMMs)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;4.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;Which
of the following are SCSI types that allow for 16 devices, including
theadapter, to be connected&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;on
a single shared cable?&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
Ultra Wide SCSI&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
Fast SCSI&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
Ultra SCSI&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
Fast Wide SCSI&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;E.
Ultra 2 SCSI&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;(Select two options)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;5.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;What
do you call the part of a CD-ROM drive&#39;s head assembly that moves acrossthe
disk to read it?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
Read/Write Actuator.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
The Mechanical Frame.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
The Head Actuator.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
The Disk Spindle&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;6.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;What
is clock speed of the AGPx8 expansion slot?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
66 MHz&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
133 MHz&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
266 MHz&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
533 MHz&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;7. Which
of the following components on the motherboard usually house the IDEconnectors?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
PCI bus&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
North Bridge.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
ISA bus.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
South Bridge.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;8 When
a technician upgrades firmware on a motherboard he has to ______.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
flash the BIOS&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
replace the CMOS chip&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
replace the BIOS&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
reset the CMOS&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;9 In
which of the following is the output from a power supply rated?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
Voltage.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
Watts.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
Hertz.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
Ohms&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;10. When
connecting the power cable of an AT power supply to the mother board,which two
wires on the power connectors (P8/P9) should be together?&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;A.
The green wires.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;B.
The white wires.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;C.
The black wires.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt; line-height: 115%;&quot;&gt;D.
The brown wires.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/1346558708402686205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/hardware-basics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1346558708402686205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1346558708402686205'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/hardware-basics.html' title='Hardware Basics'/><author><name>Unknown</name><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-3717622510887074921.post-4086938309027956964</id><published>2012-04-27T10:23:00.001+05:30</published><updated>2012-05-23T16:42:53.192+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java points to remember"/><title type='text'>Modifiers 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 dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 align=&quot;center&quot; style=&quot;color: black;&quot;&gt;


&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;Modifiers are Java keywords that provide information to compiler
      about the nature of the code, data and classes.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
2.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;Access modifiers - public, protected, private&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Only applied to class level variables. Method variables are
      visible only inside the method.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to class itself (only to inner classes declared at class level, no such thing as protected or private top level
      class)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to methods and constructors.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;If a class is accessible, it doesn&#39;t mean, the members are also accessible. Members&#39; accessibility determines what is accessible
      and what is not. But if the class is not accessible, the members are not accessible, even though they are declared public.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;If no access modifier is specified, then the 
accessibility is default package visibility. All classes in the same 
package can access
      the feature. It&#39;s called as friendly access. But friendly is not a
 Java keyword. Same directory is same package in Java&#39;s consideration.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;&#39;private&#39; means only the class can access it, not even sub-classes.&amp;nbsp;
      So, it&#39;ll cause access denial to a sub-class&#39;s own variable/method.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;These modifiers dictate, which &lt;u&gt;classes&lt;/u&gt; can access the features. An &lt;u&gt;instance&lt;/u&gt; of a &lt;u&gt;class&lt;/u&gt; can access the private
      features of another &lt;u&gt;instance&lt;/u&gt; of the same &lt;u&gt;class&lt;/u&gt;.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;&#39;protected&#39; means all classes in the same 
package (like default) and sub-classes in any package can access the 
features. But
      a subclass in another package can access the protected members in 
the super-class via only the references of subclass or its subclasses. A
 subclass in the same package
      doesn&#39;t have this restriction. This ensures that classes from 
other packages are accessing only the members that are part of their 
inheritance hierarchy.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Methods cannot be overridden to be more private. Only the direction shown in following figure is permitted
      from parent classes to sub-classes.
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: 0.5in;&quot;&gt;
private
      &lt;span style=&quot;font-family: Wingdings;&quot;&gt;à&lt;/span&gt;
      friendly (default) &lt;span style=&quot;font-family: Wingdings;&quot;&gt;à&lt;/span&gt;
      protected &lt;span style=&quot;font-family: Wingdings;&quot;&gt;à&lt;/span&gt;
      public
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black;&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;
      Parent classes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      Sub-classes
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
3.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;final&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;final features cannot be
      changed.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;The &lt;span class=&quot;fixed1&quot;&gt;final&lt;/span&gt; modifier applies to
      classes, methods, and variables.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;final classes cannot be
      sub-classed.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;You can declare a variable in
      any scope to be final.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;You may, if necessary, defer initialization of a final &lt;i&gt;local&lt;/i&gt; variable. Simply declare the local variable and initialize it later (for
      final instance variables. You must initialize them at the time of declaration or in constructor).&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;final variables cannot be
      changed (result in a compile-time error if&amp;nbsp;
      you do so )&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;final methods cannot be
      overridden.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Method arguments marked final
      are read-only. Compiler error, if trying to assign values to final
      arguments inside the method.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Member variables marked final are not initialized by
 default. They have to be explicitly assigned a value at declaration or 
in an initializer block.
      Static finals must be assigned to a value in a static initializer 
block, instance finals must be assigned a value in an instance 
initializer or in every constructor.
      Otherwise the compiler will complain.
      
      &lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;ins style=&quot;border: none; display: inline-table; height: 60px; margin: 0; padding: 0; position: relative; visibility: visible; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;
&lt;ins id=&quot;aswift_2_anchor&quot; style=&quot;border: none; display: block; height: 60px; margin: 0; padding: 0; position: relative; visibility: visible; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;A &lt;i&gt;blank final&lt;/i&gt; is a final variable whose declaration lacks an initializer.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Final variables that are not assigned a value at the declaration and method arguments that are marked final are called blank
      final variables. They can be assigned a value at most once.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Local variables can be declared final as well.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;If a &lt;code&gt;final&lt;/code&gt;
      variable holds a reference to an object, then the state of the 
object may be changed by operations on the object, but the variable will
 always refer
      to the same object.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;This applies also to arrays,
      because arrays are objects; if a &lt;code&gt;final&lt;/code&gt;
      variable holds a reference to an array, then the components of the
 array may be changed by operations on the array, but the variable will 
always
      refer to the same array&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;&amp;nbsp;A
      blank final instance variable must be definitely assigned&amp;nbsp;
      at the end of every constructor of the class in which it is
      declared; otherwise a compile-time error occurs.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;A class can be declared &lt;code&gt;final&lt;/code&gt; if its definition is complete
      and no subclasses are desired or required.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;A compile-time error occurs if
      the name of a &lt;code&gt;final&lt;/code&gt; class
      appears in the &lt;code&gt;extends&lt;/code&gt;
      clause of another &lt;code&gt;class&lt;/code&gt;
      declaration; this implies that a &lt;code&gt;final&lt;/code&gt;
      class cannot have any subclasses.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;A compile-time error occurs if
      a class is declared both &lt;code&gt;final&lt;/code&gt;
      and &lt;code&gt;abstract&lt;/code&gt;,
      because the implementation of such a class could never be completed.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Because a &lt;code&gt;final&lt;/code&gt; class never has any subclasses,
      the methods of a &lt;code&gt;final&lt;/code&gt;
      class are never overridden&amp;nbsp;
      &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
4.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;abstract&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to classes and
      methods.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;For deferring implementation to
      sub-classes.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Opposite of final, final
      can&#39;t be sub-classed, abstract must be sub-classed.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;A class should be declared
      abstract,&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;
1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;if it has any abstract methods.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;
2.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;if it doesn&#39;t provide implementation to any of the abstract
      methods it inherited&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.75in; text-indent: -0.25in;&quot;&gt;
3.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;if it doesn&#39;t provide implementation to any of the methods in an
      interface that it says implementing.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Just terminate the abstract
      method signature with a &#39;;&#39;, curly braces will give a compiler error.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;A class can be abstract even if
      it doesn&#39;t have any abstract methods.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
5.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;static&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to nested
      classes, methods, variables, free floating code-block (static initializer)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Static variables are
      initialized at class load time. A class has only one copy of these
      variables.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Static methods can access only
      static variables. (They have no this)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Access by class name is a
      recommended way to access static methods/variables.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Static initializer code is run
      at class load time.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Static methods may not be overridden to be non-static. 
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Non-static methods may not be overridden to be static.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Abstract methods may not be static.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Local variables cannot be declared as static.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Actually, static methods are
      not participating in the usual overriding mechanism of invoking the
      methods based on the class of the object at runtime. Static method binding
      is done at compile time, so the method to be invoked is determined by the
      type of reference variable rather than the actual type of the object it
      holds at runtime.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in;&quot;&gt;
Let&#39;s
      say a sub-class has a static method which &#39;overrides&#39; a static method
      in a parent class.&amp;nbsp; If you
      have a reference variable of parent class type and you assign a child
      class object to that variable and invoke the static method, the method
      invoked will be the parent class method, not the child class method.&amp;nbsp;
      The following code explains this.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
public class
      StaticOverridingTest {
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      public static void main(String s[]) {
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      Child c = new Child();
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      c.doStuff(); // This will invoke
      Child.doStuff()
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      Parent p = new Parent();
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      p.doStuff(); // This will invoke
      Parent.doStuff()
      
      
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      p = c;
      
      &lt;/div&gt;
&lt;div class=&quot;MsoBodyTextIndent3&quot; style=&quot;color: black;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 10pt;&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;
      p.doStuff(); // This will invoke
      Parent.doStuff(), rather than Child.doStuff()&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      }
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
}
      
      
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
class Parent {
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      static int x = 100;
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      public static void doStuff() {
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      System.out.println(&quot;In
      Parent..doStuff&quot;);
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      System.out.println(x);
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      }
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
}
      
      
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
class Child extends Parent {
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      static int x = 200;
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      public static void doStuff() {
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      System.out.println(&quot;In
      Child..doStuff&quot;);
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&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;
      System.out.println(x);
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;
      }
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 1in;&quot;&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
6.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;native&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to methods only.
      (static methods also)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Written in a non-Java language, compiled for a single
      machine target type.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Java classes use lot of native
      methods for performance and for accessing hardware Java is not aware of.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Native method signature should
      be terminated by a &#39;;&#39;, curly braces will provide a compiler error.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;native doesn&#39;t affect access
      qualifiers. Native methods can be private.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can pass/return Java objects from native methods.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;&lt;b&gt;System.loadLibrary&lt;/b&gt; is
      used in static initializer code to load native libraries. If the library
      is not loaded when the static method is called, an &lt;b&gt;UnsatisfiedLinkError&lt;/b&gt;
      is thrown.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
7.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;transient&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to class level
      variables only.(Local variables cannot be declared transient)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Transient variables may not be
      final or static.(But compiler allows the declaration, since it doesn&#39;t
      do any harm. Variables marked transient are never serialized. Static
      variables are not serialized anyway.)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Not stored as part of
      object&#39;s persistent state, i.e. not written out during serialization.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be used for security.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
8.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;synchronized&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to methods or parts of methods only.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Used to control access to
      critical code in multi-threaded programs.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;
9.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;volatile&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to variables
      only.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Can be applied to static variables.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Cannot be applied to final variables.
      
      &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Declaring a variable volatile
      indicates that it might be modified asynchronously, so that all threads
      will get the correct value of the variable.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;/span&gt;&lt;/span&gt;Used in multi-processor
      environments.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: black; margin-left: 0.5in; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; border: medium none; color: black;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;
          &lt;td style=&quot;border: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Modifier
            
            &lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-left: none; border: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Class
            
            &lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-left: none; border: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Inner
            classes (Except local and anonymous classes)
            
            &lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-left: none; border: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Variable
            
            &lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-left: none; border: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .75in;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Method
            
            &lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-left: none; border: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 62.65pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Constructor
            
            &lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-left: none; border: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Free
            floating Code block
            
            &lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
        &lt;/tr&gt;
&lt;tr&gt;
          &lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
public&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;Preformatted&quot; style=&quot;tab-stops: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
        &lt;/tr&gt;
&lt;tr&gt;
          &lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
protected&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;Preformatted&quot; style=&quot;tab-stops: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
        &lt;/tr&gt;
&lt;tr&gt;
          &lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
(friendly)&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
No access modifier&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y (OK for all)&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
        &lt;/tr&gt;
&lt;tr&gt;
          &lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
private&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
        &lt;/tr&gt;
&lt;tr&gt;
          &lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
final&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y (Except anonymous
            classes)&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
        &lt;/tr&gt;
&lt;tr&gt;
          &lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
abstract&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;Y
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y (Except anonymous
            classes)&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% lime;&quot;&gt;N
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
static&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% lime;&quot;&gt;Y
            (static initializer)
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
native&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;N
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% lime;&quot;&gt;N
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
          &lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
transient&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;N
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;&quot;&gt;N&lt;b&gt;
            
            &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
          &lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
synchronized&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;N
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% lime;&quot;&gt;N
            
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% lime;&quot;&gt;Y
            (part of method, also need to specify an object on which a lock
            should be obtained)
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-top: none; border: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.9pt;&quot; valign=&quot;top&quot; width=&quot;85&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
volatile&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: .5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 81.0pt;&quot; valign=&quot;top&quot; width=&quot;108&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: none repeat scroll 0% 0% yellow;&quot;&gt;N
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 49.5pt;&quot; valign=&quot;top&quot; width=&quot;66&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Y&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 53.65pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;&quot;&gt;N
            &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
          &lt;td colspan=&quot;2&quot; style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N&lt;/div&gt;
&lt;/td&gt;
          &lt;td style=&quot;border-bottom: solid windowtext .5pt; border-left: none; border-right: solid windowtext .5pt; border-top: none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 99.0pt;&quot; valign=&quot;top&quot; width=&quot;132&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
N &lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Check the below links for &lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;JAVA Fundamentals&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/operators-and-assignments-in-java.html&quot; target=&quot;_blank&quot;&gt;Operators and assignments in java&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Some basic java programs:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 19px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Reverse a given number&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Factorial of an given number&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Generate random number between 1 to 100&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Read float and print o/p as shown&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Minimum of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/4086938309027956964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/modifiers-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/4086938309027956964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/4086938309027956964'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/modifiers-in-java.html' title='Modifiers in java'/><author><name>Unknown</name><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-3717622510887074921.post-4294369201077769758</id><published>2012-04-26T12:46:00.003+05:30</published><updated>2012-05-23T16:44:07.783+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Engineering fun"/><title type='text'>Reactions before the final engineering viva</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;color: #cc0000; text-align: center;&quot;&gt;

&lt;span style=&quot;font-size: x-large;&quot;&gt;Final day of Engineering VIVA

&lt;/span&gt;&lt;/h2&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge0j66dvA0g6fPeHh_gSOeGHTojZOIHjUHchtL0yWb_L4YNMstr_D6ofKrTlFuCYsHIXIDy2Rc44GMoHA0js27Scz_OlAKYjtzAoVFdZRMfOPTG2BhrH00AIN0QQa4PIKt-6Mi69P1IAHB/s1600/DSC00025.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge0j66dvA0g6fPeHh_gSOeGHTojZOIHjUHchtL0yWb_L4YNMstr_D6ofKrTlFuCYsHIXIDy2Rc44GMoHA0js27Scz_OlAKYjtzAoVFdZRMfOPTG2BhrH00AIN0QQa4PIKt-6Mi69P1IAHB/s400/DSC00025.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;h2&gt;


&lt;span style=&quot;font-size: large;&quot;&gt;Sayali desai before her Final viva&lt;/span&gt;&lt;/h2&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdiDZZwHp6ZJjvfqaflYxBPZ60hEJuyP945o9itHtLv1nipfshUAJ9iy9oveufA0dfwyWKF0EBt3SWWsj00Xt932fQB3aIrNie5A7L6f0iB-3DsOSRkKyXeAAmsx8SjbhrZjZEDsV4wY4-/s1600/DSC00024.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdiDZZwHp6ZJjvfqaflYxBPZ60hEJuyP945o9itHtLv1nipfshUAJ9iy9oveufA0dfwyWKF0EBt3SWWsj00Xt932fQB3aIrNie5A7L6f0iB-3DsOSRkKyXeAAmsx8SjbhrZjZEDsV4wY4-/s400/DSC00024.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Engrossed in studies&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaovTaBIdT78-EHntgiPBo0N3WRlpyo0ohdbRF9_JAbjKKu_GpiclpEHxY57kgNTFduVVKk2uplw_H6SMh9JZ2ZkUS-WyfYk5myfJe-n5jaoD3bs4mzGdZPmcfbMAHUYtxVUO5vDoMgqkj/s1600/DSC00019.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaovTaBIdT78-EHntgiPBo0N3WRlpyo0ohdbRF9_JAbjKKu_GpiclpEHxY57kgNTFduVVKk2uplw_H6SMh9JZ2ZkUS-WyfYk5myfJe-n5jaoD3bs4mzGdZPmcfbMAHUYtxVUO5vDoMgqkj/s400/DSC00019.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;HCI--We hate this subject&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqi0EsSnrdxIS-LIU0rvedJud2Xm34j0kAdte71u2wpwkSRoeY5Ca1_pvsJUpexYVnmEM1pduvqhLBvTv5x8uUmDariEdjPudv5Y2vRTt3RJTic969q3OJh3Nbv0pjVDrvieOg1O3qHHPd/s1600/DSC00020.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqi0EsSnrdxIS-LIU0rvedJud2Xm34j0kAdte71u2wpwkSRoeY5Ca1_pvsJUpexYVnmEM1pduvqhLBvTv5x8uUmDariEdjPudv5Y2vRTt3RJTic969q3OJh3Nbv0pjVDrvieOg1O3qHHPd/s400/DSC00020.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguzYHTM70NSsrU67K33Gxnfj3PkgvhAO8Q8JkS_YZM-im3RkxWDf5fGvc-kGnAmRs8LwbQTXMQARJU3Q6_SeUIyABujtcIaRqaUnCs7Vnj3jqCbbmRud-S20R6Yscqgd7sK0l35TnNQxEH/s1600/DSC00015.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguzYHTM70NSsrU67K33Gxnfj3PkgvhAO8Q8JkS_YZM-im3RkxWDf5fGvc-kGnAmRs8LwbQTXMQARJU3Q6_SeUIyABujtcIaRqaUnCs7Vnj3jqCbbmRud-S20R6Yscqgd7sK0l35TnNQxEH/s400/DSC00015.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdja1E3YjrhEVfxrgLTQej3gxFZxorQbZVD1M3f3Sqx4lA60yyGynXKZs3Ch5FoYD2iBlk7gt2VezpMXFx3qHnrLAc8A5-LbD6lYsdK2ENs0yj93HxB6BSm75ulH9K6uY-U0JPNY9YIm_S/s1600/DSC00016.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdja1E3YjrhEVfxrgLTQej3gxFZxorQbZVD1M3f3Sqx4lA60yyGynXKZs3Ch5FoYD2iBlk7gt2VezpMXFx3qHnrLAc8A5-LbD6lYsdK2ENs0yj93HxB6BSm75ulH9K6uY-U0JPNY9YIm_S/s400/DSC00016.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvCPOTBAUnY-LgyunlB_2yQ3ws20RcPwWgr_2hYxXmS2FXqGFYu5609C614WhvlBz1q3ZkMc1hHMAH24ApWJavIJV40R3Pl5ojqhkOZ5rDQDZIPSPLPdkDEn4IsHfCA4VuX8-i1fgLuTIm/s1600/DSC00022.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;327&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvCPOTBAUnY-LgyunlB_2yQ3ws20RcPwWgr_2hYxXmS2FXqGFYu5609C614WhvlBz1q3ZkMc1hHMAH24ApWJavIJV40R3Pl5ojqhkOZ5rDQDZIPSPLPdkDEn4IsHfCA4VuX8-i1fgLuTIm/s400/DSC00022.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh059gT6c8FgZJagwdGiTV9lhg84bqTjPsDpHoF7tnLVGVB20wlzAtN2i1IyB1xuGatMnII7DY4acD9TAhI0lzNWhqp-YE0NuzNoYQziDFD8BOet-ItFwggmlImraQun52MjQ1bh1DuGB6e/s1600/DSC00028.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh059gT6c8FgZJagwdGiTV9lhg84bqTjPsDpHoF7tnLVGVB20wlzAtN2i1IyB1xuGatMnII7DY4acD9TAhI0lzNWhqp-YE0NuzNoYQziDFD8BOet-ItFwggmlImraQun52MjQ1bh1DuGB6e/s400/DSC00028.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDsqwY8gzp8SPALNm7eJ9yhcBwG3LA9AG4PZTCIDz7attMpkWtMwhe0pRk9KtZZiZfNH6_WCPuhJjsNviB67wLfRf993aBVkE-YIqcQcvGPalrMXgR_P1N8oJDs1i8uOqJdC7zEJ7_FyaQ/s1600/DSC00038.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDsqwY8gzp8SPALNm7eJ9yhcBwG3LA9AG4PZTCIDz7attMpkWtMwhe0pRk9KtZZiZfNH6_WCPuhJjsNviB67wLfRf993aBVkE-YIqcQcvGPalrMXgR_P1N8oJDs1i8uOqJdC7zEJ7_FyaQ/s640/DSC00038.JPG&quot; width=&quot;361&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvbgR-b7afT64F-ZLerejFhnWAc61pGIWinsMVtBfTLmh4jGXeKPreueEAIz9SXfcGgSKTGigRscL9uk3MaXDJOb2FljuF4u3yrT6pVT2qW-IMFtqXR0Z7emfTF-1dW0Wpiw8ChCOM83hk/s1600/DSC00023.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvbgR-b7afT64F-ZLerejFhnWAc61pGIWinsMVtBfTLmh4jGXeKPreueEAIz9SXfcGgSKTGigRscL9uk3MaXDJOb2FljuF4u3yrT6pVT2qW-IMFtqXR0Z7emfTF-1dW0Wpiw8ChCOM83hk/s400/DSC00023.JPG&quot; width=&quot;287&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIw4f0d2R5R261vR_mQCFAsUaLZbkOjfl5cdq0YcsKGiiT1B9H9SsY2dzEMDibCXx5Ysf4hvpDfkcOD5a7MDk-WuKA7KhnMJS0Sa8L7aKvdI4GND79YbEm9ZT5NFBdDdGJGdpeLQ8CuZKB/s1600/DSC00029.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIw4f0d2R5R261vR_mQCFAsUaLZbkOjfl5cdq0YcsKGiiT1B9H9SsY2dzEMDibCXx5Ysf4hvpDfkcOD5a7MDk-WuKA7KhnMJS0Sa8L7aKvdI4GND79YbEm9ZT5NFBdDdGJGdpeLQ8CuZKB/s640/DSC00029.JPG&quot; width=&quot;360&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1bDiowdo04BTK5YmOVoUUfr3WD2UPx9PpM7Hj_JKfuq8fBcErminrWEDVukHrl0i0n18odf9tpv6SFktMSD1N04nFp0zh1lhO3u9SDQX4yujoSHWA70XnGqzZbFbl7rqEvuRA-IJRirtU/s1600/DSC00030.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1bDiowdo04BTK5YmOVoUUfr3WD2UPx9PpM7Hj_JKfuq8fBcErminrWEDVukHrl0i0n18odf9tpv6SFktMSD1N04nFp0zh1lhO3u9SDQX4yujoSHWA70XnGqzZbFbl7rqEvuRA-IJRirtU/s400/DSC00030.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic7gSyR98bT1gGLdJRMC0ByA4ymHVsx6VlPZ7jG7vFOg_9wRP24HWhMSL9ttwlx4I8frsllfUJHe7S-C6MCNcSjuuvUm0bTjJkOxRrUFxcAXroFnDAsLSoatDgK3wiGFnTE8FbHuTsnt2L/s1600/DSC00037.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic7gSyR98bT1gGLdJRMC0ByA4ymHVsx6VlPZ7jG7vFOg_9wRP24HWhMSL9ttwlx4I8frsllfUJHe7S-C6MCNcSjuuvUm0bTjJkOxRrUFxcAXroFnDAsLSoatDgK3wiGFnTE8FbHuTsnt2L/s640/DSC00037.JPG&quot; width=&quot;360&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-HOoe4Cza26d74cPQ3ieAqnvXbpHa2oG1pM-G1DtdQ5JC_t_rBCm_QXQvgYuUUbm3O4WtKHnhWvTL_dZYlNoQ1Vj6cknI_5CGBh7SMzpI4mdEizY9gibIotDp0-HjFBG7eEOcXw9j1YSA/s1600/DSC00031.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-HOoe4Cza26d74cPQ3ieAqnvXbpHa2oG1pM-G1DtdQ5JC_t_rBCm_QXQvgYuUUbm3O4WtKHnhWvTL_dZYlNoQ1Vj6cknI_5CGBh7SMzpI4mdEizY9gibIotDp0-HjFBG7eEOcXw9j1YSA/s400/DSC00031.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3H2YwqtNkgj2_cZbFDqrll0Zsepe1l3lREWByzxRnygyeWR-UChtLQI9XL03m_vknY7ylmn526OQ52mmWRXGIeLKB4r5GZIGWwaCGTtMulul0QatYdP2YbNPafilmTQ2X27s06pG3WZrc/s1600/DSC00014.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3H2YwqtNkgj2_cZbFDqrll0Zsepe1l3lREWByzxRnygyeWR-UChtLQI9XL03m_vknY7ylmn526OQ52mmWRXGIeLKB4r5GZIGWwaCGTtMulul0QatYdP2YbNPafilmTQ2X27s06pG3WZrc/s640/DSC00014.JPG&quot; width=&quot;360&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN47-Dtoh9T5R7MHkKuW508MoxFqzm3JeN2jsDs9sR0Y_jCnDmqCkGadfUPvl0roc8yesfeCsCkktKnDX4w_lLZxUfaKOUFfgq2yqBvvxFkZVQY_ftCdyinLDLycbXFkmTEwLbEcbiHxSj/s1600/DSC00013.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN47-Dtoh9T5R7MHkKuW508MoxFqzm3JeN2jsDs9sR0Y_jCnDmqCkGadfUPvl0roc8yesfeCsCkktKnDX4w_lLZxUfaKOUFfgq2yqBvvxFkZVQY_ftCdyinLDLycbXFkmTEwLbEcbiHxSj/s400/DSC00013.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF1ISZ3FtY1wDsdZTrjEKBOuQDAxlnZAdj9eCh8UD_xV55nvFjWEmCITXg-gXzxlUwvEMtyFqF4SZxOcR0xNjAufkgwNccHDg-xLUioTh5VVqr6uiBzaRELYiY_FRqLua38x62BTxJoROR/s1600/DSC00005.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF1ISZ3FtY1wDsdZTrjEKBOuQDAxlnZAdj9eCh8UD_xV55nvFjWEmCITXg-gXzxlUwvEMtyFqF4SZxOcR0xNjAufkgwNccHDg-xLUioTh5VVqr6uiBzaRELYiY_FRqLua38x62BTxJoROR/s400/DSC00005.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp_LL0pRcDUlC7gDZ2Z6ExTLvy-2OBDVJZl9aJPvG_-IGjmBTcRXkF9g-lTNLrbYzTigcxp0G5-hc2XDkrAg-hpr0ZUmu460HGB5dfPEa4xqXc20BGH6VG4QNBUhKaIKfzZu2_ISPgw2bZ/s1600/DSC00004.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp_LL0pRcDUlC7gDZ2Z6ExTLvy-2OBDVJZl9aJPvG_-IGjmBTcRXkF9g-lTNLrbYzTigcxp0G5-hc2XDkrAg-hpr0ZUmu460HGB5dfPEa4xqXc20BGH6VG4QNBUhKaIKfzZu2_ISPgw2bZ/s640/DSC00004.JPG&quot; width=&quot;360&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtvd3G-PcB15EHgthz_gY0_1joLEe4htladwz2kRi74i4jRrd8gD9ZOChxErNla-PjvFGDBCu1kbX6oIB3WXx5RuL3oj2envreAGc-9VV_8sW3a_noEA2rfCqgfGliQdPP4YJouBzuhOcG/s1600/DSC00001.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtvd3G-PcB15EHgthz_gY0_1joLEe4htladwz2kRi74i4jRrd8gD9ZOChxErNla-PjvFGDBCu1kbX6oIB3WXx5RuL3oj2envreAGc-9VV_8sW3a_noEA2rfCqgfGliQdPP4YJouBzuhOcG/s400/DSC00001.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUj5BMSl1XOTBdcPPn3qzFLOrkMNDxNBjWn2AganYzfkTPV63MBMvmd_Zm1YYfNke0diMXkO1E9rn-c8DVxczjV1FXEDFi1lVvZ8AuK8dOFeq7MeqLitUEhvpthkwjhBls7T0eOcjOEKGz/s1600/DSC00007.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUj5BMSl1XOTBdcPPn3qzFLOrkMNDxNBjWn2AganYzfkTPV63MBMvmd_Zm1YYfNke0diMXkO1E9rn-c8DVxczjV1FXEDFi1lVvZ8AuK8dOFeq7MeqLitUEhvpthkwjhBls7T0eOcjOEKGz/s400/DSC00007.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtvd3G-PcB15EHgthz_gY0_1joLEe4htladwz2kRi74i4jRrd8gD9ZOChxErNla-PjvFGDBCu1kbX6oIB3WXx5RuL3oj2envreAGc-9VV_8sW3a_noEA2rfCqgfGliQdPP4YJouBzuhOcG/s1600/DSC00001.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/4294369201077769758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/reactions-before-final-engineering-viva.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/4294369201077769758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/4294369201077769758'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/reactions-before-final-engineering-viva.html' title='Reactions before the final engineering viva'/><author><name>Unknown</name><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge0j66dvA0g6fPeHh_gSOeGHTojZOIHjUHchtL0yWb_L4YNMstr_D6ofKrTlFuCYsHIXIDy2Rc44GMoHA0js27Scz_OlAKYjtzAoVFdZRMfOPTG2BhrH00AIN0QQa4PIKt-6Mi69P1IAHB/s72-c/DSC00025.JPG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3717622510887074921.post-1930021686502092253</id><published>2012-04-26T11:06:00.006+05:30</published><updated>2012-05-23T16:43:53.469+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java points to remember"/><title type='text'>Operators and assignments in 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;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
The Java programming language has included five simple
arithmetic operators like + (addition), - (subtraction), * (multiplication), /
(division) &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;Check JAVA Fundamentals before this.&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: normal; text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;&quot;&gt;1. Unary operators&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;1.1
Increment and Decrement operators ++ --&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;We
have postfix and prefix notation. In post-fix notation value of the
variable/expression is modified after the value is taken for the execution of
statement. In prefix notation, value of the variable/expression is modified
before the value is taken for the execution of statement.&lt;br /&gt;
&lt;br /&gt;
x = 5; y = 0; y = x++; Result will be x = 6, y = 5&lt;br /&gt;
&lt;br /&gt;
x = 5; y = 0; y = ++x; Result will be x = 6, y = 6&lt;br /&gt;
&lt;br /&gt;
Implicit narrowing conversion is done, when applied to byte, short or char.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;1.2
Unary minus and unary plus + -&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;+
has no effect than to stress positivity.&lt;br /&gt;
&lt;br /&gt;
- negates an expression&#39;s value. (2&#39;s complement for integral expressions)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;1.3
Negation !&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;Inverts
the value of a boolean expression.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;1.4
Complement ~&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;Inverts
the bit pattern of an integral expression. (1&#39;s complement - 0s to 1s and 1s to
0s)&lt;br /&gt;
&lt;br /&gt;
Cannot be applied to non-integral types.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;1.5
Cast ()&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;Persuades
compiler to allow certain assignments. Extensive checking is done at compile
and runtime to ensure type-safety.&lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: left;&quot;&gt;

&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;
&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;Check JAVA Fundamentals before this.&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;2.
Arithmetic operators - *, /, %, +, -&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
Can be applied to all numeric types.&lt;br /&gt;
&lt;br /&gt;
· Can be applied to only the numeric types, except &#39;+&#39; - it can be applied to
Strings as well.&lt;br /&gt;
&lt;br /&gt;
· All arithmetic operations are done at least with &#39;int&#39;. (If types are smaller,
promotion happens. Result will be of a type at least as wide as the wide type
of operands)&lt;br /&gt;
&lt;br /&gt;
· Accuracy is lost silently when arithmetic overflow/error occurs. Result is a
nonsense value.&lt;br /&gt;
&lt;br /&gt;
· Integer division by zero throws an exception.&lt;br /&gt;
&lt;br /&gt;
· % - reduce the magnitude of LHS by the magnitude of RHS. (continuous
subtraction)&lt;br /&gt;
&lt;br /&gt;
· % - sign of the result entirely determined by sign of LHS&lt;br /&gt;
&lt;br /&gt;
· 5 % 0 throws an ArithmeticException.&lt;br /&gt;
&lt;br /&gt;
· Floating point calculations can produce NaN (square root of a negative no) or
Infinity ( division by zero). Float and Double wrapper classes have named
constants for NaN and infinities.&lt;br /&gt;
&lt;br /&gt;
· NaN&#39;s are non-ordinal for comparisons. x == Float.NaN won&#39;t work. Use
Float.IsNaN(x) But equals method on wrapper objects(Double or Float) with NaN
values compares Nan&#39;s correctly.&lt;br /&gt;
&lt;br /&gt;
· Infinities are ordinal. X == Double.POSITIVE_INFINITY will give expected
result.&lt;br /&gt;
&lt;br /&gt;
· + also performs String concatenation (when any operand in an expression is a
String). The language itself overloads this operator. toString method of
non-String object operands are called to perform concatenation. In case of
primitives, a wrapper object is created with the primitive value and toString
method of that object is called. (&quot;Vel&quot; + 3 will work.)&lt;br /&gt;
&lt;br /&gt;
· Be aware of associativity when multiple operands are involved.&lt;br /&gt;
&lt;br /&gt;
System.out.println( 1 + 2 + &quot;3&quot; ); // Prints 33&lt;br /&gt;
&lt;br /&gt;
System.out.println( &quot;1&quot; + 2 + 3 ); // Prints 123&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;Check JAVA Fundamentals before this.&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;3. Shift
operators - &amp;lt;&amp;lt;, &amp;gt;&amp;gt;, &amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
&amp;lt;&amp;lt; performs a signed left shift. 0 bits are brought in from the right.
Sign bit (MSB) is preserved. Value becomes old value * 2 ^ x where x is no of
bits shifted.&lt;br /&gt;
&lt;br /&gt;
· &amp;gt;&amp;gt; performs a signed right shift. Sign bit is brought in from the left.
(0 if positive, 1 if negative. Value becomes old value / 2 ^ x where x is no of
bits shifted. Also called arithmetic right shift.&lt;br /&gt;
&lt;br /&gt;
· &amp;gt;&amp;gt;&amp;gt; performs an unsigned logical right shift. 0 bits are brought in
from the left. This operator exists since Java doesn&#39;t provide an unsigned data
type (except char). &amp;gt;&amp;gt;&amp;gt; changes the sign of a negative number to be
positive. So don&#39;t use it with negative numbers, if you want to preserve the
sign. Also don&#39;t use it with types smaller than int. (Since types smaller than
int are promoted to an int before any shift operation and the result is cast
down again, so the end result is unpredictable.)&lt;br /&gt;
&lt;br /&gt;
· Shift operators can be applied to only integral types.&lt;br /&gt;
&lt;br /&gt;
· -1 &amp;gt;&amp;gt; 1 is -1, not 0. This differs from simple division by 2. We can
think of it as shift operation rounding down.&lt;br /&gt;
&lt;br /&gt;
· 1 &amp;lt;&amp;lt; 31 will become the minimum value that an int can represent. (Value
becomes negative, after this operation, if you do a signed right shift sign bit
is brought in from the left and the value remains negative.)&lt;br /&gt;
&lt;br /&gt;
· Negative numbers are represented in two&#39;s complement notation. (Take one&#39;s
complement and add 1 to get two&#39;s complement)&lt;br /&gt;
&lt;br /&gt;
· Shift operators never shift more than the number of bits the type of result
can have. ( i.e. int 32, long 64) RHS operand is reduced to RHS % x where x is
no of bits in type of result. &lt;br /&gt;
&lt;br /&gt;
int x;&lt;br /&gt;
&lt;br /&gt;
x = x &amp;gt;&amp;gt; 33; // Here actually what happens is x &amp;gt;&amp;gt; 1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;Check JAVA Fundamentals before this.&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;4.
Comparison operators - all return boolean type.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;4.1
Ordinal comparisons - &amp;lt;, &amp;lt;=, &amp;gt; , &amp;gt;=&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
Only operate on numeric types. Test the relative value of the numeric operands.&lt;br /&gt;
&lt;br /&gt;
· Arithmetic promotions apply. char can be compared to float.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;4.2
Object type comparison - instanceof&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
Tests the class of an object at runtime. Checking is done at compile and
runtime same as the cast operator.&lt;br /&gt;
&lt;br /&gt;
· Returns true if the object denoted by LHS reference can be cast to RHS type.&lt;br /&gt;
&lt;br /&gt;
· LHS should be an object reference expression, variable or an array reference.&lt;br /&gt;
&lt;br /&gt;
· RHS should be a class (abstract classes are fine), an interface or an array
type, castable to LHS object reference. Compiler error if LHS &amp;amp; RHS are
unrelated.&lt;br /&gt;
&lt;br /&gt;
· Can&#39;t use java.lang.Class or its String name as RHS.&lt;br /&gt;
&lt;br /&gt;
· Returns true if LHS is a class or subclass of RHS class&lt;br /&gt;
&lt;br /&gt;
· Returns true if LHS implements RHS interface.&lt;br /&gt;
&lt;br /&gt;
· Returns true if LHS is an array reference and of type RHS.&lt;br /&gt;
&lt;br /&gt;
· x instanceof Component[] - legal.&lt;br /&gt;
&lt;br /&gt;
· x instanceof [] - illegal. Can&#39;t test for &#39;any array of any type&#39;&lt;br /&gt;
&lt;br /&gt;
· Returns false if LHS is null, no exceptions are thrown.&lt;br /&gt;
&lt;br /&gt;
· If x instanceof Y is not allowed by compiler, then Y y = (Y) x is not a valid
cast expression. If x instanceof Y is allowed and returns false, the above cast
is valid but throws a ClassCastException at runtime. If x instanceof Y returns
true, the above cast is valid and runs fine.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;4.3
Equality comparisons - ==, !=&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
For primitives it&#39;s a straightforward value comparison. (promotions apply)&lt;br /&gt;
&lt;br /&gt;
· For object references, this doesn&#39;t make much sense. Use equals method for
meaningful comparisons. (Make sure that the class implements equals in a
meaningful way, like for X.equals(Y) to be true, Y instance of X must be true
as well)&lt;br /&gt;
&lt;br /&gt;
· For String literals, == will return true, this is because of compiler
optimization.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 37.5pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;Check JAVA Fundamentals before this.&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;5.
Bit-wise operators - &amp;amp;, ^, |&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
Operate on numeric and boolean operands.&lt;br /&gt;
&lt;br /&gt;
· &amp;amp; - AND operator, both bits must be 1 to produce 1.&lt;br /&gt;
&lt;br /&gt;
· | - OR operator, any one bit can be 1 to produce 1.&lt;br /&gt;
&lt;br /&gt;
· ^ - XOR operator, any one bit can be 1, but not both, to produce 1.&lt;br /&gt;
&lt;br /&gt;
· In case of booleans true is 1, false is 0.&lt;br /&gt;
&lt;br /&gt;
· Can&#39;t cast any other type to boolean.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;Check JAVA Fundamentals before this.&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;6.
Short-circuit logical operators - &amp;amp;&amp;amp;, ||&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
Operate only on boolean types.&lt;br /&gt;
&lt;br /&gt;
· RHS might not be evaluated (hence the name short-circuit), if the result can
be determined only by looking at LHS.&lt;br /&gt;
&lt;br /&gt;
· false &amp;amp;&amp;amp; X is always false.&lt;br /&gt;
&lt;br /&gt;
· true || X is always true.&lt;br /&gt;
&lt;br /&gt;
· RHS is evaluated only if the result is not certain from the LHS.&lt;br /&gt;
&lt;br /&gt;
· That&#39;s why there&#39;s no logical XOR operator. Both bits need to be known to
calculate the result.&lt;br /&gt;
&lt;br /&gt;
· Short-circuiting doesn&#39;t change the result of the operation. But side effects
might be changed. (i.e. some statements in RHS might not be executed, if
short-circuit happens. Be careful)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;Check JAVA Fundamentals before this.&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;7. Ternary
operator&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
Format a = x ? b : c ;&lt;br /&gt;
&lt;br /&gt;
· x should be a boolean expression.&lt;br /&gt;
&lt;br /&gt;
· Based on x, either b or c is evaluated. Both are never evaluated.&lt;br /&gt;
&lt;br /&gt;
· b will be assigned to a if x is true, else c is assigned to a.&lt;br /&gt;
&lt;br /&gt;
· b and c should be assignment compatible to a.&lt;br /&gt;
&lt;br /&gt;
· b and c are made identical during the operation according to promotions.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;Check JAVA Fundamentals before this.&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;8.
Assignment operators.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
Simple assignment =.&lt;br /&gt;
&lt;br /&gt;
· op= calculate and assign operators extended assignment operators.&lt;br /&gt;
&lt;br /&gt;
· *=, /=, %=, +=, -=&lt;br /&gt;
&lt;br /&gt;
· x += y means x = x + y. But x is evaluated only once. Be aware.&lt;br /&gt;
&lt;br /&gt;
· Assignment of reference variables copies the reference value, not the object
body.&lt;br /&gt;
&lt;br /&gt;
· Assignment has value, value of LHS after assignment. So a = b = c = 0 is
legal. c = 0 is executed first, and the value of the assignment (0) assigned to
b, then the value of that assignment (again 0) is assigned to a.&lt;br /&gt;
&lt;br /&gt;
· Extended assignment operators do an implicit cast. (Useful when applied to
byte, short or char)&lt;br /&gt;
&lt;br /&gt;
byte b = 10;&lt;br /&gt;
&lt;br /&gt;
b = b + 10; // Won&#39;t compile, explicit cast required since the expression
evaluates to an int&lt;br /&gt;
&lt;br /&gt;
b += 10; // OK, += does an implicit cast from int to byte&lt;/span&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; text-align: left;&quot;&gt;

&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; line-height: 150%;&quot;&gt;9. General&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%; margin-left: 18.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; line-height: 150%;&quot;&gt;·
In Java, No overflow or underflow of integers happens. i.e. The values wrap
around. Adding 1 to the maximum int value results in the minimum value.&lt;br /&gt;
&lt;br /&gt;
· Always keep in mind that operands are evaluated from left to right, and the
operations are executed in the order of precedence and associativity. &lt;br /&gt;
&lt;br /&gt;
· Unary Postfix operators and all binary operators (except assignment
operators) have left to right assoiciativity.&lt;br /&gt;
&lt;br /&gt;
· All unary operators (except postfix operators), assignment operators, ternary
operator, object creation and cast operators have right to left assoiciativity.&lt;br /&gt;
&lt;br /&gt;
· Inspect the following code.&lt;br /&gt;
&lt;br /&gt;
public class Precedence {&lt;br /&gt;
&lt;br /&gt;
final public static void main(String args[]) {&lt;br /&gt;
&lt;br /&gt;
int i = 0;&lt;br /&gt;
&lt;br /&gt;
i = i++;&lt;br /&gt;
&lt;br /&gt;
i = i++;&lt;br /&gt;
&lt;br /&gt;
i = i++;&lt;br /&gt;
&lt;br /&gt;
System.out.println(i); // prints 0, since = operator has the lowest precedence.&lt;br /&gt;
&lt;br /&gt;
int array[] = new int[5];&lt;br /&gt;
&lt;br /&gt;
int index = 0;&lt;br /&gt;
&lt;br /&gt;
array[index] = index = 3; // 1st element gets assigned to 3, not the 4th
element&lt;br /&gt;
&lt;br /&gt;
for (int c = 0; c &amp;lt; array.length; c++)&lt;br /&gt;
&lt;br /&gt;
System.out.println(array[c]); &lt;br /&gt;
&lt;br /&gt;
System.out.println(&quot;index is &quot; + index); // prints 3 &lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; margin-left: 4.65pt; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-layout-alt: fixed; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;height: 9.75pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; height: 9.75pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-line-height-alt: 9.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Type of Operators &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; height: 9.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-line-height-alt: 9.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Operators &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; height: 9.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-line-height-alt: 9.75pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Associativity &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 1;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Postfix
  operators &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;[] .
  (parameters) ++ -- &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: .5in;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 2;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Prefix Unary
  operators &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;++&amp;nbsp; -- + - ~ ! &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Right to
  Left &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 3;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Object
  creation and cast &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;new (type) &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Right to
  Left &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 4;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Multiplication/Division/Modulus
  &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;* / % &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 5;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Addition/Subtraction
  &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;+ - &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 6;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Shift &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;gt;&amp;gt;
  &amp;gt;&amp;gt;&amp;gt; &amp;lt;&amp;lt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 7;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Relational &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;lt; &amp;lt;=
  &amp;gt; &amp;gt;= instanceof &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 8;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Equality &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;== != &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 9;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Bit-wise/Boolean
  AND &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;amp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 10;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Bit-wise/Boolean
  XOR &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;^ &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 11;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Bit-wise/Boolean
  OR &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;| &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 12;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Logical AND
  (Short-circuit or Conditional) &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 13;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Logical OR
  (Short-circuit or Conditional) &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;|| &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Left to
  Right &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 14;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Ternary &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;? : &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Right to
  Left &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr style=&quot;height: 15.75pt; mso-yfti-irow: 15; mso-yfti-lastrow: yes;&quot;&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 158.25pt;&quot; valign=&quot;top&quot; width=&quot;211&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Assignment &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;&quot; valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;= += -= *=
  /= %= &amp;lt;&amp;lt;= &amp;gt;&amp;gt;= &amp;gt;&amp;gt;&amp;gt;= &amp;amp;= ^= |= &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.75pt;&quot; valign=&quot;top&quot; width=&quot;141&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Right to
  Left&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Click below link for Related post:&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;

&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-fundamentals.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;JAVA Fundamentals&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Some basic java programs:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 19px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Reverse a given number&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Factorial of an given number&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Generate random number between 1 to 100&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Read float and print o/p as shown&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Minimum of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;

&lt;/h2&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/1930021686502092253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/operators-and-assignments-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1930021686502092253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1930021686502092253'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/operators-and-assignments-in-java.html' title='Operators and assignments in java'/><author><name>Unknown</name><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-3717622510887074921.post-2777028942263604703</id><published>2012-04-22T12:13:00.001+05:30</published><updated>2012-05-23T16:45:04.329+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java points to remember"/><title type='text'>Java Fundamentals</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;h2&gt;

&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: #6aa84f; font-size: x-large;&quot;&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;Java fundamentals&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;The Java programming language has includes five simple arithmetic operators like are + (addition), - (subtraction), * (multiplication), / (division), and % (modulo). The following table summarizes them:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;1. Source file&#39;s elements (in order)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Package declaration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Import statements&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Class definitions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;2. Importing packages doesn&#39;t recursively import sub-packages.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;3. Sub-packages are really different packages, happen to live within an enclosing package. Classes in sub-packages cannot access classes in enclosing package with default access.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;4. Comments can appear anywhere. Can&#39;t be nested. No matter what type of comments.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;5. At most one public class definition per file. This class name should match the file name. If there are more than one public class definitions, compiler will accept the class with the file&#39;s name and give an error at the line where the other class is defined.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;6. It&#39;s not required having a public class definition in a file. Strange, but true. J In this case, the file&#39;s name should be different from the names of classes and interfaces (not public obviously).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;7. Even an empty file is a valid source file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;8. An identifier must begin with a letter, dollar sign ($) or underscore (_). Subsequent characters may be letters, $, _ or digits.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;9. An identifier cannot have a name of a Java keyword. Embedded keywords are OK. true, false and null are literals (not keywords), but they can&#39;t be used as identifiers as well.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;10. const and goto are reserved words, but not used.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;11. Unicode characters can appear anywhere in the source code. The following code is valid.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;ch\u0061r a = &#39;a&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;char \u0062 = &#39;b&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;char c = &#39;\u0063&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;12. Java has 8 primitive data types.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-collapse: collapse; margin-left: 36pt;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;Data Type&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;Size (bits)&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;Initial Value&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;Min Value&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;Max Value&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;boolean&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;false&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&amp;nbsp;false&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;true&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;byte&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;-128 (-2&lt;sup&gt;7&lt;/sup&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;127 (2&lt;sup&gt;7&lt;/sup&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 10pt;&quot;&gt;- 1)&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;short&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;16&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;-2&lt;sup&gt;15&lt;/sup&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;2&lt;sup&gt;15&lt;/sup&gt;&amp;nbsp;- 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;char&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;16&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&#39;\u0000&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&#39;\u0000&#39; (0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&#39;\uFFFF&#39; (2&lt;sup&gt;16&lt;/sup&gt;&amp;nbsp;- 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;int&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;32&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;-2&lt;sup&gt;31&lt;/sup&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;2&lt;sup&gt;31&lt;/sup&gt;&amp;nbsp;- 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;long&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;0L&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;-2&lt;sup&gt;63&lt;/sup&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;2&lt;sup&gt;63&lt;/sup&gt;&amp;nbsp;- 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;float&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;32&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;0.0F&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;1.4E-45&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;3.4028235E38&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-image: initial; border-left-color: windowtext; border-left-style: solid; border-left-width: 1pt; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: windowtext; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;double&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 40.5pt;&quot; valign=&quot;top&quot; width=&quot;54&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;64&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 54pt;&quot; valign=&quot;top&quot; width=&quot;72&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;0.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 67.5pt;&quot; valign=&quot;top&quot; width=&quot;90&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;4.9E-324&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td style=&quot;border-bottom-color: windowtext; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: windowtext; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 121.5pt;&quot; valign=&quot;top&quot; width=&quot;162&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;1.7976931348623157E308&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;13. All numeric data types are signed. char is the only unsigned integral type.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;14. Object reference variables are initialized to null.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;15. Octal literals begin with zero. Hex literals begin with 0X or 0x.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;16. Char literals are single quoted characters or unicode values (begin with \u).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;17. A number is by default an int literal, a decimal number is by default a double literal.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;18. 1E-5d is a valid double literal, E2d is not (since it starts with a letter, compiler thinks that it&#39;s an identifier)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;19. Two types of variables.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;a.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Member variables&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Accessible anywhere in the class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Automatically initialized before invoking any constructor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Static variables are initialized at class load time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Can have the same name as the class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;b.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Automatic variables method local&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;· Must be initialized explicitly. (Or, compiler will catch it.) Object references can be initialized to null to make the compiler happy. The following code won&#39;t compile. Specify else part or initialize the local variable explicitly.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;public String testMethod ( int a) {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;String tmp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;if ( a &amp;gt; 0 ) tmp = &quot;Positive&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;return tmp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;· Can have the same name as a member variable, resolution is based on scope.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;20. Arrays are Java objects.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;If you create an array of 5 Strings, there will be 6 objects created.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial;&quot;&gt;21. Arrays should be&lt;/span&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Declared. (int[] a; String b[]; Object []c; Size should not be specified now)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Allocated (constructed). ( a = new int[10]; c = new String[arraysize] )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 16.8pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Initialized. for (int i = 0; i &amp;lt; a.length; a[i++] = 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; margin-bottom: 0cm;&quot;&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;22. The above three can be done in one step.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;int a[] = { 1, 2, 3 }; (or )&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;int a[] = new int[] { 1, 2, 3 }; But never specify the size with the new statement.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;23. Java arrays are static arrays. Size has to be specified at compile time. Array.length returns array&#39;s size. (Use Vectors for dynamic purposes).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;24. Array size is never specified with the reference variable, it is always maintained with the array object. It is maintained in array.length, which is a final instance variable.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;25. Anonymous arrays can be created and used like this: new int[] {1,2,3} or new int[10]&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;26. Arrays with zero elements can be created. args array to the main method will be a zero element array if no command parameters are specified. In this case args.length is 0.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;27. Comma after the last initializer in array declaration is ignored.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;int[] i = new int[2] { 5, 10}; // Wrong&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;int i[5] = { 1, 2, 3, 4, 5}; // Wrong&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;int[] i[] = {{}, new int[] {} }; // Correct&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;int i[][] = { {1,2}, new int[2] }; // Correct&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;int i[] = { 1, 2, 3, 4, } ; // Correct&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;28. Array indexes start with 0. Index is an int data type.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;29. Square brackets can come after datatype or before/after variable name. White spaces are fine. Compiler just ignores them.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;30. Arrays declared even as member variables also need to be allocated memory explicitly.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;static int a[];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;static int b[] = {1,2,3};&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;public static void main(String s[]) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;System.out.println(a[0]); // Throws a null pointer exception&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;System.out.println(b[0]); // This code runs fine&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;System.out.println(a); // Prints &#39;null&#39;&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;br /&gt;
&lt;br /&gt;
System.out.println(b); // Prints a string which is returned by toString&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
31. Once declared and allocated (even for local arrays inside methods), array elements are automatically initialized to the default values.&lt;br /&gt;
&lt;br /&gt;
32. If only declared (not constructed), member array variables default to null, but local array variables will not default to null.&lt;br /&gt;
&lt;br /&gt;
33. Java doesn&#39;t support multidimensional arrays formally, but it supports arrays of arrays. From the specification - &quot;The number of bracket pairs indicates the depth of array nesting.&quot; So this can perform as a multidimensional array. (no limit to levels of array nesting)&lt;br /&gt;
&lt;br /&gt;
34. In order to be run by JVM, a class should have a main method with the following signature.&lt;br /&gt;
&lt;br /&gt;
public static void main(String args[])&lt;br /&gt;
&lt;br /&gt;
static public void main(String[] s)&lt;br /&gt;
&lt;br /&gt;
35. args array&#39;s name is not important. args[0] is the first argument. args.length gives no. of arguments.&lt;br /&gt;
&lt;br /&gt;
36. main method can be overloaded.&lt;br /&gt;
&lt;br /&gt;
37. main method can be final.&lt;br /&gt;
&lt;br /&gt;
38. A class with a different main signature or w/o main method will compile. But throws a runtime error.&lt;br /&gt;
&lt;br /&gt;
39. A class without a main method can be run by JVM, if its ancestor class has a main method. (main is just a method and is inherited)&lt;br /&gt;
&lt;br /&gt;
40. Primitives are passed by value.&lt;br /&gt;
&lt;br /&gt;
41. Objects (references) are passed by reference. The object reference itself is passed by value. So, it can&#39;t be changed. But, the object can be changed via the reference.&lt;br /&gt;
&lt;br /&gt;
42. Garbage collection is a mechanism for reclaiming memory from objects that are no longer in use, and making the memory available for new objects.&lt;br /&gt;
&lt;br /&gt;
43. An object being no longer in use means that it can&#39;t be referenced by any &#39;active&#39; part of the program.&lt;br /&gt;
&lt;br /&gt;
44. Garbage collection runs in a low priority thread. It may kick in when memory is too low. No guarantee.&lt;br /&gt;
&lt;br /&gt;
45. It&#39;s not possible to force garbage collection. Invoking System.gc may start garbage collection process.&lt;br /&gt;
&lt;br /&gt;
46. The automatic garbage collection scheme guarantees that a reference to an object is always valid while the object is in use, i.e. the object will not be deleted leaving the reference &quot;dangling&quot;.&lt;br /&gt;
&lt;br /&gt;
47. There are no guarantees that the objects no longer in use will be garbage collected and their finalizers executed at all. gc might not even be run if the program execution does not warrant it. Thus any memory allocated during program execution might remain allocated after program termination, unless reclaimed by the OS or by other means.&lt;br /&gt;
&lt;br /&gt;
48. There are also no guarantees on the order in which the objects will be garbage collected or on the order in which the finalizers are called. Therefore, the program should not make any decisions based on these assumptions.&lt;br /&gt;
&lt;br /&gt;
49. An object is only eligible for garbage collection, if the only references to the object are from other objects that are also eligible for garbage collection. That is, an object can become eligible for garbage collection even if there are references pointing to the object, as long as the objects with the references are also eligible for garbage collection.&lt;br /&gt;
&lt;br /&gt;
50. Circular references do not prevent objects from being garbage collected.&lt;br /&gt;
&lt;br /&gt;
51. We can set the reference variables to null, hinting the gc to garbage collect the objects referred by the variables. Even if we do that, the object may not be gc-ed if it&#39;s attached to a listener. (Typical in case of AWT components) Remember to remove the listener first.&lt;br /&gt;
&lt;br /&gt;
52. All objects have a finalize method. It is inherited from the Object class.&lt;br /&gt;
&lt;br /&gt;
53.&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;finalize method is used to release system resources other than memory.&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;(such as file handles and network connections) The order in which finalize methods are called may not reflect the order in which objects are created. Don&#39;t rely on it. This is the signature of the finalize method.&lt;br /&gt;
&lt;br /&gt;
protected void finalize() throws Throwable { }&lt;br /&gt;
&lt;br /&gt;
In the descendents this method can be protected or public. Descendents can restrict the exception list that can be thrown by this method.&lt;br /&gt;
&lt;br /&gt;
54. finalize is called only once for an object. If any exception is thrown in finalize, the object is still eligible for garbage collection (at the discretion of gc)&lt;br /&gt;
&lt;br /&gt;
55. gc keeps track of unreachable objects and garbage-collects them, but an unreachable object can become reachable again by letting know other objects of its existence from its finalize method (when called by gc). This &#39;resurrection&#39; can be done only once, since finalize is called only one for an object.&lt;br /&gt;
&lt;br /&gt;
56.&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;finalize can be called explicitly, but it does not garbage collect the object.&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;br /&gt;
&lt;br /&gt;
57.&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;finalize can be overloaded, but only the method with original finalize signature will be called by gc.&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;br /&gt;
&lt;br /&gt;
58. finalize is not implicitly chained. A finalize method in sub-class should call finalize in super class explicitly as its last action for proper functioning. But compiler doesn&#39;t enforce this check.&lt;br /&gt;
&lt;br /&gt;
59.&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;b style=&quot;line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;System.runFinalization&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt; line-height: 14.25pt;&quot;&gt;&lt;ins&gt;&lt;/ins&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;&lt;span class=&quot;msoIns&quot;&gt;&lt;ins&gt;&lt;div style=&quot;font-size: 10pt; line-height: 14.25pt;&quot;&gt;
can be used to run the finalizers (which have not been executed before) for the objects eligible for garbage collection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: 10pt; line-height: 14.25pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 19px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Reverse a given number&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Factorial of an given number&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Generate random number between 1 to 100&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Read float and print o/p as shown&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Minimum of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/ins&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;line-height: 14.25pt;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/2777028942263604703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/java-fundamentals.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2777028942263604703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2777028942263604703'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/java-fundamentals.html' title='Java Fundamentals'/><author><name>Unknown</name><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3717622510887074921.post-1303594585376709659</id><published>2012-04-22T12:12:00.001+05:30</published><updated>2012-04-23T17:09:37.513+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Sum of integers between 100 to 200 divisible by 7</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;/* Write a program to find sum of all integers greater than 100 and&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;less than 200 that are divisible by 7 */&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class SumOfDigit{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int result=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(int i=100;i&amp;lt;=200;i++){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(i%7==0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;result+=i;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Output of Program is : &quot;+result);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;

&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/1303594585376709659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/sum-of-integers-between-100-to-200.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1303594585376709659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1303594585376709659'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/sum-of-integers-between-100-to-200.html' title='Sum of integers between 100 to 200 divisible by 7'/><author><name>Unknown</name><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3717622510887074921.post-3105212103605347647</id><published>2012-04-22T12:11:00.001+05:30</published><updated>2012-04-23T17:09:48.486+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Fibonacci series</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;/*Write a program to find Fibonacci series of a given no.&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;Example :&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Input - 8&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Output - 1 1 2 3 5 8 13 21&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class Fibonacci{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num = Integer.parseInt(args[0]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;//taking no. as command line argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;*****Fibonacci Series*****&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int f1, f2=0, f3=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(int i=1;i&amp;lt;=num;i++){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;System.out.print(&quot; &quot;+f3+&quot; &quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;f1 = f2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;f2 = f3;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;f3 = f1 + f2;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;

&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/3105212103605347647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/fibonacci-series.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/3105212103605347647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/3105212103605347647'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/fibonacci-series.html' title='Fibonacci series'/><author><name>Unknown</name><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-3717622510887074921.post-1116975200956937628</id><published>2012-04-22T12:04:00.001+05:30</published><updated>2012-04-23T17:09:59.701+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Reverse a given number</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;/*Write a program to Reverse a given no. */&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class Reverse{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num = Integer.parseInt(args[0]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//take argument as command line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int remainder, result=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(num&amp;gt;0){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;remainder = num%10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result = result * 10 + remainder;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;num = num/10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Reverse number is : &quot;+result);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;

&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/1116975200956937628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/reverse-given-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1116975200956937628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1116975200956937628'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/reverse-given-number.html' title='Reverse a given number'/><author><name>Unknown</name><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-3717622510887074921.post-964403112430191542</id><published>2012-04-22T12:03:00.001+05:30</published><updated>2012-04-23T17:10:18.812+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Factorial of an given number</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;/*Write a program to Find Factorial of Given no. */&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class Factorial{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int num = Integer.parseInt(args[0]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;//take argument as command line&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int result = 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(num&amp;gt;0){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result = result * num;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;num--;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Factorial of Given no. is : &quot;+result);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;

&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/964403112430191542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/factorial-of-given-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/964403112430191542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/964403112430191542'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/factorial-of-given-number.html' title='Factorial of an given number'/><author><name>Unknown</name><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-3717622510887074921.post-1362780194142597312</id><published>2012-04-22T12:02:00.001+05:30</published><updated>2012-04-23T17:10:35.384+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Find sum and product of a given digit</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: Arial,sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;/*Write a program to find SUM AND PRODUCT of a given Digit. */&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class Sum_Product_ofDigit{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;int num = Integer.parseInt(args[0]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //taking value as command line argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;int temp = num,result=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;//Logic for sum of digit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(temp&amp;gt;0){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;result = result + temp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;temp--;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;System.out.println(&quot;Sum of Digit for &quot;+num+&quot; is : &quot;+result);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;//Logic for product of digit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;temp = num;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;result = 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;while(temp &amp;gt; 0){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;result = result * temp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;temp--;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;System.out.println(&quot;Product of Digit for &quot;+num+&quot; is : &quot;+result);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;

&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/1362780194142597312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/find-sum-and-product-of-given-digit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1362780194142597312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1362780194142597312'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/find-sum-and-product-of-given-digit.html' title='Find sum and product of a given digit'/><author><name>Unknown</name><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-3717622510887074921.post-8825766758374035217</id><published>2012-04-22T12:01:00.001+05:30</published><updated>2012-04-23T17:10:54.343+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Greet message using Switch case</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;/* Write a program to display a greet message according to&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Marks obtained by student.&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class SwitchDemo{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;int marks = Integer.parseInt(args[0]);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//take marks as command line argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch(marks/10){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 10:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 9:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 8:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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; System.out.println(&quot;Excellent&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 7:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Very Good&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 6:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Good&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 5:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Work Hard&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 4:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Poor&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 3:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 2:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;case 0:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Very Poor&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;default:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Invalid value Entered&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;

&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/8825766758374035217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/greet-message-using-switch-case.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/8825766758374035217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/8825766758374035217'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/greet-message-using-switch-case.html' title='Greet message using Switch case'/><author><name>Unknown</name><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-3717622510887074921.post-7857243726809750008</id><published>2012-04-22T12:00:00.001+05:30</published><updated>2012-04-23T17:11:07.551+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Generate random number between 1 to 100</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;/*Write a program to generate 5 Random nos. between 1 to 100, and it&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;should not follow with decimal point.&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class RandomDemo{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(int i=1;i&amp;lt;=5;i++){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&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;System.out.println((int)(Math.random()*100));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;

&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/7857243726809750008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/generate-random-number-between-1-to-100.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/7857243726809750008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/7857243726809750008'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/generate-random-number-between-1-to-100.html' title='Generate random number between 1 to 100'/><author><name>Unknown</name><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-3717622510887074921.post-1460939121615992595</id><published>2012-04-22T11:58:00.001+05:30</published><updated>2012-04-23T17:11:25.577+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Read float and print o/p as shown</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;/* Write a program that will read a float type value from the&amp;nbsp;&amp;nbsp;&amp;nbsp;keyboard and print the following output.&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt;Small Integer not less than the number.&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt;Given Number.&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt;Largest Integer not greater than the number.&lt;/span&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class ValueFormat{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double i = 34.32; //given number&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Small Integer not greater than the number : &quot;+Math.ceil(i));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Given Number : &quot;+i);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Largest Integer not greater than the number : &quot;+Math.floor(i));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;

&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;background-color: white; font-family: Arial,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;
&lt;span style=&quot;background-color: white; font-family: Arial,sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;background-color: white; font-family: Arial,sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/1460939121615992595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/read-float-and-print-op-as-shown.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1460939121615992595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/1460939121615992595'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/read-float-and-print-op-as-shown.html' title='Read float and print o/p as shown'/><author><name>Unknown</name><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-3717622510887074921.post-3127134833715194148</id><published>2012-04-22T11:57:00.000+05:30</published><updated>2012-04-23T17:12:59.070+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Minimum of two numbers</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Find Minimum of 2 nos. using conditional operator&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3717622510887074921&quot; name=&quot;more&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class Minof2{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//taking value as command line argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Converting String format to Integer value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int i = Integer.parseInt(args[0]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int j = Integer.parseInt(args[1]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int result = (i&amp;lt;j)?i:j;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(result+&quot; is a minimum value&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;


&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;

&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/3127134833715194148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/minimum-of-two-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/3127134833715194148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/3127134833715194148'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/minimum-of-two-numbers.html' title='Minimum of two numbers'/><author><name>Unknown</name><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-3717622510887074921.post-6867306691870234602</id><published>2012-04-22T11:55:00.001+05:30</published><updated>2012-04-23T17:13:19.078+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java programs"/><title type='text'>Max of two numbers</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;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Find Maximum of 2 nos.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 0cm;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;class Maxof2{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;public static void main(String args[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//taking value as command line argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Converting String format to Integer value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int i = Integer.parseInt(args[0]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int j = Integer.parseInt(args[1]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(i &amp;gt; j)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(i+&quot; is greater than &quot;+j);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(j+&quot; is greater than &quot;+i);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 14.25pt; margin-bottom: 18pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial,sans-serif; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; line-height: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0.6em; position: relative;&quot;&gt;


&lt;span style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Fundamental programs&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2&gt;

&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/sum-of-integers-between-100-to-200.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Sum of integers between 100 to 200 divisible by 7&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; 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;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/fibonacci-series.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Fibonacci series&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/reverse-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Reverse a given number&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/factorial-of-given-number.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Factorial of an given number&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 18px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/find-sum-and-product-of-given-digit.html&quot; style=&quot;line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Find sum and product of a given digit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;a href=&quot;http://greet%20message%20using%20switch%20case/&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Greet message using Switch case&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/generate-random-number-between-1-to-100.html&quot; style=&quot;color: #7d181e; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Generate random number between 1 to 100&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/read-float-and-print-op-as-shown.html&quot; style=&quot;color: #3d85c6; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read float and print o/p as shown&lt;/a&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;line-height: 18px;&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;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 14.25pt;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/minimum-of-two-numbers.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Minimum of two numbers&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/max-of-two-numbers.html&quot; style=&quot;background-color: white; line-height: 14.25pt; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Max of two numbers&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: black; font-family: Arial,sans-serif; font-size: small; line-height: normal;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/6867306691870234602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/max-of-two-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/6867306691870234602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/6867306691870234602'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/max-of-two-numbers.html' title='Max of two numbers'/><author><name>Unknown</name><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-3717622510887074921.post-2326953966394996118</id><published>2012-04-17T19:28:00.006+05:30</published><updated>2012-04-22T12:10:03.441+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java interview questions"/><title type='text'>Java interview Questions 1.2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Check links &lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-interview-questions-10.html&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1.0&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; and &lt;/span&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-interview-questions-11.html&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1.1&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; for earlier questions&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;21. If a class is located in a package, what do you need to change in the OS environment to be able to use it?&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;You need to add a directory or a jar file that contains the package directories to the CLASSPATH environment variable. Let&#39;s say a class Employee belongs to a package com.xyz.hr; and is located in the file c:\dev\com\xyz\hr\Employee.javIn this case, you&#39;d need to add c:\dev to the variable CLASSPATH. If this class contains the method main(), you could test it from a command prompt window as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;c:\&amp;gt;java com.xyz.hr.Employee&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;22. What&#39;s the difference between J2SDK 1.5 and J2SDK 5.0?&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;There&#39;s no difference, Sun Microsystems just re-branded this version.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;23. Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;Yes, it does. The FileNoFoundException is inherited from the IOException. Exception&#39;s subclasses have to be caught first.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;24. Name the containers which uses Border Layout as their default layout?&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;Containers which uses Border Layout as their default are: window, Frame and Dialog classes.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;25. You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use:&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;ArrayList or LinkedList?&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;ArrayList&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;26. When should the method invokeLater()be used?&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;This method is used to ensure that Swing components are updated through the event-dispatching thread.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;27. How can a subclass call a method or a constructor defined in a superclass?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass&#39;s constructor.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;28. What do you understand by Synchronization?&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modify a shared object while another thread is in the process of using or updating the object&#39;s value. Synchronization prevents such type of data corruption.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;E.g. Synchronizing a function:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;public synchronized void Method1 () {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Appropriate method-related code.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;E.g. Synchronizing a block of code inside a function:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;public myFunction (){&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; synchronized (this) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Synchronized code here.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;29. What&#39;s the difference between a queue and a stack?&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;&quot;&gt;30. You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;Sometimes. But your class may be a descendent of another class and in this case the interface is your only option.&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial, verdana; font-size: 13px; line-height: 19px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;span style=&quot;color: #6aa84f; font-size: x-small;&quot;&gt;&lt;b&gt;Related post:&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #660000; font-size: medium;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-interview-questions-10.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Java interview Questions 1.0&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #660000; font-size: medium;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/java-interview-questions-11.html&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Java interview Questions 1.&lt;/a&gt;1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #660000; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #3d85c6; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #3d85c6; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; text-align: center;&quot;&gt;&lt;a href=&quot;http://programmingkatta.blogspot.in/2012/04/basic-java-programs.html#more&quot; style=&quot;color: #7d181e; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Basic java programs&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #336699; font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #336699; font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a href=&quot;http://www.link-up.net/&quot;&gt;Link Up Directory&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programmingkatta.blogspot.com/feeds/2326953966394996118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/java-interview-questions-12.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2326953966394996118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3717622510887074921/posts/default/2326953966394996118'/><link rel='alternate' type='text/html' href='http://programmingkatta.blogspot.com/2012/04/java-interview-questions-12.html' title='Java interview Questions 1.2'/><author><name>Unknown</name><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>1</thr:total></entry></feed>