<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2245837879707671146</id><updated>2012-02-17T02:07:11.506+05:30</updated><category term='Swing'/><category term='UNIX'/><category term='Trading'/><category term='Masala'/><category term='JAVA'/><category term='Software Quality Product'/><category term='SystemP'/><category term='CIBIL'/><category term='Eclipse plugin'/><category term='DB2'/><category term='SNMP and other Protocol'/><category term='Article'/><category term='Design Pattern'/><category term='Company Info'/><category term='IMS'/><category term='Mumbai Terror attack'/><category term='XML'/><category term='JMS'/><category term='Stay Alone'/><category term='TADDM'/><category term='NMS/EMS'/><category term='JDBC'/><category term='Trip'/><title type='text'>Prem's Blog</title><subtitle type='html'>Seldom Senseless</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>93</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-5507715884697716617</id><published>2011-07-29T11:10:00.000+05:30</published><updated>2011-07-29T11:10:27.337+05:30</updated><title type='text'>Ladder theory - stairway to heaven?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h2 style="color: red;"&gt;&lt;span style="color: red;"&gt;Basics of the ladder theory&lt;/span&gt;&lt;/h2&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;The basic premise of Ladder Theory is that all men gauge women on an I-would-have-sex-with-this woman/how-likely-is-she-to-have-sex-with-me scale.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Women apparently have two ladders:&lt;/div&gt;&lt;ul&gt;&lt;li style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://businessballs.com/images/bullet.gif); background-origin: initial; background-position: 0px 0.5em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-left: -30px; margin-top: 8px; padding-left: 16px;"&gt;Potential sexual partners, and&lt;/li&gt;&lt;li style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://businessballs.com/images/bullet.gif); background-origin: initial; background-position: 0px 0.5em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-left: -30px; margin-top: 8px; padding-left: 16px;"&gt;Platonic partners - those she would never have sex with.&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Given that women are arguably a lot more more complex than men, then that figures..&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Classification and ranking (for both sexes) is described as a 'Ladder' hence the name Ladder Theory.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Allegedly, the higher up on someone's ladder you are the more likely you are to get laid.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;The following (basic) table sets out how men and women apparently make their initial mental assessment of each other.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="color: red;"&gt;ladder theory male/female assessment factors&lt;/h2&gt;&lt;table border="1" cellpadding="5" cellspacing="5" style="width: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="LEFT" bgcolor="#CCFFFF" width="40%"&gt;&lt;b&gt;men&lt;/b&gt;&lt;/td&gt;&lt;td align="LEFT" bgcolor="#CCFFFF" width="10%"&gt;&lt;b&gt;%&lt;/b&gt;&lt;/td&gt;&lt;td align="LEFT" bgcolor="#FFCCCC" width="40%"&gt;&lt;b&gt;women&lt;/b&gt;&lt;/td&gt;&lt;td align="LEFT" bgcolor="#FFCCCC" width="10%"&gt;&lt;b&gt;%&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#CCFFFF" width="40%"&gt;How attractive is she&lt;/td&gt;&lt;td bgcolor="#CCFFFF" width="10%"&gt;60&lt;/td&gt;&lt;td bgcolor="#FFCCCC" width="40%"&gt;How much money/power does he have&lt;/td&gt;&lt;td bgcolor="#FFCCCC" width="10%"&gt;50&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#CCFFFF" width="40%"&gt;How soon she will have sex with me&lt;/td&gt;&lt;td bgcolor="#CCFFFF" width="10%"&gt;30&lt;/td&gt;&lt;td bgcolor="#FFCCCC" width="40%"&gt;How attractive is he*&lt;/td&gt;&lt;td bgcolor="#FFCCCC" width="10%"&gt;40&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#CCFFFF" width="40%"&gt;Other aspects&lt;/td&gt;&lt;td bgcolor="#CCFFFF" width="10%"&gt;10&lt;/td&gt;&lt;td bgcolor="#FFCCCC" width="40%"&gt;How much women say and don't mean (e.g., I prefer a man with a sense of humour, a sensitive man, etc)&lt;/td&gt;&lt;td bgcolor="#FFCCCC" width="10%"&gt;10&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif;"&gt;* Attractive (40%) to women is broken down as follows:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma, sans-serif;"&gt;&lt;ul&gt;&lt;li style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://businessballs.com/images/bullet.gif); background-origin: initial; background-position: 0px 0.5em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-left: -30px; margin-top: 8px; padding-left: 16px;"&gt;50% - Physical Attraction&lt;/li&gt;&lt;li style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://businessballs.com/images/bullet.gif); background-origin: initial; background-position: 0px 0.5em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-left: -30px; margin-top: 8px; padding-left: 16px;"&gt;20% - Competition (is he someone else's, does he ignore me, I-want-what-I-can't-have, etc..)&lt;/li&gt;&lt;li style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://businessballs.com/images/bullet.gif); background-origin: initial; background-position: 0px 0.5em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-left: -30px; margin-top: 8px; padding-left: 16px;"&gt;20% - Novelty (women it appears lay some kudos on men being 'novel')&lt;/li&gt;&lt;li style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://businessballs.com/images/bullet.gif); background-origin: initial; background-position: 0px 0.5em; background-repeat: no-repeat no-repeat; list-style-type: none; margin-left: -30px; margin-top: 8px; padding-left: 16px;"&gt;10% - Other (we can only guess..)&lt;/li&gt;&lt;/ul&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="color: red;"&gt;&lt;span style="color: red;"&gt;men's ladders&lt;/span&gt;&lt;/h2&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Based on the above, a man will place a woman highest on his ladder if (he judges) she is willing to have sex with him and he finds her attractive.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;It could be said that most men and women would not find that statement ground-breaking.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Men apparently classify women as follows:&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;Top&lt;/b&gt;&amp;nbsp;- (of course) is the woman he really/most fancies.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Next&lt;/b&gt;&amp;nbsp;- the women who he would have sex with and admit to.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Last&lt;/b&gt;&amp;nbsp;- those women he would have sex with but never admit to it (or be too drunk to remember who she was). Too much alcohol can as we know make even the most unattractive woman (and man) appear desirable.&lt;/li&gt;&lt;/ol&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;As an aside it should be remembered that beauty is subjective, and (often) superficial, especially when applied to women (although some men also prefer not to be to seen without their make-up or other physical enhancements).&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Men, as stated in the Ladder Theory, do not have a ladder for 'Platonic' females since the theory works on the premise that all men basically evaluate women as sexual objects.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="color: red;"&gt;women's ladders&lt;/h2&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Women as stated earlier have two ladders - Potential Sexual Partners and Platonic Partners.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;The first problem here for men is that they often don't know which ladder they are on.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;When they do get it wrong they can come to an 'abysmal' end.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;Women place Money/Power as a man's most attractive aspect.&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;This is borne out by how many 'not very attractive' powerful rich men have beautiful women companions. (If the cap fits..)&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="color: red;"&gt;&lt;br /&gt;&lt;/h2&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 12px; margin-left: 0px; margin-right: 0px; margin-top: 12px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-5507715884697716617?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/5507715884697716617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=5507715884697716617&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/5507715884697716617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/5507715884697716617'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2011/07/ladder-theory-stairway-to-heaven.html' title='Ladder theory - stairway to heaven?'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-1572160970751595311</id><published>2011-07-29T10:39:00.002+05:30</published><updated>2011-07-29T10:39:52.457+05:30</updated><title type='text'>DO NOT STAND AT MY GRAVE AND WEEP</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: red; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="line-height: 1.5; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Do not stand at my grave and weep,&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am not there, I do not sleep.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;I am a thousand winds that blow.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the diamond glint on snow.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the sunlight on ripened grain.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the gentle autumn rain.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;When you wake in the morning hush,&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the swift, uplifting rush&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Of quiet birds in circling flight.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the soft starlight at night.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Do not stand at my grave and weep.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am not there,&amp;nbsp; I do not sleep.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Do not stand at my grave and cry.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am not there,&amp;nbsp; I did not die!&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Do not stand at my grave and weep.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am not there,&amp;nbsp; I do not sleep.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;I am the song that will never end.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the love of family and friend.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the child who has come to rest&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;In the arms of the Father&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;who knows him best.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;When you see the sunset fair,&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the scented evening air.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the joy of a task well done.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am the glow of the setting sun.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 1.5; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Do not stand at my grave and weep.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am not there, I do not sleep.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;Do not stand at my grave and cry.&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;I am not there, I did not die!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-1572160970751595311?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/1572160970751595311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=1572160970751595311&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/1572160970751595311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/1572160970751595311'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2011/07/do-not-stand-at-my-grave-and-weep.html' title='DO NOT STAND AT MY GRAVE AND WEEP'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-3836010488458164735</id><published>2011-04-20T15:48:00.002+05:30</published><updated>2011-04-20T15:48:37.715+05:30</updated><title type='text'>Awesome piece of poetry</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;Here i am sitting in my home @ night…&lt;br /&gt;Thinking hard about life&lt;br /&gt;How it changed from a maverick collage life to strict professional life…...&lt;br /&gt;&lt;br /&gt;How tiny pocket money changed to huge monthly paychecks&lt;br /&gt;but then why it gives less happiness….&lt;br /&gt;&lt;br /&gt;How a few local denim jeans changed to new branded wardrobe&lt;br /&gt;but then why there are less people to use them&lt;br /&gt;&lt;br /&gt;How a single plate of samosa changed to a full Pizza or burger&lt;br /&gt;But then why there is less hunger…..&lt;br /&gt;&lt;br /&gt;Here i am sitting in my home @ night…&lt;br /&gt;Thinking hard about life&lt;br /&gt;How it changed…..&lt;br /&gt;&lt;br /&gt;How a bike always in reserve changed to bike always on&lt;br /&gt;but then why there are less places to go on……&lt;br /&gt;&lt;br /&gt;How a small coffee shop changed to cafe coffee day&lt;br /&gt;but then why its feels like shop is far away…..&lt;br /&gt;&lt;br /&gt;How a limited prepaid card changed to postpaid package&lt;br /&gt;but then why there are less calls &amp;amp; more messages……&lt;br /&gt;&lt;br /&gt;Here i am sitting in my home @ night…&lt;br /&gt;Thinking hard about life&lt;br /&gt;How it changed…..&lt;br /&gt;&lt;br /&gt;How a general class journey changed to Flight journey&lt;br /&gt;But then why there are less vacations for enjoyment….&lt;br /&gt;&lt;br /&gt;How a old assembled desktop changed to new branded laptop&lt;br /&gt;but then why there is less time to put it on……….&lt;br /&gt;&lt;br /&gt;How a small bunch of friends changed to office mate&lt;br /&gt;but then why after 8 o' Clock it always feel like getting late….&lt;br /&gt;&lt;br /&gt;Here i am sitting in my home @ night…&lt;br /&gt;Thinking hard about life&lt;br /&gt;How it changed….. how it changed……..&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-3836010488458164735?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/3836010488458164735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=3836010488458164735&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/3836010488458164735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/3836010488458164735'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2011/04/awesome-piece-of-poetry.html' title='Awesome piece of poetry'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-35433990941071475</id><published>2011-02-18T17:43:00.001+05:30</published><updated>2011-04-19T13:47:07.066+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>JAVA1.6  enhancement</title><content type='html'>Java 1.6 was released to overcome a few shortcomings and provide enhanced features when compared to Java 1.5 &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Details of 1.6 are mentioned below. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Advantages to running applications on Java SE 6&lt;/span&gt;&lt;br /&gt;Applications run faster on the desktop and servers&lt;br /&gt;New 'Dynamic Attach' diagnostics simplify troubleshooting&lt;br /&gt;Expanded Solaris DTrace support provides additional value on Solaris&lt;br /&gt;Improved 'native' look and feel across Solaris, Linux, and Windows&lt;br /&gt;First Java platform with full support for Windows Vista&lt;br /&gt;Benefits in upgrading developer environments to Sun's Java SE 6&lt;br /&gt;JavaScript integrated and included with the platform&lt;br /&gt;Scripting languages framework extends support for Ruby, Python, and other languages&lt;br /&gt;Complete light-weight platform for web services, right out of the box&lt;br /&gt;Simplified GUI design and expanded native platform support&lt;br /&gt;Full JDBC4 implementation providing improved XML support for Databases&lt;br /&gt;Java DB included with the JDK, a free to use and deploy Java Database&lt;br /&gt;Full support by NetBeans IDE 5.5&lt;br /&gt;Sun Developer Services available to help build more robust applications&lt;br /&gt;Improved User Experience&lt;br /&gt;&lt;br /&gt;Look-and-feel updates to better match underlying operating system&lt;br /&gt;Improved desktop performance and integration&lt;br /&gt;Enhanced internationalization support&lt;br /&gt;Improved performance&lt;br /&gt;Upwards binary compatibility&lt;br /&gt;&lt;br /&gt;Security Features and Enhancements&lt;br /&gt;&lt;br /&gt;Native platform Security (GSS/Kerberos) integration.&lt;br /&gt;Java Authentication and Authorization Service (JAAS) login module that employs LDAP authentication&lt;br /&gt;New Smart Card I/O API&lt;br /&gt;Native security services technical article &lt;br /&gt;» Find out more&lt;br /&gt;&lt;br /&gt;Integrated Web Services&lt;br /&gt;&lt;br /&gt;New API for XML digital signature services for secure web services&lt;br /&gt;New Client and Core Java Architecture for XML-Web Services (JAX-WS) 2.0 APIs&lt;br /&gt;New support for Java Architecture for XML Binding (JAXB) 2.0&lt;br /&gt;XML home page &lt;br /&gt;» Find out more&lt;br /&gt;&lt;br /&gt;Scripting Language Support (JSR 223)&lt;br /&gt;&lt;br /&gt;New framework and API for scripting languages&lt;br /&gt;Mozilla Rhino engine for JavaScript built into the platform&lt;br /&gt;Scripting for the Java Platform technical article &lt;br /&gt;» Find out more&lt;br /&gt;&lt;br /&gt;Enhanced Management and Serviceability&lt;br /&gt;&lt;br /&gt;Improved JMX Monitoring API&lt;br /&gt;Runtime Support for dTrace (Solaris 10 and future Solaris OS releases only)&lt;br /&gt;Improved memory usage analysis and leak detection&lt;br /&gt;Monitoring and Management technical article &lt;br /&gt;&lt;br /&gt;Increased Developer Productivity&lt;br /&gt;&lt;br /&gt;JDBC 4.0 support (JSR 221)&lt;br /&gt;Significant library improvements&lt;br /&gt;Improvements to the Java Platform Debug Architecture (JPDA) &amp; JVM Tool Interface&lt;br /&gt;&lt;br /&gt;Collections Framework Enhancements&lt;br /&gt;					&lt;br /&gt;&lt;br /&gt;This page summarizes enhancements to the collections framework in Java SE 6.&lt;br /&gt;This release saw fewer API changes than 5.0, but there was more of a focus on the accuracy and clarity of the specification. We recommend using the Java SE 6 specification even when writing programs for older releases.&lt;br /&gt;The primary theme of the API changes was better bi-directional collection access.&lt;br /&gt;These new collection interfaces are provided:&lt;br /&gt;•	Deque - a double ended queue, supporting element insertion and removal at both ends. Extends the Queue interface.&lt;br /&gt;•	BlockingDeque - a Deque with operations that wait for the deque to become non-empty when retrieving an element, and wait for space to become available in the deque when storing an element. Extends both the Deque andBlockingQueue interfaces. (This interface is part of java.util.concurrent.)&lt;br /&gt;•	NavigableSet - a SortedSet extended with navigation methods reporting closest matches for given search targets. A NavigableSet may be accessed and traversed in either ascending or descending order. This interface is intended to supersede the SortedSet interface.&lt;br /&gt;•	NavigableMap - a SortedMap extended with navigation methods returning the closest matches for given search targets. A NavigableMap may be accessed and traversed in either ascending or descending key order. This interface is intended to supersede the SortedMap interface.&lt;br /&gt;•	ConcurrentNavigableMap - a ConcurrentMap that is also a NavigableMap. (This interface is part of java.util.concurrent.)&lt;br /&gt;The following concrete implementation classes have been added:&lt;br /&gt;•	ArrayDeque - efficient resizable-array implementation of the Deque interface.&lt;br /&gt;•	ConcurrentSkipListSet - concurrent scalable skip list implementation of the NavigableSet interface.&lt;br /&gt;•	ConcurrentSkipListMap - concurrent scalable skip list implementation of the ConcurrentNavigableMap interface.&lt;br /&gt;•	LinkedBlockingDeque - concurrent scalable optionally bounded FIFO blocking deque backed by linked nodes.&lt;br /&gt;•	AbstractMap.SimpleEntry - simple mutable implementation of Map.Entry&lt;br /&gt;•	AbstractMap.SimpleImmutableEntry - simple immutable implementation of Map.Entry&lt;br /&gt;These existing classes have been retrofitted to implement new interfaces:&lt;br /&gt;•	LinkedList - retrofitted to implement the Deque interface.&lt;br /&gt;•	TreeSet - retrofitted to implement the NavigableSet interface.&lt;br /&gt;•	TreeMap - retrofitted to implement the NavigableMap interface.&lt;br /&gt;Two new methods were added to the Collections utility class:&lt;br /&gt;•	newSetFromMap(Map) - creates a general purpose Set implementation from a general purpose Map implementation.&lt;br /&gt;There is no IdentityHashSet class, but instead, just use&lt;br /&gt;Set&lt;Object&gt; identityHashSet=&lt;br /&gt;    Collections.newSetFromMap(&lt;br /&gt;        new IdentityHashMap&lt;Object, Boolean&gt;());&lt;br /&gt;•	asLifoQueue(Deque) - returns a view of a Deque as a Last-in-first-out (Lifo) Queue.&lt;br /&gt;The Arrays utility class now has methods copyOf and copyOfRange that can efficiently resize, truncate, or copy subarrays for arrays of all types.&lt;br /&gt;Before:&lt;br /&gt;int[] newArray = new int[newLength];&lt;br /&gt;System.arraycopy(oldArray, 0, newArray, 0, oldArray.length);&lt;br /&gt;After:&lt;br /&gt;int[] newArray = Arrays.copyOf(a, newLength);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;JavaTM RMI Release Notes&lt;br /&gt;for JDKTM 6&lt;br /&gt;					&lt;br /&gt;&lt;br /&gt;Enhancements in JavaTM SE Development Kit (JDK) 6&lt;br /&gt;java.rmi.MarshalledObject now generic&lt;br /&gt;The class MarshalledObject now has a type parameter representing the type of the contained serialized object.&lt;br /&gt;Bug fix: Explicit TCP ports freed after remote objects unexported (4457683)&lt;br /&gt;In previous releases, after a remote object had been exported on an explicit (non-anonymous) TCP port, the RMI implementation would keep a server socket bound to that port open for the lifetime of the virtual machine, regardless of the life cycle of remote objects exported on that port. This bug has been fixed so that after all remote objects that had been exported on a given non-anonymous port have become unexported (either explicitly or through distributed garbage collection) then the associated server socket will be closed. (There is an equivalent bug for anonymous TCP ports: 6279965.)&lt;br /&gt;Bug fix: Garbage collection of client socket factories (4486732)&lt;br /&gt;In previous releases, after a remote invocation was made on a remote stub containing a non-null RMIClientSocketFactory in a given virtual machine, then either that factory object or an equivalent factory object would remain forever reachable in the virtual machine, preventing it (and its defining class loader) from ever being garbage collected; this bug has been fixed. (There is an equivalent bug for socket factories used to export a remote object: 6332603.)&lt;br /&gt;Default GC interval lengthed to one hour (6200091)&lt;br /&gt;In previous releases, the maximum interval between garbage collections of the local heap enforced by the RMI implementation (while there are live remote references or exported remote objects), which is controlled by the system properties sun.rmi.dgc.client.gcInterval and sun.rmi.dgc.server.gcInterval, was one minute by default. The default interval is now one hour, to better accommodate applications with large heap sizes without special configuration.&lt;br /&gt;Enhancements and Changes in Previous Releases&lt;br /&gt;Dynamic Generation of Stub Classes (since 5.0)&lt;br /&gt;This release adds support for the dynamic generation of stub classes at runtime, obviating the need to use the Java Remote Method Invocation (Java RMI) stub compiler, rmic, to pregenerate stub classes for remote objects. Note that rmic must still be used to pregenerate stub classes for remote objects that need to support clients running on earlier versions.&lt;br /&gt;When an application exports a remote object (using the constructors or static exportObject methods1 of the classes java.rmi.server.UnicastRemoteObject orjava.rmi.activation.Activatable) and a pregenerated stub class for the remote object's class cannot be loaded, the remote object's stub will be a java.lang.reflect.Proxy instance (whose class is dynamically generated) with a java.rmi.server.RemoteObjectInvocationHandler as its invocation handler.&lt;br /&gt;An existing application can be deployed to use dynamically generated stub classes unconditionally (that is, whether or not pregenerated stub classes exist) by setting the system propertyjava.rmi.server.ignoreStubClasses to "true". If this property is set to "true", pregenerated stub classes are never used.&lt;br /&gt;Notes:&lt;br /&gt;•	If a remote object has pre-5.0 clients, that remote object should use a stub class pregenerated with rmic or the client will get an ClassNotFoundException deserializing the remote object's stub. Pre-5.0 clients will not be able to load an instance of a dynamically generated stub class, because such a class contains an instance of RemoteObjectInvocationHandler, which was not available prior to this release.&lt;br /&gt;•	Prior to the J2SE 5.0 release, exporting a remote object would throw a java.rmi.StubNotFoundException if the pregenerated stub class for the remote object's class could not be loaded. With the added support for dynamically generated stub classes, exporting a remote object that has no pregenerated stub class will silently succeed instead. A user deploying a server application to support pre-5.0 clients must still make sure to pregenerate stub classes for the server's remote object classes, even though missing stub classes are no longer reported at export time. Such errors will instead be reported to a pre-5.0 client when it deserializes a dynamically generated stub class.&lt;br /&gt;1 The static method UnicastRemoteObject.exportObject(Remote) is declared to return java.rmi.server.RemoteStub and therefore cannot be used to export a remote object to use a dynamically generated stub class for its stub. An instance of a dynamically generated stub class is a java.lang.reflect.Proxy instance which is not assignable to RemoteStub.&lt;br /&gt;Standard SSL/TLS Socket Factory Classes (since 5.0)&lt;br /&gt;This release adds standard Java RMI socket factory classes, javax.rmi.ssl.SslRMIClientSocketFactory and javax.rmi.ssl.SslRMIServerSocketFactory, which communicate over the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols using the Java Secure Socket Extension (JSSE). These socket factory classes provide a simple way to use JSSE with Java RMI, enabling enforcement of integrity, confidentiality (through encryption), server authentication, and (optionally) client authentication for remote method invocations. For more information on how to use custom socket factories with Java RMI, see the tutorial "Using Custom Socket Factories with Java RMI". For more information on JSSE (including how to configure it), see the JSSE Reference Guide.&lt;br /&gt;Launching rmid or a Java RMI Server from inetd/xinetd (since 5.0)&lt;br /&gt;A new feature, provided by the System.inheritedChannel method, allows an application to obtain a channel (java.nio.channels.SocketChannel or java.nio.channels.ServerSocketChannel, for example) inherited from a process that launched the virtual machine (VM). Such an inherited channel can be used to either service a single incoming connection (in the case of a SocketChannel) or accept multiple incoming connections (in the case of ServerSocketChannel). Therefore, Java networking applications launched by inetd (Solaris(tm) Operating System) or xinetd (Linux) can now obtain theSocketChannel or ServerSocketChannel inherited from inetd/xinetd.&lt;br /&gt;With the addition of this feature, the Java RMI activation daemon rmid has been enhanced to support being launched from inetd/xinetd so that rmid can be started up only when it receives an incoming connection. For details on the enhancements to rmid to support this feature, see the tools page for rmid (for the Solaris Operating System). For details on how to configure inetd to launch rmid, see the tutorial "Configuring inetd to Launch rmid".&lt;br /&gt;An application using Java RMI can also be designed to be launched from inetd or xinetd. For an example on how to implement this technique, see the tutorial "Designing Services to be Launched frominetd."&lt;br /&gt;rmic default stub protocol version option now -v1.2 (since 5.0)&lt;br /&gt;When rmic is run without an option to specify the JRMP stub protocol version to be used by the generated classes, it now behaves as if the -v1.2 option were specified, instead of the -vcompat option as in previous releases.&lt;br /&gt;This change means that by default, rmic does not generate any skeleton classes and generates stub classes that only implement the 1.2 stub protocol version. If a remote implementation class needs to be built to support clients running on JDK 1.1, then the -vcompat option must now be specified explicitly. (Also, note that as described above, if a remote implementation class does not need to support clients running on any release prior to 5.0, then rmic does not need to be run at all for that class.)&lt;br /&gt;See the tools documentation for rmic [Solaris and Linux] [Windows] for more information about these command line options.&lt;br /&gt;rmic no longer compiles arbitrary source files in the class path (since 5.0)&lt;br /&gt;In previous releases, rmic would sometimes, while processing its input class files, attempt to compile arbitrary .java source files that it encountered in the class path. In 5.0, rmic does not attempt to compile any source files other than those for the stub, skeleton, or tie classes that it generates.&lt;br /&gt;The expectation is that the remote implementation classes passed to rmic, as well as all classes and interfaces that they depend on, have already been successfully compiled with javac before rmic is run. If an existing build procedure depends on the previous behavior of rmic for compiling some of its application source files, then that build procedure will need to be modified to ensure that all necessary classes are correctly compiled with javac before running rmic.&lt;br /&gt;Server-side Stack Traces Now Retained in Remote Exceptions (since 1.4)&lt;br /&gt;The Java RMI runtime implementation will now preserve the server-side stack trace information of an exception that is thrown from a remote call, in addition to filling in the client-side stack trace as it did in previous releases. Therefore, when such an exception becomes accessible to client code, its stack trace will now contain all of its original server-side trace data followed by the client-side trace.&lt;br /&gt;This feature is made possible by the new "programmatic access to stack trace information" feature of java.lang.Throwable in J2SE 1.4, which included making a Throwable's stack trace data part of its default serialized form. What the client-side Java RMI runtime implementation now does to cooperate with this feature is to append the client-side trace to the unmarshalled server-side trace, rather than simply overwriting with the client-side trace as it did in previous releases.&lt;br /&gt;Certain server applications may wish to prevent any server-side stack trace data from accompanying an exception to be marshalled as the result of a remote call (as part of the exception's default serialized form in J2SE 1.4), perhaps for reasons of performance or confidentiality. In such cases, the implementation-specific system property&lt;br /&gt;sun.rmi.server.suppressStackTraces&lt;br /&gt;can be set to "true" to cause the server-side Java RMI runtime implementation to clear the stack traces of all exceptions thrown from the current virtual machine as the result of remote method invocations.&lt;br /&gt;Service Provider Interface for RMIClassLoader (since 1.4)&lt;br /&gt;Certain static methods of java.rmi.server.RMIClassLoader now delegate their behavior to an instance of a new service provider interface, java.rmi.server.RMIClassLoaderSpi. The service provider can be configured to augment the Java RMI dynamic class loading behavior for a given application. By default, the service provider implements the standard behavior of all of the static methods inRMIClassLoader. See the class documentation of RMIClassLoader and RMIClassLoaderSpi for more details.&lt;br /&gt;Dynamic Server Host Name (since 1.4)&lt;br /&gt;The java.rmi.server.hostname property can now be dynamically updated to indicate that future exports should use a new host name. Therefore, the new host name value will be contained in the stub for an object that is exported after the property is updated.&lt;br /&gt;HTTP Fallback Is More Configurable (since 1.4.1)&lt;br /&gt;The implementation-specific system property sun.rmi.transport.proxy.eagerHttpFallback has been added to allow additional control over when the Java RMI default socket factory will fall back to HTTP tunneling. This property configures the default socket factory so that any SocketException thrown by an initial (direct) connection attempt will trigger HTTP tunneling; this more "eager" fallback strategy can be useful when dealing with firewalls which deny instead of ignore connection attempts to unauthorized ports.&lt;br /&gt;java.rmi.Naming.list Method No Longer Prepends a Scheme to Names Returned (since 1.4.1)&lt;br /&gt;In previous releases, the Naming.list method prepended the scheme rmi: to each name contained in the returned array of strings. The Naming.list implementation now matches the specification, returning an array of names that are URL-formatted, but without the scheme component.&lt;br /&gt;java.rmi.activation.ActivationGroupDesc (since 1.3)&lt;br /&gt;The getClassName method, which returns the group's class name, can now return null, indicating the system's default group implementation. Previously, the getClassName method would return the name of the internal implementation class if the default group implementation was chosen when the descriptor was constructed.&lt;br /&gt;Due to this change, if an application running in a 1.3 virtual machine registers an new activatable object with the ActivationSystem, rmid must also be upgraded to run 1.3, since a pre-1.3 rmid will not be able to activate the newly registered activatable object.&lt;br /&gt;The Java RMI Stub Compiler, rmic (since 1.3)&lt;br /&gt;By default, rmic [Solaris and Linux] [Windows] now assumes that the destination directory for generated stubs is the package-named subdirectory of the current working directory. If the "-d" option is not specified, the result is the same as though it were specified with the current working directory "." as an argument. The "-d" may still be used to override the default destination directory.&lt;br /&gt;Two new options, "-idl" and "-iiop" have been added to generate IDL and stubs for IIOP, respectively.&lt;br /&gt;The Java RMI Activation Daemon, rmid (since 1.3)&lt;br /&gt;By default, rmid [Solaris and Linux] [Windows] now requires a security policy file.&lt;br /&gt;Serializing remote objects (since 1.2.2)&lt;br /&gt;Prior to 1.2.2, an attempt to pass an unexported remote object in a RMI call would result in a java.rmi.StubNotFoundException. This exception was a result of the RMI runtime's failure to locate a stub object during an attempt to replace a remote object implementation with its corresponding stub. In 1.2.2 and later releases, an unexported remote object passed in an RMI call will no longer result in an exception, but rather the remote object will be serialized instead of its stub. If the remote object implementation is not serializable, an attempt to pass an unexported object in an RMI call will result in ajava.rmi.RemoteException with the nested exception java.io.NotSerializableException.&lt;br /&gt;&lt;br /&gt;Serialization Changes and Enhancements&lt;br /&gt;in JavaTM SE Development Kit 6&lt;br /&gt;					&lt;br /&gt;&lt;br /&gt;The following are enhancements to serialization in Java SE Development Kit 6 (JDK). For a summary of enhancements in previous releases, see Enhancements in Previous Releases.&lt;br /&gt;java.io.ObjectStreamClass.lookupAny&lt;br /&gt;In previous releases, it was difficult to programmatically obtain an ObjectStreamClass instance for a non-serializable Class, although doing so can be desirable when customizing the stream format for class descriptors (see 4413615 for more information). The new method ObjectStreamClass.lookupAny can now be used for this purpose.&lt;br /&gt;Bug fix: delayed garbage collection&lt;br /&gt;In previous releases, bug 6232010 could cause serializable classes and subclasses of ObjectOutputStream and ObjectInputStream to be strongly referenced long after their use in a serialization operation, thus possibly delaying garbage collection of their defining class loaders indefinitely. Internal caches in the serialization implementation have been restructured to fix this bug.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-35433990941071475?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/35433990941071475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=35433990941071475&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/35433990941071475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/35433990941071475'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2011/02/java16-enhancement.html' title='JAVA1.6  enhancement'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-6264011241317663564</id><published>2010-08-29T16:36:00.000+05:30</published><updated>2010-08-29T16:37:18.585+05:30</updated><title type='text'>sd card has all shortcut folder that i cannot open</title><content type='html'>i got it if anyone else has this problem open whatever drive or folder you are trying to access and go to the tools tab in the drive or folder window and select folder options. then select the view tab. then click show hidden files and folders....and uncheck Hide protected operating system files (recommended)&lt;br /&gt;&lt;br /&gt;i had to do that a couple times it kept resting when i found the files i copied them to new folders and then they were not hidden anymore!!!!! &lt;br /&gt;&lt;br /&gt;URL: http://able2know.org/topic/159821-1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-6264011241317663564?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/6264011241317663564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=6264011241317663564&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/6264011241317663564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/6264011241317663564'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2010/08/sd-card-has-all-shortcut-folder-that-i.html' title='sd card has all shortcut folder that i cannot open'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-4685806307553759791</id><published>2010-08-09T12:20:00.000+05:30</published><updated>2010-08-09T12:21:02.872+05:30</updated><title type='text'>Sindhi Jokes Now</title><content type='html'>Sindhi: Kela Kaisa Diya?&lt;br /&gt;Shop Keeper: 1 Rs.&lt;br /&gt;Sindhi: 60 Paisa ka deta hai?&lt;br /&gt;Shop Keeper: 60 paise mein to sirf chilka milega.&lt;br /&gt;Sindhi:Ley 40 paisay, chilka rakh aur kela day de&lt;br /&gt;_________________________________________________________________________&lt;br /&gt;Sindhi on his death time.&lt;br /&gt;My wife, where r u ?&lt;br /&gt;Wife:Yes, I’m here&lt;br /&gt;My sons daughters ru all here?&lt;br /&gt;Yes, Papa&lt;br /&gt;Sindhi:To phir barabar wale kamre&lt;br /&gt;ka pankha Q chal raha hay ???&lt;br /&gt;_________________________________________________________________________&lt;br /&gt; &lt;br /&gt;Sindhi 14th floor se neche gira&lt;br /&gt;Girte waqt usne&lt;br /&gt;apni ghar ki khirki me&lt;br /&gt;apni wife ko roti pakate hue dekha&lt;br /&gt;to chilla k bola&lt;br /&gt;MERI ROTI NAHI PAKANA!&lt;br /&gt; &lt;br /&gt;_________________________________________________________________________&lt;br /&gt;Sindhi ne sheikh ko khoon dey k uski jaan bachai.&lt;br /&gt;Sheikh ne usay MERCEDEZ gift kardi.&lt;br /&gt;Sheikh ko phir khoon ki zarorut pari,&lt;br /&gt;Sindhi ne phir khoon dia.&lt;br /&gt;Ab k bar Sheikh ne till waly laddu gift kiye, &lt;br /&gt;Sindhi:Ghusse se poocha : mercedez kion nahi di?&lt;br /&gt;Sheikh:Munna. !! Ab hamarey ander bhi Sindhi ka khoon daud raha hay&lt;br /&gt;_________________________________________________________________________&lt;br /&gt;Sindhi called a newspaper office and asked: Mera Chacha Mar gaya hai,&lt;br /&gt;kya charges hongay?&lt;br /&gt;NewsPaper: Rs.50 per word.&lt;br /&gt;Sindhi: Oh bohat ziyada hain, Acha likho “Chacha Guzar Gaye”.&lt;br /&gt;Newspaper: Sir! It should be minimum 6 words!&lt;br /&gt;Sindhi: Oh ho! Jara sochnay do….. Acha likho…….. ………. ..&lt;br /&gt;Chacha Guzar Gaye – Maruti for Sale .&lt;br /&gt;_________________________________________________________________________&lt;br /&gt;Sindhi ask to Taxi Driver: CP wale gurudware jayega kya?&lt;br /&gt;Taxi Driver: Han jaon ga.&lt;br /&gt;Sindhi ne jaib se lunchbox nikala or kaha:&lt;br /&gt;Wapsi main langar ka khana lete aana.&lt;br /&gt;_________________________________________________________________________&lt;br /&gt;Sindhi ko bhoot charh gaya ,&lt;br /&gt;3 din baad bhoot khud ek ojha k paas gaya aur bola, Ojha sahab mujhe&lt;br /&gt;bahar Nikalo..! Warna me to bhookha hi mar jaon ga&lt;br /&gt;_________________________________________________________________________&lt;br /&gt;Titanic K Sath Sindhi Bhi Doob Raha Tha Aur Hans Bhi Raha Tha&lt;br /&gt;Dost: Oye Hans Kyun Raha Hai?&lt;br /&gt;Sindhi: Shukar Hai Main Ne Return Ticket Nahi Khareedi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-4685806307553759791?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/4685806307553759791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=4685806307553759791&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/4685806307553759791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/4685806307553759791'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2010/08/sindhi-jokes-now.html' title='Sindhi Jokes Now'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-2490647234607378367</id><published>2010-07-27T05:12:00.002+05:30</published><updated>2010-07-27T05:15:51.570+05:30</updated><title type='text'>Simplify your financial Life</title><content type='html'>Are you stuck and not able to manage your financial life?&lt;br /&gt;Are you earning well but still not able to save or even make good investments?&lt;br /&gt;Are you sick of managing your financials and often pay late fees on cards, phone bills etc.?&lt;br /&gt;Are you someone who wants to simplify and achieve goals to live financially happy?&lt;br /&gt;&lt;br /&gt;If any one of the above statements stands true for you…don’t worry at all. All you need is to ensure that you organize your financial life.&lt;br /&gt;&lt;br /&gt;Now, the question is HOW?&lt;br /&gt;One must understand that building long term wealth and financial well being is all about being organized and following some rules in life.&lt;br /&gt;If you follow certain set of rules, you will be set to achieve all your goals and be financially well off as well.&lt;br /&gt;&lt;br /&gt;Remember you can land yourself into a financial mess even if you earn really well, thus bear in mind that to create wealth its not important how much you earn but how organized you are. And to ensure that you create wealth with whatever you earn here are few steps to follow with your everyday financial instruments. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Bank Accounts&lt;/span&gt;&lt;br /&gt;•  Do not hold more than two accounts.&lt;br /&gt;•  Close your salary accounts when you leave the company or get them changed into your new company.&lt;br /&gt;•&lt;span style="font-weight:bold;"&gt;2. Loans&lt;/span&gt;  Request your employer to directly credit your salary into your account.&lt;br /&gt;•  Ensure your bank’s ATMs are closer to you or give you free access to other ATMs.&lt;br /&gt;•  Try to get an auto sweep fixed deposits whenever your account balance is more, as there is nothing better as it will give you more interest.&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;•  All your loans EMI should be less than 40% of your net take home.&lt;br /&gt;•  Emi dates should be after your salary credit dates.&lt;br /&gt;• Please try not taking more than 2 personal loans.&lt;br /&gt;• On your Home loans -opt for fixed if you get rates less than 9.25% fixed for entire tenure or opt for floating with low prepayment charges.&lt;br /&gt;•  Top on loans is good option rather than going for new banks.&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Credit Cards&lt;/span&gt;&lt;br /&gt;• Do not have more than 3 Credit cards.&lt;br /&gt;• Choose credit cards with offers, discounts in your type of spending i.e., fuel cards for those spend more on fuel or cash rewards for shopping freaks.&lt;br /&gt;• Always try to pay entire due on credit cards and never go revolving as interest rate is as high as 50%.&lt;br /&gt;• If not able to pay entire amount, go for EMIs on card payments.&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. Life Insurance&lt;/span&gt;&lt;br /&gt;•  Buy not more than 2-3 life insurance policies.&lt;br /&gt;• Understand your need for life Insurance, i.e. Tax saving, Retirement benefits, basic cover etc.&lt;br /&gt;• Understand how much life insurance you need and ensure that you don’t end up buying excessive insurance.&lt;br /&gt;- Those who are above 35 and are earning members should have one term&lt;br /&gt;plan atleast for there family and these plans are as low as 600 per month for&lt;br /&gt;30 lakhs. To Apply for term plan Click Here&lt;br /&gt;- Do not treat life insurance as investment plans.&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. Health Insurance&lt;/span&gt;&lt;br /&gt;•  Do opt for family insurance cover at least. They come as low as Rs 20 per day for entire family for 3 lakh. To Apply and Compare available Offers Click Here&lt;br /&gt;• Do not change companies as this will affect your existing waive-offs for pre existing disease.&lt;br /&gt;• Ensure your hospital next door is providing cashless health insurance from your company.&lt;br /&gt;    If you put your financials in order from the start you can avoid complexities of financial crisis. In case you have not provided right from the start remember it is never too late to put it in order. Just follow and make use of the everyday financial tools provided by www.deal4loans.com and www.bimadeals.com and live financially secured forever.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Basic rules of Financial Life.&lt;/span&gt;&lt;br /&gt;1. Ensure you plan your financial goals – For e.g. when will you buy your home, how much you need to save for your children so on and so forth.&lt;br /&gt;&lt;br /&gt;2. Ensure you save atleast 25% of your income and invest them in all categories. Keep your portfolio balanced; by investing 30% in Mutual funds, 25% in equities, 25% in fixed deposits and 25% in real estate.&lt;br /&gt;Get your financial planning done by a good certified planner and stick to rules and goals defined by them.&lt;br /&gt;&lt;br /&gt;3. Finally remember - Do not spend too much on Credit cards if you are not in position to pay. &lt;br /&gt;&lt;br /&gt;Disclaimer: The above information is collected from various sources. Readers are requested to investigate themselves &amp; take legal &amp; professional advice before entering any tie-ups&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-2490647234607378367?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/2490647234607378367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=2490647234607378367&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/2490647234607378367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/2490647234607378367'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2010/07/simplify-your-financial-life.html' title='Simplify your financial Life'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-8814444408468717769</id><published>2010-06-24T13:54:00.000+05:30</published><updated>2010-06-24T13:55:04.803+05:30</updated><title type='text'>Set JAVA_HOME / PATH</title><content type='html'>for single user&lt;br /&gt;&lt;br /&gt;Login to your account and open .bash_profile file&lt;br /&gt;$ vi ~/.bash_profile&lt;br /&gt;&lt;br /&gt;Set JAVA_HOME as follows using syntax export JAVA_HOME=&lt;path-to-java&gt;. If your path is set to /usr/java/jdk1.5.0_07/bin/java, set it as follows:&lt;br /&gt;export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java&lt;br /&gt;&lt;br /&gt;Set PATH as follows:&lt;br /&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;br /&gt;&lt;br /&gt;Save and close the file. Just logout and login back to see new changes:&lt;br /&gt;$ echo $JAVA_HOME&lt;br /&gt;$ echo $PATH&lt;br /&gt;&lt;br /&gt;Tip: Use the following command to find out exact path to which java executable under UNIX / Linux:&lt;br /&gt;$ which java&lt;br /&gt;&lt;br /&gt;Please note that the file ~/.bashrc is similar, with the exception that ~/.bash_profile runs only for Bash login shells and .bashrc runs for every new Bash shell.&lt;br /&gt;&lt;br /&gt;Set JAVA_HOME / PATH for all user&lt;br /&gt;&lt;br /&gt;You need to setup global config in /etc/profile OR /etc/bash.bashrc file for all users:&lt;br /&gt;# vi /etc/profile&lt;br /&gt;&lt;br /&gt;Next setup PATH / JAVA_PATH variables as follows:&lt;br /&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;br /&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-8814444408468717769?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/8814444408468717769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=8814444408468717769&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/8814444408468717769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/8814444408468717769'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2010/06/set-javahome-path.html' title='Set JAVA_HOME / PATH'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-5037086338149267361</id><published>2010-06-12T09:41:00.000+05:30</published><updated>2011-07-28T10:16:49.608+05:30</updated><title type='text'>Install Spring IDE for Eclipse 3.4</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;Installing Spring IDE on Eclipse 3.4 (RC1) was not quite as straight forward as I thought it would have been, so here are a few more details on how to do it.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Help-&amp;gt;Software Update&lt;/li&gt;&lt;li&gt;Click&amp;nbsp;&lt;b&gt;Available Software&lt;/b&gt;&amp;nbsp;tab&lt;/li&gt;&lt;li&gt;Click&amp;nbsp;&lt;b&gt;Add Site&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Enter&amp;nbsp;&lt;code style="font-size: 14px;"&gt;&lt;a href="http://springide.org/updatesite"&gt;http://springide.org/updatesite&lt;/a&gt;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;Click checkbox next to&amp;nbsp;&lt;code style="font-size: 14px;"&gt;&lt;a href="http://springide.org/updatesite"&gt;http://springide.org/updatesite&lt;/a&gt;&lt;/code&gt;&amp;nbsp;to expand.&lt;/li&gt;&lt;li&gt;Click checkbox to uncheck, then click again to check parent and children [Eclipse bug&amp;nbsp;&lt;a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=232112"&gt;232112&lt;/a&gt;].&lt;/li&gt;&lt;li&gt;Click&amp;nbsp;&lt;b&gt;Install&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Software validity warning message will come up - click&amp;nbsp;&lt;b&gt;Yes&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Resolving dependencies will moan with:&lt;br /&gt;&lt;blockquote&gt;(Spring IDE Bean Support (required),Spring IDE Dependencies (only for Eclipse 3.2.x),Spring IDE OSGi Extension (optional),Spring IDE Web Flow Extension (optional),Spring IDE Security Extension (optional),Spring IDE AOP Extension (optional),Spring IDE JavaConfig Extension (optional),Spring IDE Autowire Extension (optional),Spring IDE Mylyn Integration,Spring IDE AJDT Integration (optional),Spring IDE Security Extension Developer Resources,Spring IDE Autowire Extension Developer Resources,Spring IDE AOP Developer Resources,Spring IDE OSGi Extension Developer Resources,Spring IDE Webflow Developer Resources,Spring IDE Mylyn Integration Sources,Spring IDE JavaConfig Developer Resources,Spring IDE Sources,Spring IDE AOP Developer Resources) will be ignored.&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Uncheck&amp;nbsp;&lt;b&gt;Spring IDE Dependencies (only for Eclipse 3.2.x)&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Screen will re-calculate successfully and the&amp;nbsp;&lt;b&gt;Finish&lt;/b&gt;&amp;nbsp;button will appear, click it&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-5037086338149267361?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/5037086338149267361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=5037086338149267361&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/5037086338149267361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/5037086338149267361'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2011/06/install-spring-ide-for-eclipse-34.html' title='Install Spring IDE for Eclipse 3.4'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-305434820955262427</id><published>2010-05-24T15:40:00.000+05:30</published><updated>2010-05-24T15:41:54.416+05:30</updated><title type='text'>The Power of Mind</title><content type='html'>Do you know that you have within you the power of life and death? You can will yourself for success or you can will yourself to die! That is the power of subconscious mind!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;THE MAN WHO WILLED HIMSELF TO DIE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There was a man who worked for the railroad. One day as he went into the freezer compartment to do his routine work, the door accidentally closed and he found himself trapped in the compartment. He shouted for help but no one heard him since it was past midnight. He tried to break down the door but he could not. As he lay in the freezer compartment, he began to feel colder, and colder. Then he began to feel weaker, and weaker, and he wrote on the wall of the compartment, “I am feeling colder, and colder; and I am getting weaker, and weaker. I am dying, and this may be my last words”. In the morning when the other workers opened up the compartment they found him dead. The sad twist to the&lt;br /&gt;above story is that the freezing apparatus in the compartment had broke down a few days earlier. The poor worker did not know about the damaged freezing&lt;br /&gt;apparatus and in his mind the freezing apparatus was working perfectly. He felt cold, got weaker and literally willed himself to die.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SUCCESS PRINCIPLES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Our sub-conscious mind can be cheated. The sub-conscious mind can only accept and act on information passed to it by the conscious mind. It has no capacity to reject or decline any instructions or information passed to it by the conscious mind. In the case of the poor worker, he consciously thought that he was getting colder, weaker and dying and the sub-conscious mind accepted the above instructions and affected his physical body. That was how he willed himself to die.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;MOTIVATIONAL QUOTE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;"Slow down and enjoy life. It's not only the scenery you miss by going too fast, you also miss the sense of where you are going and why."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-305434820955262427?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/305434820955262427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=305434820955262427&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/305434820955262427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/305434820955262427'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2010/05/power-of-mind.html' title='The Power of Mind'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-7244406492939731911</id><published>2010-05-24T15:36:00.000+05:30</published><updated>2010-05-24T15:38:11.636+05:30</updated><title type='text'>The Story of Latiff....!!!</title><content type='html'>Latiff was the poorest beggar of the village. Every night he slept in the hall of a different house, in front of the town square.&lt;br /&gt;&lt;br /&gt;Every day he had a short rest under a different tree, with a widespread hand and a far away look in his thoughts. Every evening he would eat the alms or the crusts that some charitable person brought over to him.&lt;br /&gt;&lt;br /&gt;Without embargo, in spite of his aspect and the way his days happened, Latiff was considered by all to be the wisest man of town, perhaps not so much because of his intelligence, but by what he had lived.&lt;br /&gt;&lt;br /&gt;One sunny morning the king appeared in the square, surrounded by his guards, walking between the fruits and trinkets looking for nothing.&lt;br /&gt;&lt;br /&gt;Laughing at the merchants and at the buyers, the king and his entourage almost stumbled over Latiff, who was dozing in the shade of a holm oak. Someone told the king that he was in front of the poorest of his subdits, but also in front of one of the most respected men because of his knowledge.&lt;br /&gt;&lt;br /&gt;The king, entertained, approached the beggar and said to him, "If you answer my question, I will give you this golden coin."&lt;br /&gt;&lt;br /&gt;Latiff looked at it, almost contemptuously, and said to him, "You can keep your coin, what will I do with it anyway? What is your question?"&lt;br /&gt;&lt;br /&gt;The king felt defied by the response and instead of a banal question, he asked a question that was bothering him for days and that he could not solve; a problem of goods and resources that analysts had not solved for him.&lt;br /&gt;&lt;br /&gt;Latiff's response was wise and creative. The king was surprised; he left the coin at the feet of the beggar and continued on his way to the market, pondering the events.&lt;br /&gt;&lt;br /&gt;The next day he came back directly to where Latiff was resting; this time under an olive grove. Again the king posed a question and again Latiff answered it rapidly and wisely. The king was surprised again at so much intelligence. In a humble act, he took off his sandals and sat in front of Latiff.&lt;br /&gt;&lt;br /&gt;"Latiff, I need you", the king said to him. "I am overwhelmed by the decisions that as king I must make. I do not want to harm my people and neither do I want to be an evil king. I ask you to come to the palace to be my adviser. I promise you that you should not fear at all, that you will be respected and that you will be able to leave whenever you want... Please."&lt;br /&gt;&lt;br /&gt;Whether it was out of compassion, for service or for surprise, Latiff, after thinking a few minutes, accepted the proposal of the king.&lt;br /&gt;&lt;br /&gt;That same evening Latiff came into the palace, where immediately a luxurious room was assigned to him. The room was close to the king's room and had a tub filled with essences and lukewarm water waiting for him.&lt;br /&gt;&lt;br /&gt;During the following weeks the consultations with the king became habitual. Every day, in the morning, and in the evening, the monarch ordered his new adviser to consult him on the problems of the kingdom, on his own life or on his spiritual doubts.&lt;br /&gt;&lt;br /&gt;Latiff always answered with clarity and precision and became the favourite speaker of the king. Three months after his arrival, there wasn't any decision made by the monarch without consulting his valued adviser first.&lt;br /&gt;&lt;br /&gt;Obviously this unleashed the jealousy of all the other advisers. They saw in the beggar a threat against their own influences.&lt;br /&gt;&lt;br /&gt;One day all of the advisers asked for a private hearing with the king. Very circumspect and with gravity they said to him, "Your friend Latif, as you call him, is conspiring to demolish you."&lt;br /&gt;&lt;br /&gt;The king said, "I cannot believe it."&lt;br /&gt;&lt;br /&gt;"You can confirm it with your own eyes", they said. "Every evening, at about five o'clock, Latiff slinks away from the palace up to the south wing and he enters a dark room. He meets with someone undercover, we do not know with whom. We have asked him where he was going all these evenings. He gave us evasive answers. His attitude alerted us to his conspiracy."&lt;br /&gt;&lt;br /&gt;The king felt defrauded and hurt. He had to confirm these versions.&lt;br /&gt;&lt;br /&gt;That evening, at five o'clock, he was waiting for Latiff under the stairs. He saw Latiff come to the door and look all around, with the key hanging from his neck. He opened the wooden door and slinked secretly into the room.&lt;br /&gt;&lt;br /&gt;"Did you see him?" The other advisers shouted. "You saw him?"&lt;br /&gt;&lt;br /&gt;Followed by his personal guard, the monarch struck the door.&lt;br /&gt;&lt;br /&gt;"Who is it?" Latiff asked from the inside.&lt;br /&gt;&lt;br /&gt;"I am the King" he said, "Open the door to me."&lt;br /&gt;&lt;br /&gt;Latiff opened the door. There was nobody inside, except Latiff. No other doors or windows, no secret doors or any furniture where someone could hide.&lt;br /&gt;&lt;br /&gt;Inside the room, there was only a worn out wooden plate; in a corner, a walking stick and in the center of the room a shabby tunic hanging by a hook in the roof.&lt;br /&gt;&lt;br /&gt;"Are you conspiring against me Latiff?" the King asked.&lt;br /&gt;&lt;br /&gt;"How could I, your Majesty?" Latiff answered. "No way. Why would I do that? Only six months ago, when I first came here, the only thing that I had was this tunic, this plate and this walking stick. Now I feel so comfortable in the clothes that I wear, I feel so comfortable with the bed that I sleep in, I am so flattered by the respect that you give me and so fascinated by the power you allow me... to be close you ... that I come here every day to touch this old tunic to make sure that I do Remember...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;WHO I AM AND WHERE I CAME FROM.&lt;br /&gt;&lt;br /&gt;True:&lt;br /&gt;&lt;br /&gt;We must never forget who we are and where we come from; life turns and we can always return to the same place&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-7244406492939731911?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/7244406492939731911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=7244406492939731911&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/7244406492939731911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/7244406492939731911'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2010/05/story-of-latiff.html' title='The Story of Latiff....!!!'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-682774958465554831</id><published>2010-05-24T15:28:00.002+05:30</published><updated>2010-05-24T15:29:30.305+05:30</updated><title type='text'>THE SECRET OF SUCCESS</title><content type='html'>There was once a boy who wanted to seek the secret of success. One day he approached a wise man living up in he mountain. When he found the wise man at the hut, he asked, “Wise man, can you tell me the secret to becoming successful in life?” The wise man was silent for a while. After a moment of silence, the wise man led the young lad to a nearby river. They kept walking into the river until the boy’s head was fully submerged in the water. The boy struggled to keep his head above the water. To his astonishment, the wise man did not help him. Instead, the wise man held the boy’s head in the water. After a few minutes the wise man pulled the boy out of the water and they proceeded to walk back to the hut. At the hut the wise man asked the young boy what he desired most when his head was submerged in water.  To this the young boy quickly responded, “Of course, I wanted to breathe, you old fool!” To which the wise man replied, “Son, if you desire success as much as you wanted to breathe, then you would have found the true secret of success.”                                                        &lt;br /&gt;                                                                            &lt;br /&gt;                                                                            &lt;br /&gt; SUCCESS PRINCIPLES                                                         &lt;br /&gt;                                                                            &lt;br /&gt; Success is a matter of choice. If we have enough strong reasons, there is nothing that we cannot do. Once we have the reasons to do something, we will surely find                      &lt;br /&gt; the ways to do it. A mere wish would not make things happen. It is a burning desire, turned into an obsession that will generate the energy to bring you to                    &lt;br /&gt; achieve any goal that you may desire.                                      &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;**************************************************************************************************************************************************************************&lt;br /&gt;&lt;br /&gt;MOTIVATIONAL QUOTE                                                         &lt;br /&gt;                                                                            &lt;br /&gt;"Not the maker of plans and promises, but rather the one who offers faithful service in small matters. This is the person who is most likely to achieve what is good and lasting."                                                         &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-682774958465554831?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/682774958465554831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=682774958465554831&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/682774958465554831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/682774958465554831'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2010/05/secret-of-success.html' title='THE SECRET OF SUCCESS'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-7247098625454358231</id><published>2010-05-24T15:24:00.001+05:30</published><updated>2010-05-24T15:25:48.537+05:30</updated><title type='text'>THE GENERAL AND THE BOY</title><content type='html'>Once, there was a General who wanted to cross a river. He was unsure of the depth of the river, and whether his horse could make it across the river. He looked around for help and saw a little boy nearby. He asked the boy for advice. The boy looked at the size of the General’s horse and paused for a moment. He then confidently told the General that it is safe for the                       &lt;br /&gt;General and his horse to cross the river. The General proceeded to cross the river on his horse. As he approached the middle of the river, he suddenly                            &lt;br /&gt;realized that the river was, in fact, very deep, and he almost drowned. After he recovered from his shock he shouted at the boy and threatened to punish him. The boy was stunned and innocently replied, “But General, I                    &lt;br /&gt;see my ducks crossing the river everyday without any problem, and my ducks have shorter legs than your horse”.                                                                    &lt;br /&gt;                                                                            &lt;br /&gt; SUCCESS PRINCIPLES                                                         &lt;br /&gt;                                                                            &lt;br /&gt; If you need advice, get it from people who know what they are talking about. Napoleon Hill says that, “opinion is the cheapest commodity on earth”. Make sure you review for yourself the opinion of others before you act on them.               &lt;br /&gt;&lt;br /&gt;***********************************************************************************&lt;br /&gt;***********************************************************************************&lt;br /&gt;&lt;br /&gt;MOTIVATIONAL QUOTE                                                         &lt;br /&gt;                                                                            &lt;br /&gt; "It is not the straining for great things that is most effective; it is the doing of the little things, the common duties, a little better and better."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2245837879707671146-7247098625454358231?l=premtimes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://premtimes.blogspot.com/feeds/7247098625454358231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2245837879707671146&amp;postID=7247098625454358231&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/7247098625454358231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2245837879707671146/posts/default/7247098625454358231'/><link rel='alternate' type='text/html' href='http://premtimes.blogspot.com/2010/05/general-and-boy.html' title='THE GENERAL AND THE BOY'/><author><name>Prem Kumar Jha</name><uri>http://www.blogger.com/profile/08323308922257297987</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2245837879707671146.post-6515154514877468049</id><published>2010-04-19T12:26:00.001+05:30</published><updated>2011-07-28T10:28:46.352+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>JAVA Interview Question</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: red; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the difference between an Interface and an Abstract class?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Abstract class can not be final.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Abstract class Can not instantiated.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the purpose of garbage collection in Java, and when is it used?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Describe synchronization in respect to multithreading.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;4.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Explain different way of using thread?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;5.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are pass by reference and passby value?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;6.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is HashMap and Map?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Map is Interface and Hashmap is class that implements that.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;7.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Difference between HashMap and HashTable?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;8.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Difference between Vector and ArrayList?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Vector is synchronized whereas arraylist is not.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;9.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Difference between Swing and Awt?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;10.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the difference between a constructor and a method?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;11.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is an Iterator?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk through a collection of objects, operating on each object in turn. Remember when using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself while traversing an Iterator.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;12.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: public : Public class is visible in other packages, field is visible everywhere (class must be public too)&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;private : Private variables or methods may be used only by an instance of the same class that declares the variable or method, A private feature may only be accessed by the class that owns the feature.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;protected : Is available to all classes in the same package and also available to all subclasses of the class that owns the protected feature.This access is provided even to subclasses that reside in a different package from the class that owns the protected feature.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;default :What you get by default ie, without any access modifier (ie, public private or protected).It means that it is visible to all within a particular package.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;13.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is an abstract class?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract itself, and must be declared as such.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;14.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is static in java?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;15.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is final?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;16.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What if the main method is declared as private?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The program compiles properly but at runtime it will give "Main method not public." message.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;17.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What if the static modifier is removed from the signature of the main method?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Program compiles. But at runtime throws an error "NoSuchMethodError".&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;18.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What if I write static public void instead of public static void?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Program compiles and runs properly.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;19.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What if I do not provide the String array as the argument to the method?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Program compiles but throws a runtime error "NoSuchMethodError".&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;20.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the first argument of the String array in main method?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;21.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: It is empty. But not null.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;22.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How can one prove that the array is not null but empty using one line of code?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Print args.length. It will print 0. That means it is empty. But if it would have been null then it would have thrown a NullPointerException on attempting to print args.length.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;23.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What environment variables do I need to set on my machine in order to be able to run Java programs?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: CLASSPATH and PATH are the two variables.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;24.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can an application have multiple classes having main method?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes having main method.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;25.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can I have multiple main methods in the same class?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No the program fails to compile. The compiler says that the main method is already defined in the class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;26.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Do I need to import java.lang package any time? Why ?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No. It is by default loaded internally by the JVM.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;27.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can I import same package/class twice? Will the JVM load the package twice at runtime?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: One can import the same package or same class multiple times. Neither compiler nor JVM complains abt it. And the JVM will internally load the class only once no matter how many times you import the same class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;28.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are Checked and UnChecked Exception?&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: A checked exception is some subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Making an exception checked forces client programmers to deal with the possibility that the exception will be thrown. eg, IOException thrown by java.io.FileInputStream's read() method•&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Unchecked exceptions are RuntimeException and any of its subclasses. Class Error and its subclasses also are unchecked. With an unchecked exception, however, the compiler doesn't force client programmers either to catch the exception or declare it in a throws clause. In fact, client programmers may not even know that the exception could be thrown. eg, StringIndexOutOfBoundsException thrown by String's charAt() method• Checked exceptions must be caught at compile time. Runtime exceptions do not need to be. Errors often cannot be.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;29.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is Overriding?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: When a class defines a method using the same name, return type, and arguments as a method in its superclass, the method in the class overrides the method in the superclass.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;When the method is invoked for an object of the class, it is the new definition of the method that is called, and not the method definition from superclass. Methods may be overridden to be more public, not more private.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;30.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are different types of inner classes?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Nested top-level classes, Member classes, Local classes, Anonymous classes&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Nested top-level classes- If you declare a class within a class and specify the static modifier, the compiler treats the class just like any other top-level class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Any class outside the declaring class accesses the nested class with the declaring class name acting similarly to a package. eg, outer. inner. Top-level inner classes implicitly have access only to static variables. There can also be inner interfaces. All of these are of the nested top-level variety.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Member classes - Member inner classes are just like other member methods and member variables and access to the member class is restricted, just like methods and variables. This means public member class acts similarly to a nested top-level class. The primary difference between member classes and nested top-level classes is that member classes have access to the specific instance of the enclosing class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Local classes - Local classes are like local variables, specific to a block of code. Their visibility is only within the block of their declaration. In order for the class to be useful beyond the declaration block, it would need to implement a&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;more publicly available interface.Because local classes are not members, the modifiers public, protected, private, and static are not usable.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Anonymous classes - Anonymous inner classes extend local inner classes one level further. As anonymous classes have no name, you cannot provide a constructor.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;31.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Yes the imports are checked for the semantic validity at compile time. The code containing above line of import will not compile. It will throw an error saying,can not resolve symbol&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;symbol : class ABCD&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;location: package io&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;import java.io.ABCD;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;32.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No you will have to import the subpackages explicitly. Importing com.MyTest.* will import classes in the package MyTest only. It will not import any class in any of it's subpackage.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;33.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the difference between declaring a variable and defining a variable?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: In declaration we just mention the type of the variable and it's name. We do not initialize it. But defining means declaration + initialization.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;e.g String s; is just a declaration while String s = new String ("abcd"); Or String s = "abcd"; are both definitions.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;34.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the default value of an object reference declared as an instance variable?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: null unless we define it explicitly.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;35.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can a top level class be private or protected?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No. A top level class can not be private or protected. It can have either "public" or no modifier. If it does not have a modifier it is supposed to have a default access.If a top level class is declared as private the compiler will complain that the "modifier private is not allowed here". This means that a top level class can not be private. Same is the case with protected.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;36.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What type of parameter passing does Java support?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: In Java the arguments are always passed by value .&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;37.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Primitive data types are passed by reference or pass by value?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Primitive data types are passed by value.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;38.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Objects are passed by value or by reference?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Java only supports pass by value. With objects, the object reference itself is passed by value and so both the original reference and parameter copy both refer to the same object .&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;39.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is serialization?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Serialization is a mechanism by which you can save the state of an object by converting it to a byte stream.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;40.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How do I serialize an object to a file?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The class whose instances are to be serialized should implement an interface Serializable. Then you pass the instance to the ObjectOutputStream which is connected to a fileoutputstream. This will save the object to a file.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;41.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Which methods of Serializable interface should I implement?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The serializable interface is an empty interface, it does not contain any methods. So we do not implement any methods.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;42.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How can I customize the seralization process? i.e. how can one have a control over the serialization process?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Yes it is possible to have control over serialization process. The class should implement Externalizable interface. This interface contains two methods namely readExternal and writeExternal. You should implement these methods and write the logic for customizing the serialization process.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;43.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the common usage of serialization?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Whenever an object is to be sent over the network, objects need to be serialized. Moreover if the state of an object is to be saved, objects need to be serilazed.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;44.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is Externalizable interface?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Externalizable is an interface which contains two methods readExternal and writeExternal. These methods give you a control over the serialization mechanism. Thus if your class implements this interface, you can customize the serialization process by implementing these methods.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;45.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: When you serialize an object, what happens to the object references included in the object?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The serialization mechanism generates an object graph for serialization. Thus it determines whether the included object references are serializable or not. This is a recursive process. Thus when an object is serialized, all the included objects are also serialized along with the original object.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;46.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What one should take care of while serializing the object?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: One should make sure that all the included objects are also serializable. If any of the objects is not serializable then it throws a NotSerializableException.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;47.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What happens to the static fields of a class during serialization?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: There are three exceptions in which serialization does not necessarily read and write to the stream. These are&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l5 level1 lfo5; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Serialization ignores static fields, because they are not part of ay particular state .&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l5 level1 lfo5; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Base class fields are only hendled if the base class itself is serializable.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l5 level1 lfo5; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Transient fields.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;48.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Does Java provide any construct to find out the size of an object?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;49.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Give a simplest way to find out the time a method takes for execution without using any profiling tool?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Read the system time just before the method is invoked and immediately after method returns. Take the time difference, which will give you the time taken by a method for execution.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To put it in code...&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;long start = System.currentTimeMillis ();&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;method ();&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;long end = System.currentTimeMillis ();&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;System.out.println ("Time taken for execution is " + (end - start));&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Remember that if the time taken for execution is too small, it might show that it is taking zero milliseconds for execution. Try it on a method which is big enough, in the sense the one which is doing considerable amout of processing.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;50.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are wrapper classes?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Java provides specialized classes corresponding to each of the primitive data types. These are called wrapper classes. They are e.g. Integer, Character, Double etc.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;51.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Why do we need wrapper classes?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: It is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we create instances of these classes we can store them in any of the collection classes and pass them around as a collection. Also we can pass them around as method parameters where a method expects an object.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;52.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are checked exceptions?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Checked exception are those which the Java compiler forces you to catch. e.g. IOException are checked Exceptions.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;53.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are runtime exceptions?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Runtime exceptions are those exceptions that are thrown at runtime because of either wrong input data or because of wrong business logic etc. These are not checked by the compiler at compile time.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;54.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the difference between error and an exception?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: An error is an irrecoverable condition occurring at runtime. Such as OutOfMemory error. These JVM errors and you can not repair them at runtime. While exceptions are conditions that occur because of bad input etc. e.g. FileNotFoundException will be thrown if the specified file does not exist. Or a NullPointerException will take place if you try using a null reference. In most of the cases it is possible to recover from an exception (probably by giving user a feedback for entering proper values etc.).&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;55.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How to create custom exceptions?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Your class should extend class Exception, or some more specific type thereof.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;56.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: If I want an object of my class to be thrown as an exception object, what should I do?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The class should extend from Exception class. Or you can extend your class from some more precise exception type also.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;57.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exception object?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: One can not do anytihng in this scenarion. Because Java does not allow multiple inheritance and does not provide any exception interface as well.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;58.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How does an exception permeate through the code?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: An unhandled exception moves up the method stack in search of a matching When an exception is thrown from a code which is wrapped in a try block followed by one or more catch blocks, a search is made for matching catch block. If a matching type is found then that block will be invoked. If a matching type is not found then the exception moves up the method stack and reaches the caller method. Same procedure is repeated if the caller method is included in a try catch block. This process continues until a catch block handling the appropriate type of exception is found. If it does not find such a block then finally the program terminates.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;59.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are the different ways to handle exceptions?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: There are two ways to handle exceptions,&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l1 level1 lfo6; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;By wrapping the desired code in a try block followed by a catch block to catch the exceptions. and&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l1 level1 lfo6; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;List the desired exceptions in the throws clause of the method and let the caller of the method handle those exceptions.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;60.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the basic difference between the 2 approaches to exception handling.&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 72.75pt; mso-add-space: auto; mso-list: l3 level2 lfo4; text-align: justify; text-indent: -18.75pt; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;1&amp;gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;try catch block and&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 72.75pt; mso-add-space: auto; mso-list: l3 level2 lfo4; text-align: justify; text-indent: -18.75pt; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;2&amp;gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;specifying the candidate exceptions in the throws clause?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;When should you use which approach?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: In the first approach as a programmer of the method, you urself are dealing with the exception. This is fine if you are in a best position to decide should be done in case of an exception. Whereas if it is not the responsibility of the method to deal with it's own exceptions, then do not use this approach. In this case use the second approach. In the second approach we are forcing the caller of the method to catch the exceptions, that the method is likely to throw. This is often the approach library creators use. They list the exception in the throws clause and we must catch them. You will find the same approach throughout the java libraries we use.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;61.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Is it necessary that each try block must be followed by a catch block?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: It is not necessary that each try block must be followed by a catch block. It should be followed by either a catch block OR a finally block. And whatever exceptions are likely to be thrown should be declared in the throws clause of the method.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;62.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: If I write return at the end of the try block, will the finally block still execute?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Yes even if you write return as the last statement in the try block and no exception occurs, the finally block will execute. The finally block will execute and then the control return.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;63.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: If I write System.exit (0); at the end of the try block, will the finally block still execute?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No in this case the finally block will not execute because when you say System.exit (0); the control immediately goes out of the program, and thus finally never executes.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;64.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How are Observer and Observable used?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;65.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is synchronization and why is it important?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: With respect to multithreading, synchronization is the capability to control&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;66.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How does Java handle integer overflows and underflows?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;67.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Does garbage collection guarantee that a program will not run out of memory?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;68.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the difference between preemptive scheduling and time slicing?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;69.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: When a thread is created and started, what is its initial state?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: A thread is in the ready state after it has been created and started.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;70.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the purpose of finalization?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;71.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the Locale class?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;72.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the difference between a while statement and a do statement?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;73.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the difference between static and non-static variables?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;74.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How are this() and super() used with constructors?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: This() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;75.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are synchronized methods and synchronized statements?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;76.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is daemon thread and which method is used to create the daemon thread?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;77.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can applets communicate with each other?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: At this point in time applets may communicate with other applets running in the same virtual machine. If the applets are of the same class, they can communicate via shared static variables. If the applets are of different classes, then each will need a reference to the same class with static variables. In any case the basic idea is to pass the information back and forth through a static variable.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;An applet can also get references to all other applets on the same page using the getApplets() method of java.applet.AppletContext. Once you get the reference to an applet, you can communicate with it by using its public members.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;It is conceivable to have applets in different virtual machines that talk to a server somewhere on the Internet and store any data that needs to be serialized there. Then, when another applet needs this data, it could connect to this same server. Implementing this is non-trivial.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;78.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are the steps in the JDBC connection?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: While making a JDBC connection we go through the following steps :&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Step 1 : Register the database driver by using :&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Class.forName(\" driver classs for that specific database\" );&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Step 2 : Now create a database connection using :&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Connection con = DriverManager.getConnection(url,username,password);&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Step 3: Now Create a query using :&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Statement stmt = Connection.Statement(\"select * from TABLE NAME\");&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Step 4 : Exceute the query :&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;stmt.exceuteUpdate();&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;79.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How does a try statement determine which catch clause should be used to handle an exception?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the exceptionis executed. The remaining catch clauses are ignored.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;80.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can an unreachable object become reachable again?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: An unreachable object may become reachable again. This can happen when the object's finalize() method is invoked and the object performs an operation which causes it to become accessible to reachable objects.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;81.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What method must be implemented by all threads?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;82.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is Externalizable?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in)&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;83.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What modifiers are allowed for methods in an Interface?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Only public and abstract modifiers are allowed for methods in interfaces.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;84.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are some alternatives to inheritance?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Delegation is an alternative to inheritance. Delegation means that you include an instance of another class as an instance variable, and forward messages to the instance. It is often safer than inheritance because it forces you to think about each message you forward, because the instance is of a known class, rather than a new class, and because it doesn't force you to accept all the methods of the super class: you can provide only the methods that really make sense. On the other hand, it makes you write more code, and it is harder to re-use (because it is not a subclass).&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;85.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What does it mean that a method or field is "static"?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Static variables and methods are instantiated only once per class. In other words they are class variables, not instance variables. If you change the value of a static variable in a particular object, the value of that variable changes for all instances of that class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Static methods can be referenced with the name of the class rather than the name of a particular object of the class (though that works too). That's how library methods like System.out.println() work out is a static field in the java.lang.System class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;86.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the catch or declare rule for method declarations?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: If a checked exception may be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;87.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Is Empty .java file a valid source file?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Yes, an empty .java file is a perfectly valid source file.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;88.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can a .java file contain more than one java classes?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Yes, a .java file contain more than one java classes, provided at the most one of them is a public class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;89.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Is String a primitive data type in Java?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No String is not a primitive data type in Java, even though it is one of the most extensively used object. Strings in Java are instances of String class defined in java.lang package.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;90.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Is main a keyword in Java?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No, main is not a keyword in Java.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;91.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Is next a keyword in Java?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No, next is not a keyword.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;92.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Is delete a keyword in Java?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No, delete is not a keyword in Java. Java does not make use of explicit destructors the way C++ does.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;93.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Is exit a keyword in Java?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No. To exit a program explicitly you use exit method in System object.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;94.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What happens if you dont initialize an instance variable of any of the primitive types in Java?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Java by default initializes it to the default value for that primitive type. Thus an int will be initialized to 0, a boolean will be initialized to false.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;95.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What will be the initial value of an object reference which is defined as an instance variable?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The object references are all initialized to null in Java. However in order to do anything useful with these references, you must set them to a valid object, else you will get NullPointerExceptions everywhere you try to use such default initialized references.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;96.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What are the different scopes for Java variables?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The scope of a Java variable is determined by the context in which the variable is declared. Thus a java variable can have one of the three scopes at any given point in time.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l0 level1 lfo7; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Instance : - These are typical object level variables, they are initialized to default values at the time of creation of object, and remain accessible as long as the object accessible.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l0 level1 lfo7; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Local : - These are the variables that are defined within a method. They remain accessbile only during the course of method execution. When the method finishes execution, these variables fall out of scope.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l0 level1 lfo7; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Static: - These are the class level variables. They are initialized when the class is loaded in JVM for the first time and remain there as long as the class remains loaded. They are not tied to any particular object instance.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;97.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What is the default value of the local variables?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: The local variables are not initialized to any default value, neither primitives nor object references. If you try to use these variables without initializing them explicitly, the java compiler will not compile the code. It will complain abt the local varaible not being initilized..&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;98.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: How many objects are created in the following piece of code?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;MyClass c1, c2, c3;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;c1 = new MyClass ();&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;c3 = new MyClass ();&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Only 2 objects are created, c1 and c3. The reference c2 is only declared and not initialized.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;99.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can a public class MyClass be defined in a source file named YourClass.java?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: No the source file name, if it contains a public class, must be the same as the public class name itself with a .java extension.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;100.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: Can main method be declared final?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: Yes, the main method can be declared final, in addition to being public static.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;101.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What will be the output of the following statement?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;System.out.println ("1" + 3);&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: It will print 13.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;102.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Q: What will be the default values of all the elements of an array defined as an instance variable?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A: If the array is an array of primitive types, then all the elements of the array will be initialized to the default value corresponding to that primitive type. e.g. All the elements of an array of int will be initialized to 0, while that of boolean type will be initialized to false. Whereas if the array is an array of references (of any type), all the elements will be initialized to null.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;103.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How could Java classes direct program messages to the system console, but error messages, say to a file?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both point at the system console. This how the standard output could be re-directed:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Stream st = new Stream(new FileOutputStream("output.txt")); System.setErr(st); System.setOut(st);&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;104.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What's the difference between an interface and an abstract class?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: An abstract class may contain code in method bodies, which is not allowed in an interface. With abstract classes, you have to inherit your class from it and Java does not allow multiple inheritance. On the other hand, you can implement multiple interfaces in your class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;105.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Why would you use a synchronized block vs. synchronized method?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Synchronized blocks place locks for shorter periods than synchronized methods.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;106.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Explain the usage of the keyword transient?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;107.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How can you force garbage collection?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: You can't force GC, but could request it by calling System.gc(). JVM does not guarantee that GC will be started immediately.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;108.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How do you know if an explicit object casting is needed?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: If you assign a superclass object to a variable of a subclass's data type, you need to do explicit casting. For example:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Object a; Customer b; b = (Customer) a;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;When you assign a subclass to a variable having a supeclass type, the casting is performed automatically.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;109.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What's the difference between the methods sleep() and wait()&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in the class Object and the method sleep() is defined in the class Thread.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Wait can be called only from synchronize&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Wait be release lock&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Object class method while sleep in thread method&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;110.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Can you write a Java class that could be used both as an applet as well as an application?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Yes. Add a main() method to the applet.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;111.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What's the difference between constructors and other methods?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;112.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Can you call one constructor from another if a class has multiple constructors&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Yes. Use this() syntax.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;113.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Explain the usage of Java packages.&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same names. Packages access level also allows you to protect data from being used by the non-authorized classes.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;114.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: 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;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: You need to add a directory or a jar file that contains the package directories to the CLASSPATH environment variable. Let's say a class Employee belongs to a package com.xyz.hr; and is located in the file c:\dev\com\xyz\hr\Employee.java. In this case, you'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;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;c:\&amp;gt;java com.xyz.hr.Employee&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;115.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What's the difference between J2SDK 1.5 and J2SDK 5.0?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: There's no difference, Sun Microsystems just re-branded this version.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;116.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What would you use to compare two String variables - the operator == or the method equals()?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: I'd use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;117.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Yes, it does. The FileNoFoundException is inherited from the IOException. Exception's subclasses have to be caught first.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;118.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Can an inner class declared inside of a method access local variables of this method?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: It's possible if these variables are final.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;119.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What can go wrong if you replace &amp;amp;&amp;amp; with &amp;amp; in the following code: String a=null; if (a!=null &amp;amp;&amp;amp; a.length()&amp;gt;10) {...}&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A single ampersand here would lead to a NullPointerException.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;120.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What's the main difference between a Vector and an ArrayList&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Java Vector class is internally synchronized and ArrayList is not.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;121.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: When should the method invokeLater()be used?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: This method is used to ensure that Swing components are updated through the event-dispatching thread.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;122.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How can a subclass call a method or a constructor defined in a superclass?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass's constructor.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;123.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What's the difference between a queue and a stack?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;124.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: 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;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: 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;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;125.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What comes to mind when you hear about a young generation in Java?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Garbage collection.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;126.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What comes to mind when someone mentions a shallow copy in Java?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Object cloning.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;127.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: If you're overriding the method equals() of an object, which other method you might also consider?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: hashCode()&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;128.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use: ArrayList or LinkedList?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: ArrayList&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;129.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How would you make a copy of an entire Java object with its state?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Have this class implement Cloneable interface and call its method clone().&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;130.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How can you minimize the need of garbage collection and make the memory use more effective?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Use object pooling and weak object references.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;131.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: If these classes are threads I'd consider notify() or notifyAll(). For regular classes you can use the Observer interface.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;132.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: You do not need to specify any access level, and Java will use a default package access level .&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;133.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: When you declare a method as abstract method ?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: When i want child class to implement the behavior of the method.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;134.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Can I call a abstract method from a non abstract method ?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Yes, We can call a abstract method from a Non abstract method in a Java abstract class&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;135.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the difference between an Abstract class and Interface in Java ? or can you explain when you use Abstract classes ?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Abstract classes let you define some behaviors; they force your subclasses to provide others. These abstract classes will provide the basic functionality of your application, child class which inherited this class will provide the functionality of the abstract methods in abstract class. When base class calls this method, Java calls the method defined by the child class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;An Interface can only declare constants and instance methods, but cannot implement default behavior.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Interfaces provide a form of multiple inheritances. A class can extend only one other class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Interfaces are limited to public methods and constants with no implementation. Abstract classes can have a partial implementation, protected parts, static methods, etc.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A Class may implement several interfaces. But in case of abstract class, a class may extend only one abstract class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Interfaces are slow as it requires extra indirection to find corresponding method in the actual class. Abstract classes are fast.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;136.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is user-defined exception in java ?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: User-defined expectations are the exceptions defined by the application developer which are errors related to specific application. Application Developer can define the user defined exception by inherite the Exception class as shown below. Using this class we can throw new exceptions.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java Example : &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;public class noFundException extends Exception { } Throw an exception using a throw statement: &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;public class Fund {&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;... &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;public Object getFunds() throws noFundException {&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;if (Empty()) throw new noFundException(); ... } }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;User-defined exceptions should usually be checked.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;137.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the difference between checked and Unchecked Exceptions in Java ?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: All predefined exceptions in Java are either a checked exception or an unchecked exception. Checked exceptions must be caught using try .. catch() block or we should throw the exception using throws clause. If you dont, compilation of program will fail.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java Exception Hierarchy +--------+ | Object | +--------+ | | +-----------+ | Throwable | +-----------+ / \ / \ +-------+ +-----------+ | Error | | Exception | +-------+ +-----------+ / | \ / | \ \________/ \______/ \ +------------------+ unchecked checked | RuntimeException | +------------------+ / | | \ \_________________/ unchecked&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;138.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Explain garbage collection ?&lt;/span&gt;&lt;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Garbage collection is an important part of Java's security strategy. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects from the memory. The name "garbage collection" implies that objects that are no longer needed by the program are "garbage" and can be thrown away. A more accurate and up-to-date metaphor might be "memory recycling." When an object is no longer referenced by the program, the heap space it occupies must be recycled so that the space is available for subsequent new objects. The garbage collector must somehow determine which objects are no longer referenced by the program and make available the heap space occupied by such unreferenced objects. In the process of freeing unreferenced objects, the garbage collector must run any finalizers of objects being freed.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;139.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How you can force the garbage collection ?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Garbage collection automatic process and can't be forced. We can call garbage collector in Java by calling System.gc() and Runtime.gc(), JVM tries to recycle the unused objects, but there is no guarantee when all the objects will garbage collected.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;140.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are the field/method access levels (specifiers) and class access levels ?&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Each field and method has an access level:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;private: accessible only in this class&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;(package): accessible only in this package&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;protected: accessible only in this package and in all subclasses of this class&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;public: accessible everywhere this class is available&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Similarly, each class has one of two possible access levels:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;(package): class objects can only be declared and manipulated by code in this package&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;public: class objects can be declared and manipulated by code in any package&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;141.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are the static fields &amp;amp; static Methods ?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: If a field or method defined as a static, there is only one copy for entire class, rather than one copy for each instance of class. static method cannot accecss non-static field or call non-static method&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Example Java Code&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;static int counter = 0;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A public static field or method can be accessed from outside the class using either the usual notation:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java-class-object.field-or-method-name&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;or using the class name instead of the name of the class object:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java- class-name.field-or-method-name&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;142.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are the Final fields &amp;amp; Final Methods ?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Fields and methods can also be declared final. A final method cannot be overridden in a subclass. A final field is like a constant: once it has been given a value, it cannot be assigned to again.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java Code&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;private static final int MAXATTEMPTS = 10;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;143.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Describe the wrapper classes in Java ?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Wrapper class is wrapper around a primitive data type. An instance of a wrapper class contains, or wraps, a primitive value of the corresponding type.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Following table lists the primitive types and the corresponding wrapper classes:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Primitive Wrapper&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;boolean java.lang.Boolean&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;byte java.lang.Byte&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;char java.lang.Character&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;double java.lang.Double&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;float java.lang.Float&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;int java.lang.Integer&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;long java.lang.Long&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;short java.lang.Short&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;void java.lang.Void&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;144.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are different types of inner classes ?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Inner classes nest within other classes. A normal class is a direct member of a package. Inner classes, which became available with Java 1.1, are four types&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Static member classes&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Member classes&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Local classes&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Anonymous classes&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Static member classes - a static member class is a static member of a class. Like any other static method, a static member class has access to all static methods of the parent, or top-level, class.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Member Classes - a member class is also defined as a member of a class. Unlike the static variety, the member class is instance specific and has access to any and all methods and members, even the parent's this reference.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Local Classes - Local Classes declared within a block of code and these classes are visible only within the block.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Anonymous Classes - These type of classes does not have any name and its like a local class&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java Anonymous Class Example public class SomeGUI extends JFrame { ... button member declarations ... protected void buildGUI() { button1 = new JButton(); button2 = new JButton(); ... button1.addActionListener( new java.awt.event.ActionListener() &amp;lt;------ Anonymous Class { public void actionPerformed(java.awt.event.ActionEvent e) { // do something } } ); &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;145.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are the uses of Serialization?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: In some types of applications you have to write the code to serialize objects, but in many cases serialization is performed behind the scenes by various server-side containers. These are some of the typical uses of serialization: &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To persist data for future use. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To send data to a remote computer using such client/server Java technologies as RMI or socket programming. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To "flatten" an object into array of bytes in memory. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To exchange data between applets and servlets. • To store user session in Web applications. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To activate/passivate enterprise java beans. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To send objects between the servers in a cluster. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;146.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: what is a collection ? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Collection is a group of objects. java.util package provides important types of collections. There are two fundamental types of collections they are Collection and Map. Collection types hold a group of objects, Eg. Lists and Sets where as Map types hold group of objects as key, value pairs Eg. HashMap and Hashtable.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;147.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: For concatenation of strings, which method is good, StringBuffer or String ?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: StringBuffer is faster than String for concatenation. Question: What is Runnable interface ? Are there any other ways to make a java program as multithred java program? Answer: There are two ways to create new kinds of threads: - Define a new class that extends the Thread class - Define a new class that implements the Runnable interface, and pass an object of that class to a Thread's constructor. - An advantage of the second approach is that the new class can be a subclass of any class, not just of the Thread class. Here is a very simple example just to illustrate how to use the second approach to creating threads: class myThread implements Runnable { public void run() { System.out.println("I'm running!"); } } public class tstRunnable { public static void main(String[] args) { myThread my1 = new myThread(); myThread my2 = new myThread(); new Thread(my1).start(); new Thread(my2).start(); }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;148.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How can i tell what state a thread is in ?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Prior to Java 5, isAlive() was commonly used to test a threads state. If isAlive() returned false the thread was either new or terminated but there was simply no way to differentiate between the two. Starting with the release of Tiger (Java 5) you can now get what state a thread is in by using the getState() method which returns an Enum of Thread.States. A thread can only be in one of the following states at a given point in time. NEW A Fresh thread that has not yet started to execute. RUNNABLE A thread that is executing in the Java virtual machine. BLOCKED A thread that is blocked waiting for a monitor lock. WAITING A thread that is wating to be notified by another thread. TIMED_WAITING A thread that is wating to be notified by another thread for a specific amount of time TERMINATED A thread whos run method has ended. The folowing code prints out all thread states. public class ThreadStates{ public static void main(String[] args){ Thread t = new Thread(); Thread.State e = t.getState(); Thread.State[] ts = e.values(); for(int i = 0; i &amp;lt; ts.length; i++){ System.out.println(ts[i]); } } }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;149.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What methods java providing for Thread communications ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Java provides three methods that threads can use to communicate with each other: wait, notify, and notifyAll. These methods are defined for all Objects (not just Threads). The idea is that a method called by a thread may need to wait for some condition to be satisfied by another thread; in that case, it can call the wait method, which causes its thread to wait until another thread calls notify or notifyAll. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;150.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the difference between notify and notify All methods ? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A call to notify causes at most one thread waiting on the same object to be notified (i.e., the object that calls notify must be the same as the object that called wait). A call to notifyAll causes all threads waiting on the same object to be notified. If more than one thread is waiting on that object, there is no way to control which of them is notified by a call to notify (so it is often better to use notifyAll than notify). &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;151.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is synchronized keyword? In what situations you will Use it?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Synchronization is the act of serializing access to critical sections of code. We will use this keyword when we expect multiple threads to access/modify the same data. To understand synchronization we need to look into thread execution manner. Threads may execute in a manner where their paths of execution are completely independent of each other. Neither thread depends upon the other for assistance. For example, one thread might execute a print job, while a second thread repaints a window. And then there are threads that require synchronization, the act of serializing access to critical sections of code, at various moments during their executions. For example, say that two threads need to send data packets over a single network connection. Each thread must be able to send its entire data packet before the other thread starts sending its data packet; otherwise, the data is scrambled. This scenario requires each thread to synchronize its access to the code that does the actual data-packet sending. If you feel a method is very critical for business that needs to be executed by only one thread at a time (to prevent data loss or corruption), then we need to use synchronized keyword. EXAMPLE Some real-world tasks are better modeled by a program that uses threads than by a normal, sequential program. For example, consider a bank whose accounts can be accessed and updated by any of a number of automatic teller machines (ATMs). Each ATM could be a separate thread, responding to deposit and withdrawal requests from different users simultaneously. Of course, it would be important to make sure that two users did not access the same account simultaneously. This is done in Java using synchronization, which can be applied to individual methods, or to sequences of statements. One or more methods of a class can be declared to be synchronized. When a thread calls an object's synchronized method, the whole object is locked. This means that if another thread tries to call any synchronized method of the same object, the call will block until the lock is released (which happens when the original call finishes). In general, if the value of a field of an object can be changed, then all methods that read or write that field should be synchronized to prevent two threads from trying to write the field at the same time, and to prevent one thread from reading the field while another thread is in the process of writing it. Here is an example of a BankAccount class that uses synchronized methods to ensure that deposits and withdrawals cannot be performed simultaneously, and to ensure that the account balance cannot be read while either a deposit or a withdrawal is in progress. (To keep the example simple, no check is done to ensure that a withdrawal does not lead to a negative balance.) public class BankAccount { private double balance; // constructor: set balance to given amount public BankAccount( double initialDeposit ) { balance = initialDeposit; } public synchronized double Balance( ) { return balance; } public synchronized void Deposit( double deposit ) { balance += deposit; } public synchronized void Withdraw( double withdrawal ) { balance -= withdrawal; } } Note: that the BankAccount's constructor is not declared to be synchronized. That is because it can only be executed when the object is being created, and no other method can be called until that creation is finished. There are cases where we need to synchronize a group of statements, we can do that using synchrozed statement. Java Code Example synchronized ( B ) { if ( D &amp;gt; B.Balance() ) { ReportInsuffucientFunds(); } else { B.Withdraw( D ); } }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;152.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is serialization ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Serialization is the process of writing complete state of java object into output stream, that stream can be file or byte array or stream associated with TCP/IP socket.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;153.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What does the Serializable interface do ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Serializable is a tagging interface; it prescribes no methods. It serves to assign the Serializable data type to the tagged class and to identify the class as one which the developer has designed for persistence. ObjectOutputStream serializes only those objects which implement this interface.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;154.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How do I serialize an object to a file ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: To serialize an object into a stream perform the following actions:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin: 0in 0in 0in 2in; mso-add-space: auto; mso-list: l3 level4 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Open one of the output streams, for exaample FileOutputStream&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 2in; mso-add-space: auto; mso-list: l3 level4 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Chain it with the ObjectOutputStream - Call the method writeObject() providingg the instance of a Serializable object as an argument.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin: 0in 0in 0in 2in; mso-add-space: auto; mso-list: l3 level4 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Close the streams&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java Code --------- &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;try{&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;fOut= new FileOutputStream("c:\\emp.ser"); &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;out = new ObjectOutputStream(fOut); &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;out.writeObject(employee); //serializing System.out.println("An employee is serialized into c:\\emp.ser"); &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;} catch(IOException e){&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;e.printStackTrace(); }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;155.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How do I deserilaize an Object?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: To deserialize an object, perform the following steps:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin: 0in 0in 0in 2in; mso-add-space: auto; mso-list: l3 level4 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Open an input stream&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 2in; mso-add-space: auto; mso-list: l3 level4 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Chain it with the ObjectInputStream - Call the method readObject() and cast the returned object to the class that is being deserialized.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 2in; mso-add-space: auto; mso-list: l3 level4 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Close the streams&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java Code &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;try{ fIn= new FileInputStream("c:\\emp.ser");&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 72.75pt; mso-add-space: auto; mso-list: l3 level2 lfo4; text-align: justify; text-indent: -18.75pt; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;2&amp;gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;in = new ObjectInputStream(fIn); //de-serializing employee&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 72.75pt; mso-add-space: auto; mso-list: l3 level2 lfo4; text-align: justify; text-indent: -18.75pt; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;3&amp;gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Employee emp = (Employee) in.readObject();&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 72.75pt; mso-add-space: auto; mso-list: l3 level2 lfo4; text-align: justify; text-indent: -18.75pt; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;4&amp;gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;System.out.println("Deserialized " + emp.fName + " " + emp.lName + " from emp.ser "); }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;catch(IOException e){&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;e.printStackTrace(); &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;}catch(ClassNotFoundException e){ &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;e.printStackTrace(); &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;156.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is Externalizable Interface ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer : Externalizable interface is a subclass of Serializable. Java provides Externalizable interface that gives you more control over what is being serialized and it can produce smaller object footprint. ( You can serialize whatever field values you want to serialize)&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;This interface defines 2 methods: readExternal() and writeExternal() and you have to implement these methods in the class that will be serialized. In these methods you'll have to write code that reads/writes only the values of the attributes you are interested in. Programs that perform serialization and deserialization have to write and read these attributes in the same sequence.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;157.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Explain garbage collection ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Garbage collection is an important part of Java's security strategy. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects from the memory. The name "garbage collection" implies that objects that are no longer needed by the program are "garbage" and can be thrown away. A more accurate and up-to-date metaphor might be "memory recycling." When an object is no longer referenced by the program, the heap space it occupies must be recycled so that the space is available for subsequent new objects. The garbagecollector must somehow determine which objects are no longer referenced by the program and make available the heap space occupied by such unreferenced objects. In the process of freeing unreferenced objects, the garbage collector must run any finalizers of objects being freed&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;158.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question : How you can force the garbage collection ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer : Garbage collection automatic process and can't be forced. We can call garbage collector in Java by calling System.gc() and Runtime.gc(), JVM tries to recycle the unused objects, but there is no guarantee when all the objects will garbage collected.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;159.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question : What are the field/method access levels (specifiers) and class access levels ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Each field and method has an access level:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;private: accessible only in this class&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;(package): accessible only in this package&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;protected: accessible only in this package and in all subclasses of this class&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;public: accessible everywhere this class is available&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Similarly, each class has one of two possible access levels:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;(package): class objects can only be declared and manipulated by code in this package&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;public: class objects can be declared and manipulated by code in any package&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;160.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are the static fields &amp;amp; static Methods ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: If a field or method defined as a static, there is only one copy for entire class, rather than one copy for each instance of class. static method cannot accecss non-static field or call non-static method&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Example Java Code&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;static int counter = 0;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;A public static field or method can be accessed from outside the class using either the usual notation:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java-class-object.field-or-method-name&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;or using the class name instead of the name of the class object:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java- class-name.field-or-method-name&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;161.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are the Final fields &amp;amp; Final Methods ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Fields and methods can also be declared final. A final method cannot be overridden in a subclass. A final field is like a constant: once it has been given a value, it cannot be assigned to again.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Java Code&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;private static final int MAXATTEMPTS = 10;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;162.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are the uses of Serialization? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: In some types of applications you have to write the code to serialize objects, but in many cases serialization is performed behind the scenes by various server-side containers. These are some of the typical uses of serialization: &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To persist data for future use. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To send data to a remote computer using such client/server Java technologies as RMI or socket programming. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To "flatten" an object into array of bytes in memory.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To exchange data between applets and servlets. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To store user session in Web applications . &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To activate/passivate enterprise java beans. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin: 0in 0in 0in 117pt; mso-add-space: auto; mso-list: l3 level3 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;•&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;To send objects between the servers in a cluster. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;163.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: what is a collection ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Collection is a group of objects. java.util package provides important types of collections. There are two fundamental types of collections they are Collection and Map. Collection types hold a group of objects, Eg. Lists and Sets where as Map types hold group of objects as key, value pairs Eg. HashMap and Hashtable. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;164.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: For concatenation of strings, which method is good, StringBuffer or String ?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: StringBuffer is faster than String for concatenation. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;165.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is Runnable interface ? Are there any other ways to make a java program as multithred java program?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: There are two ways to create new kinds of threads: - Define a new class that extends the Thread class - Define a new class that implements the Runnable interface, and pass an object of that class to a Thread's constructor. - An advantage of the second approach is that the new class can be a subclass of any class, not just of the Thread class. Here is a very simple example just to illustrate how to use the second approach to creating threads: class myThread implements Runnable { public void run() { System.out.println("I'm running!"); } } public class tstRunnable { public static void main(String[] args) { myThread my1 = new myThread(); myThread my2 = new myThread(); new Thread(my1).start(); new Thread(my2).start(); } &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;166.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How can i tell what state a thread is in ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Prior to Java 5, isAlive() was commonly used to test a threads state. If isAlive() returned false the thread was either new or terminated but there was simply no way to differentiate between the two. Starting with the release of Tiger (Java 5) you can now get what state a thread is in by using the getState() method which returns an Enum of Thread.States. A thread can only be in one of the following states at a given point in time. NEW A Fresh thread that has not yet started to execute. RUNNABLE A thread that is executing in the Java virtual machine. BLOCKED A thread that is blocked waiting for a monitor lock. WAITING A thread that is wating to be notified by another thread. TIMED_WAITING A thread that is wating to be notified by another thread for a specific amount of time TERMINATED A thread whos run method has ended. The folowing code prints out all thread states. public class ThreadStates{ public static void main(String[] args){ Thread t = new Thread(); Thread.State e = t.getState(); Thread.State[] ts = e.values(); for(int i = 0; i &amp;lt; ts.length; i++){ System.out.println(ts[i]); } } } &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;167.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What methods java providing for Thread communications ? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Java provides three methods that threads can use to communicate with each other: wait, notify, and notifyAll. These methods are defined for all Objects (not just Threads). The idea is that a method called by a thread may need to wait for some condition to be satisfied by another thread; in that case, it can call the wait method, which causes its thread to wait until another thread calls notify or notifyAll. Question: What is the difference between notify and notify All methods ? Answer: A call to notify causes at most one thread waiting on the same object to be notified (i.e., the object that calls notify must be the same as the object that called wait). A call to notifyAll causes all threads waiting on the same object to be notified. If more than one thread is waiting on that object, there is no way to control which of them is notified by a call to notify (so it is often better to use notifyAll than notify). Question: What is synchronized keyword? In what situations you will Use it? Answer: Synchronization is the act of serializing access to critical sections of code. We will use this keyword when we expect multiple threads to access/modify the same data. To understand synchronization we need to look into thread execution manner. Threads may execute in a manner where their paths of execution are completely independent of each other. Neither thread depends upon the other for assistance. For example, one thread might execute a print job, while a second thread repaints a window. And then there are threads that require synchronization, the act of serializing access to critical sections of code, at various moments during their executions. For example, say that two threads need to send data packets over a single network connection. Each thread must be able to send its entire data packet before the other thread starts sending its data packet; otherwise, the data is scrambled. This scenario requires each thread to synchronize its access to the code that does the actual data-packet sending. If you feel a method is very critical for business that needs to be executed by only one thread at a time (to prevent data loss or corruption), then we need to use synchronized keyword. EXAMPLE Some real-world tasks are better modeled by a program that uses threads than by a normal, sequential program. For example, consider a bank whose accounts can be accessed and updated by any of a number of automatic teller machines (ATMs). Each ATM could be a separate thread, responding todeposit and withdrawal requests from different users simultaneously. Of course, it would be important to make sure that two users did not access the same account simultaneously. This is done in Java using synchronization, which can be applied to individual methods, or to sequences of statements. One or more methods of a class can be declared to be synchronized. When a thread calls an object's synchronized method, the whole object is locked. This means that if another thread tries to call any synchronized method of the same object, the call will block until the lock is released (which happens when the original call finishes). In general, if the value of a field of an object can be changed, then all methods that read or write that field should be synchronized to prevent two threads from trying to write the field at the same time, and to prevent one thread from reading the field while another thread is in the process of writing it. Here is an example of a BankAccount class that uses synchronized methods to ensure that deposits and withdrawals cannot be performed simultaneously, and to ensure that the account balance cannot be read while either a deposit or a withdrawal is in progress. (To keep the example simple, no check is done to ensure that a withdrawal does not lead to a negative balance.) public class BankAccount { private double balance; // constructor: set balance to given amount public BankAccount( double initialDeposit ) { balance = initialDeposit; } public synchronized double Balance( ) { return balance; } public synchronized void Deposit( double deposit ) { balance += deposit; } public synchronized void Withdraw( double withdrawal ) { balance -= withdrawal; } } Note: that the BankAccount's constructor is not declared to be synchronized. That is because it can only be executed when the object is being created, and no other method can be called until that creation is finished. There are cases where we need to synchronize a group of statements, we can do that using synchrozed statement. Java Code Example synchronized ( B ) { if ( D &amp;gt; B.Balance() ) { ReportInsuffucientFunds(); } else { B.Withdraw( D ); } }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;168.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is serialization ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Serialization is the process of writing complete state of java object into output stream, that stream can be file or byte array or stream associated with TCP/IP socket.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;169.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What does the Serializable interface do ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Serializable is a tagging interface; it prescribes no methods. It serves to assign the Serializable data type to the tagged class and to identify the class as one which the developer has designed for persistence. ObjectOutputStream serializes only those objects which implement this interface.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;170.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How do I serialize an object to a file ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: To serialize an object into a stream perform the following actions:&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin: 0in 0in 0in 2in; mso-add-space: auto; mso-list: l3 level4 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Open one of the output streams, for exxample FileOutputStream&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin: 0in 0in 0in 2in; mso-add-space: auto; mso-list: l3 level4 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Chain it with the ObjectOutputStream &amp;lt; - Call the method writeObject() providinng the instance of a Serializable object as an argument. - Close the streams Java Code --------- try{ fOut= new FileOutputStream("c:\\emp.ser"); out = new ObjectOutputStream(fOut); out.writeObject(employee); //serializing System.out.println("An employee is serialized into c:\\emp.ser"); } catch(IOException e){ e.printStackTrace(); } &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;171.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How do I deserilaize an Object?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: To deserialize an object, perform the following steps: - Open an input stream - Chain it with the ObjectInputStream - Call the method readObject() and cast the returned object to the class that is being deserialized. - Close the streams Java Code try{ fIn= new FileInputStream("c:\\emp.ser"); in = new ObjectInputStream(fIn); //de-serializing employee Employee emp = (Employee) in.readObject(); System.out.println("Deserialized " + emp.fName + " " + emp.lName + " from emp.ser "); }catch(IOException e){ e.printStackTrace(); }catch(ClassNotFoundException e){ e.printStackTrace(); }&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;172.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is Externalizable Interface ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Externalizable interface is a subclass of Serializable. Java provides Externalizable interface that gives you more control over what is being serialized and it can produce smaller object footprint. ( You can serialize whatever field values you want to serialize) This interface defines 2 methods: readExternal() and writeExternal() and you have to implement these methods in the class that will be serialized. In these methods you'll have to write code that reads/writes only the values of the attributes you are interested in. Programs that perform serialization and deserialization have to write and read these attributes in the same sequence. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;173.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is a transient variable? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A transient variable is a variable that may not be serialized.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;174.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Which containers use a border Layout as their default layout? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The window, Frame and Dialog classes use a border layout as their default layout. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;175.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Why do threads block on I/O?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Threads block on i/o (that is enters the waiting state) so that other threads may execute while the i/o Operation is performed. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;176.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How are Observer and Observable used?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;177.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is synchronization and why is it important? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;178.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Can a lock be acquired on a class?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpMiddle" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Yes, a lock can be acquired on a class. This lock is acquired on the class's Class &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;object. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;179.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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; &lt;/span&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What's new with the stop(), suspend() and resume() methods in JDK 1.2?&lt;/span&gt;&lt;/b&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The stop(), suspend() and resume() methods have been deprecated in JDK 1.2. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;180.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Is null a keyword?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The null value is not a keyword. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;181.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the preferred size of a component? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The preferred size of a component is the minimum component size that will allow the component to display normally.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;182.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What method is used to specify a container's layout?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The setLayout() method is used to specify a container's layout.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;183.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Which containers use a FlowLayout as their default layout?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The Panel and Applet classes use the FlowLayout as their default layout.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;184.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What state does a thread enter when it terminates its processing?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: When a thread terminates its processing, it enters the dead state. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;185.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the Collections API? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The Collections API is a set of classes and interfaces that support operations on collections of objects. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;186.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Which characters may be used as the second character of an identifier, but not as the first character of an identifier?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;187.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the List interface? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The List interface provides support for ordered collections of objects. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;188.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How does Java handle integer overflows and underflows? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: It uses those low order bytes of the result that can fit into the size of the type allowed by the operation. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;189.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the Vector class?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The Vector class provides the capability to implement a growable array of objects &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;190.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What modifiers may be used with an inner class that is a member of an outer class? &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;191.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is an Iterator interface?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The Iterator interface is used to step through the elements of a Collection. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;192.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the difference between the &amp;gt;&amp;gt; and &amp;gt;&amp;gt;&amp;gt; operators?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The &amp;gt;&amp;gt; operator carries the sign bit when shifting right. The &amp;gt;&amp;gt;&amp;gt; zero-fills bits that have been shifted out.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;193.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Which method of the Component class is used to set the position and size of a component?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: setBounds()&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;194.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bit and larger bit patterns.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;195.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the difference between yielding and sleeping?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;196.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Which java.util classes and interfaces support event handling?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The EventObject class and the EventListener interface support event processing.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;197.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Is sizeof a keyword?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The sizeof operator is not a keyword.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;198.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are wrapped classes?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Wrapped classes are classes that allow primitive types to be accessed as objects.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;199.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Does garbage collection guarantee that a program will not run out of memory?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;200.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What restrictions are placed on the location of a package statement within a source code file?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A package statement must appear as the first line in a source code file (excluding blank lines and comments).&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;201.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Can an object's finalize() method be invoked while it is reachable?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: An object's finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object's finalize() method may be invoked by other objects.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;202.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the immediate superclass of the Applet class?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Panel&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;203.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the difference between preemptive scheduling and time slicing?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;204.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Name three Component subclasses that support painting.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The Canvas, Frame, Panel, and Applet classes support painting.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;205.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the immediate superclass of the Dialog class?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Window&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;206.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is clipping?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Clipping is the process of confining paint operations to a limited area or shape.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;207.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is a native method?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A native method is a method that is implemented in a language other than Java.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;208.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Can a for statement loop indefinitely?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Yes, a for statement can loop indefinitely. For example, consider the following: for(;;) ;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;209.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What are order of precedence and associativity, and how are they used?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Order of precedence determines the order in which operators are evaluated in expressions. Associatity determines whether an expression is evaluated left-to-right or right-to-left&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;210.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: When a thread blocks on I/O, what state does it enter?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A thread enters the waiting state when it blocks on I/O.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;211.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: To what value is a variable of the String type automatically initialized?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The default value of an String type is null.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;212.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the catch or declare rule for method declarations?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: If a checked exception may be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;213.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the difference between a MenuItem and a CheckboxMenuItem?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The CheckboxMenuItem class extends the MenuItem class to support a menu item that may be checked or unchecked.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;214.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is a task's priority and how is it used in scheduling?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A task's priority is an integer value that identifies the relative order in which it should be executed with respect to other tasks. The scheduler attempts to schedule higher priority tasks before lower priority tasks.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;215.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What class is the top of the AWT event hierarchy?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The java.awt.AWTEvent class is the highest-level class in the AWT event-class hierarchy.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;216.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: When a thread is created and started, what is its initial state?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: A thread is in the ready state after it has been created and started.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;217.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Can an anonymous class be declared as implementing an interface and extending a class?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;218.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the range of the short type?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The range of the short type is -(2^15) to 2^15 - 1.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;219.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the range of the char type?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The range of the char type is 0 to 2^16 - 1.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;220.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: In which package are most of the AWT events that support the event-delegation model defined?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Most of the AWT-related events of the event-delegation model are defined in the java.awt.event package. The AWTEvent class is defined in the java.awt package.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;221.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the immediate superclass of Menu?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: MenuItem&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;222.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the purpose of finalization?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;223.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Which class is the immediate superclass of the MenuComponent class.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Object&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;224.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What invokes a thread's run() method?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: After a thread is started, via its start() method or that of the Thread class, the JVM invokes the thread's run() method when the thread is initially executed.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;225.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the difference between the Boolean &amp;amp; operator and the &amp;amp;&amp;amp; operator?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: If an expression involving the Boolean &amp;amp; operator is evaluated, both operands are evaluated. Then the &amp;amp; operator is applied to the operand. When an expression involving the &amp;amp;&amp;amp; operator is evaluated, the first operand is evaluated. If the first operand returns a value of true then the second operand is evaluated. The &amp;amp;&amp;amp; operator is then applied to the first and second operands. If the first operand evaluates to false, the evaluation of the second operand is skipped.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;226.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Name three subclasses of the Component class.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: Box.Filler, Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, or TextComponent&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;227.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the GregorianCalendar class?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The GregorianCalendar provides support for traditional Western calendars.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;228.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: Which Container method is used to cause a container to be laid out and redisplayed?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: validate()&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;229.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the purpose of the Runtime class?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The purpose of the Runtime class is to provide access to the Java runtime system.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;230.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: How many times may an object's finalize() method be invoked by the garbage collector?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: An object's finalize() method may only be invoked once by the garbage collector.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;231.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Question: What is the purpose of the finally clause of a try-catch-finally statement?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpLast" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;Answer: The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 15pt; margin-bottom: 0in; text-align: justify; text-justify: inter-ideograph;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraphCxSpFirst" style="line-height: 15pt; margin-bottom: 0in; mso-add-space: auto; mso-list: l3 level1 lfo4; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="color: black; font-family: Verdana, sans-serif; font-size: 10pt;"&gt;232.&lt;span style="font-family: &amp;quot;Times New Roman&amp;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;/b&gt;&lt;b style="mso-bid
