tag:blogger.com,1999:blog-11956316608237774752024-03-12T19:04:43.861-07:00Java JavaxAnonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.comBlogger154125tag:blogger.com,1999:blog-1195631660823777475.post-24118952333708980792013-08-18T02:44:00.001-07:002013-08-24T01:20:09.500-07:00Hibernate 4.2.5|3.6|3.5|3.2|3.1 Jar Files Download<div dir="ltr" style="text-align: left;" trbidi="on">
<span lang="EN"><span style="font-family: Arial, Helvetica, sans-serif;">hibernate jar download, <span lang="EN">download hibernate jar,
<span lang="EN">hibernate 3.0 jar download, <span lang="EN">hibernate 3.2 jar
download, <span lang="EN">hibernate jar files download, <span lang="EN">hibernate 3
jar download, <span lang="EN">hibernate 3.5 jar download, <span lang="EN">hibernate
download jar, <span lang="EN">hibernate 3.6 jar download, hibernate 4.2.4 jar file
download, hibernate 4.2.4 Jar file fre download, hibernate 3.5 jar file free
download, hibernate jar
download.</span></span></span></span></span></span></span></span></span></span><br />
<br />
<div class="snapshot-description">
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Hibernate Jar files Download :</b></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;">The core functionality of Hibernate <a class="external-link" data-cke-saved-href="http://hibernate.org" href="http://hibernate.org/">http://hibernate.org</a></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje8jWRt_0bBaeNoJDrENG2mmActfDOjia_Vk6Lj1EykdgKzTu3ptYu-PWCApF0-r29EiiGeudJ8Gl3YHRsvdUuJ9hM7UMcZMY7bKMoefMYk3EoSjUP4zRn5R_-XQeV9DqV1ceY3HvIygQ/s1600/khkgkg.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Hibernate Jars Download" border="0" height="88" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje8jWRt_0bBaeNoJDrENG2mmActfDOjia_Vk6Lj1EykdgKzTu3ptYu-PWCApF0-r29EiiGeudJ8Gl3YHRsvdUuJ9hM7UMcZMY7bKMoefMYk3EoSjUP4zRn5R_-XQeV9DqV1ceY3HvIygQ/s320/khkgkg.jpg" title="Hibernate Jars Download" width="320" /></a></div>
<br /></div>
<div class="snapshot-description">
</div>
<div class="snapshot-description">
<div class="wikiPara">
<span style="color: purple;"><b><span style="font-family: Arial, Helvetica, sans-serif;">Hibernate 4.2.4 jar files
Downloads in ZIP and TGZ formats :</span></b></span><br />
<span style="color: purple;"><b><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="wikiPara">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: black;">Hibernate 4.2.4
Download</span> <a data-cke-saved-href="http://sourceforge.net/projects/hibernate/files/hibernate4/4.2.4.Final/hibernate-release-4.2.4.Final.zip/download" href="http://sourceforge.net/projects/hibernate/files/hibernate4/4.2.4.Final/hibernate-release-4.2.4.Final.zip/download">4.2.4.Final
ZIP</a>,</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="wikiPara">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: black;">Hibernate 4.2.4
Download</span> <a data-cke-saved-href="http://sourceforge.net/projects/hibernate/files/hibernate4/4.2.4.Final/hibernate-release-4.2.4.Final.tgz/download" href="http://sourceforge.net/projects/hibernate/files/hibernate4/4.2.4.Final/hibernate-release-4.2.4.Final.tgz/download">4.2.4.Final
TGZ</a></span><br />
<br /></div>
<div id="cke_pastebin" style="height: 491px; left: -1000px; margin: 0px; overflow: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: absolute; top: 10px; width: 1px;">
<span lang="EN"><span style="font-family: Arial, Helvetica, sans-serif;">download hibernate jar</span></span></div>
<div>
</div>
<div>
<span style="color: purple;"><b><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></b></span>
<span style="color: purple;"><b><span style="font-family: Arial, Helvetica, sans-serif;">Hibernate 3.5.2 Core jar Download
files in Binary and Source :</span></b></span><br />
<span style="color: purple;"><b><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
</div>
<div class="snapshot-description">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: black;">Hibernate </span>Project metadata
download: <a class="external-link margin-r-s" data-cke-saved-href="https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final.pom" href="https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final.pom">hibernate-core-3.5.2-Final.pom</a></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: black;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: black;">Hibernate </span>Binary
download: <a class="external-link margin-r-s" data-cke-saved-href="https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final.jar" href="https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final.jar">hibernate-core-3.5.2-Final.jar</a></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: black;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: black;">Hibernate </span>Source
download: <a class="external-link margin-r-s" data-cke-saved-href="https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final-sources.jar" href="https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final-sources.jar">hibernate-core-3.5.2-Final-sources.jar</a><span style="color: purple;"><b></b></span></span><br />
<br />
<span style="color: purple;"><b><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></b></span>
<span style="color: purple;"><b><span style="font-family: Arial, Helvetica, sans-serif;">Hibernate 3.1.3 jar Files download with
differ in memory sizes :</span></b></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"> <a class="name" data-cke-saved-href="http://sourceforge.net/projects/hibernate/files/hibernate3/3.1.3/hibernate-3.1.3.zip.MD5/download" href="http://sourceforge.net/projects/hibernate/files/hibernate3/3.1.3/hibernate-3.1.3.zip.MD5/download" title="Click to download hibernate-3.1.3.zip.MD5">hibernate-3.1.3.zip.MD5</a> <abbr title="2006-03-20 21:11:40 UTC">2006-03-20</abbr>32 Bytes9</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"> <a class="name" data-cke-saved-href="http://sourceforge.net/projects/hibernate/files/hibernate3/3.1.3/hibernate-3.1.3.zip/download" href="http://sourceforge.net/projects/hibernate/files/hibernate3/3.1.3/hibernate-3.1.3.zip/download" title="Click to download hibernate-3.1.3.zip">hibernate-3.1.3.zip</a> 2<abbr title="2006-03-20 21:01:57 UTC">006-03-20</abbr>23.0 MB61</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"> <a class="name" data-cke-saved-href="http://sourceforge.net/projects/hibernate/files/hibernate3/3.1.3/hibernate-3.1.3.tar.gz.MD5/download" href="http://sourceforge.net/projects/hibernate/files/hibernate3/3.1.3/hibernate-3.1.3.tar.gz.MD5/download" title="Click to download hibernate-3.1.3.tar.gz.MD5">hibernate-3.1.3.tar.gz.MD5</a> <abbr title="2006-03-20 20:46:04 UTC">2006-03-20</abbr>32 Bytes1</span><br />
<!---pb_body--->
<br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"> <a class="name" data-cke-saved-href="http://sourceforge.net/projects/hibernate/files/hibernate3/3.1.3/hibernate-3.1.3.tar.gz/download" href="http://sourceforge.net/projects/hibernate/files/hibernate3/3.1.3/hibernate-3.1.3.tar.gz/download" title="Click to download hibernate-3.1.3.tar.gz">hibernate-3.1.3.tar.gz</a> <abbr title="2006-03-20 20:44:01 UTC">2006-03-20</abbr>18.5 MB19</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-48481498398250099052013-08-18T02:24:00.001-07:002013-08-18T02:24:30.878-07:00Struts 2.3|1.3|1.2|1.1 jar files free download<div dir="ltr" style="text-align: left;" trbidi="on">
<div pbzloc="88">
<span style="font-family: Arial, Helvetica, sans-serif;"><span lang="EN" pbzloc="167">struts jar download, </span><span lang="EN" pbzloc="86">struts 2.3 jar download, </span><span lang="EN">struts 1.2 jar
download, </span><span lang="EN">struts 1.3 jar download, </span><span lang="EN">download struts jar files, </span><span lang="EN">struts 1.1 jar download,
</span><span lang="EN">struts tiles jar download, </span><span lang="EN">struts 2.0
jar download, </span><span lang="EN">download struts 1.1 jar, </span><span lang="EN" pbzloc="87">struts 2 download jar, struts 1.1 jar download, struts 1.1 jar free
download, struts 1.2 jar free download, struts 1.3 jar free download, struts 2.0
jar free download, struts 2.0 jar download, struts 2.3 jar files
download</span></span></div>
<div pbzloc="98">
<br /></div>
<div pbzloc="101">
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">Struts 2.3 1.3 jar files Download</span></b></span></div>
<div pbzloc="102">
<br /></div>
<div pbzloc="105">
<span style="font-family: Arial, Helvetica, sans-serif;">Struts 1.3 and Struts 2.3 Jar files are download here. </span></div>
<div pbzloc="105">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6qSKRlFTn9LUVVX8ZcUSJG25ZsQe6uHTT1RHAcsMzNY6Xl8H6pJba_5_HxiThXm5e9lR6FDGzkg6ZlNG11SIQBAVCfFNlEYVFvWiQh7yTTfbPiODtN9rVU6uVBt8vVzIJ50iW8_O4PS8/s1600/struts2-merger2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Struts 2.3 1.3 Jars" border="0" height="182" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6qSKRlFTn9LUVVX8ZcUSJG25ZsQe6uHTT1RHAcsMzNY6Xl8H6pJba_5_HxiThXm5e9lR6FDGzkg6ZlNG11SIQBAVCfFNlEYVFvWiQh7yTTfbPiODtN9rVU6uVBt8vVzIJ50iW8_O4PS8/s320/struts2-merger2.png" title="Struts 2.3 1.3 Jars" width="320" /></a></div>
<div pbzloc="105">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div pbzloc="105">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div pbzloc="138">
<span style="color: purple;"><strong pbzloc="143"><span style="font-family: Arial, Helvetica, sans-serif;">Struts 1.3
Jar's Documentation, Source, Examples :</span></strong></span></div>
<ul>
<li pbzloc="144">Struts 1.3 Full Distribution:
<ul>
<li pbzloc="142"><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/binaries/struts-1.3.10-all.zip" href="http://apache.mirrors.pair.com//struts/binaries/struts-1.3.10-all.zip" pbzloc="133">struts-1.3.10-all.zip</a>
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/binaries/struts-1.3.10-all.zip.asc" href="http://www.apache.org/dist/struts/binaries/struts-1.3.10-all.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/binaries/struts-1.3.10-all.zip.md5" href="http://www.apache.org/dist/struts/binaries/struts-1.3.10-all.zip.md5" pbzloc="109">MD5</a>]</li>
</ul>
</li>
<li pbzloc="141">Struts 1.3 Library:
<ul>
<li pbzloc="116"><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/library/struts-1.3.10-lib.zip" href="http://apache.mirrors.pair.com//struts/library/struts-1.3.10-lib.zip" pbzloc="131">struts-1.3.10-lib.zip</a>
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/library/struts-1.3.10-lib.zip.asc" href="http://www.apache.org/dist/struts/library/struts-1.3.10-lib.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/library/struts-1.3.10-lib.zip.md5" href="http://www.apache.org/dist/struts/library/struts-1.3.10-lib.zip.md5">MD5</a>]</li>
</ul>
</li>
<li pbzloc="130">Struts 1.3 Source:
<ul>
<li><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/source/struts-1.3.10-src.zip" href="http://apache.mirrors.pair.com//struts/source/struts-1.3.10-src.zip" pbzloc="129">struts-1.3.10-src.zip</a>
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/source/struts-1.3.10-src.zip.asc" href="http://www.apache.org/dist/struts/source/struts-1.3.10-src.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/source/struts-1.3.10-src.zip.md5" href="http://www.apache.org/dist/struts/source/struts-1.3.10-src.zip.md5">MD5</a>]</li>
</ul>
</li>
<li pbzloc="128">Struts 1.3 Examples:
<ul>
<li><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/examples/struts-1.3.10-apps.zip" href="http://apache.mirrors.pair.com//struts/examples/struts-1.3.10-apps.zip" pbzloc="127">struts-1.3.10-apps.zip</a>
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/examples/struts-1.3.10-apps.zip.asc" href="http://www.apache.org/dist/struts/examples/struts-1.3.10-apps.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/examples/struts-1.3.10-apps.zip.md5" href="http://www.apache.org/dist/struts/examples/struts-1.3.10-apps.zip.md5">MD5</a>]</li>
</ul>
</li>
<li pbzloc="121">Struts 1.3 Documentation:
</li>
<ul>
<li><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/documentation/struts-1.3.10-docs.zip" href="http://apache.mirrors.pair.com//struts/documentation/struts-1.3.10-docs.zip" pbzloc="126">struts-1.3.10-docs.zip</a>
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/documentation/struts-1.3.10-docs.zip.asc" href="http://www.apache.org/dist/struts/documentation/struts-1.3.10-docs.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/documentation/struts-1.3.10-docs.zip.md5" href="http://www.apache.org/dist/struts/documentation/struts-1.3.10-docs.zip.md5">MD5</a>]</li>
</ul>
</ul>
<div>
<br /></div>
<ul></ul>
<div pbzloc="148">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: purple;"><strong pbzloc="149">Struts 2.3
Jar's Documentation, Source, Examples :</strong></span> </span></div>
<ul>
<li pbzloc="150">Struts 2.3 Full Distribution:
<ul>
<li><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/binaries/struts-2.3.15.1-all.zip" href="http://apache.mirrors.pair.com//struts/binaries/struts-2.3.15.1-all.zip" pbzloc="151">struts-2.3.15.1-all.zip</a>
(65MB) [<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/binaries/struts-2.3.15.1-all.zip.asc" href="http://www.apache.org/dist/struts/binaries/struts-2.3.15.1-all.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/binaries/struts-2.3.15.1-all.zip.md5" href="http://www.apache.org/dist/struts/binaries/struts-2.3.15.1-all.zip.md5">MD5</a>]</li>
</ul>
</li>
<li pbzloc="152">Struts 2.3 Example Applications:
<ul>
<li><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/examples/struts-2.3.15.1-apps.zip" href="http://apache.mirrors.pair.com//struts/examples/struts-2.3.15.1-apps.zip" pbzloc="153">struts-2.3.15.1-apps.zip</a>
(35MB) [<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/examples/struts-2.3.15.1-apps.zip.asc" href="http://www.apache.org/dist/struts/examples/struts-2.3.15.1-apps.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/examples/struts-2.3.15.1-apps.zip.md5" href="http://www.apache.org/dist/struts/examples/struts-2.3.15.1-apps.zip.md5">MD5</a>]</li>
</ul>
</li>
<li pbzloc="154">Struts 2.3 Essential Dependencies Only:
<ul>
<li><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/library/struts-2.3.15.1-lib.zip" href="http://apache.mirrors.pair.com//struts/library/struts-2.3.15.1-lib.zip" pbzloc="155">struts-2.3.15.1-lib.zip</a>
(19MB) [<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/library/struts-2.3.15.1-lib.zip.asc" href="http://www.apache.org/dist/struts/library/struts-2.3.15.1-lib.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/library/struts-2.3.15.1-lib.zip.md5" href="http://www.apache.org/dist/struts/library/struts-2.3.15.1-lib.zip.md5">MD5</a>]</li>
</ul>
</li>
<li pbzloc="164">Struts 2.3 Documentation:
<ul>
<li><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/documentation/struts-2.3.15.1-docs.zip" href="http://apache.mirrors.pair.com//struts/documentation/struts-2.3.15.1-docs.zip" pbzloc="163">struts-2.3.15.1-docs.zip</a>
(13MB) [<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/documentation/struts-2.3.15.1-docs.zip.asc" href="http://www.apache.org/dist/struts/documentation/struts-2.3.15.1-docs.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/documentation/struts-2.3.15.1-docs.zip.md5" href="http://www.apache.org/dist/struts/documentation/struts-2.3.15.1-docs.zip.md5">MD5</a>]</li>
</ul>
</li>
<li pbzloc="162">Struts 2.3 Source:
<ul>
<li><a data-cke-saved-href="http://apache.mirrors.pair.com//struts/source/struts-2.3.15.1-src.zip" href="http://apache.mirrors.pair.com//struts/source/struts-2.3.15.1-src.zip" pbzloc="161">struts-2.3.15.1-src.zip</a>
(7MB) [<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/source/struts-2.3.15.1-src.zip.asc" href="http://www.apache.org/dist/struts/source/struts-2.3.15.1-src.zip.asc">PGP</a>]
[<a class="externalLink" data-cke-saved-href="http://www.apache.org/dist/struts/source/struts-2.3.15.1-src.zip.md5" href="http://www.apache.org/dist/struts/source/struts-2.3.15.1-src.zip.md5">MD5</a>]</li>
</ul>
</li>
</ul>
<ul></ul>
<!---pb_body--->
<!--!-PB_BODY--->
<br />
<div pbzloc="166">
</div>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-39517720087238775502013-08-14T06:20:00.000-07:002013-08-14T06:22:32.043-07:00How many ways to Traverse HashMap in java With Example Code<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"><b>how to traverse a hashmap in java,java code to traverse a hashmap,traverse a hashmap java ,ways of traverse the map in java, </b></span><b style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: x-large;">traversing hashmap using foreach loop, traversing hashmap using KeySet Iterator, traversing hashmap using entrySet, Java Code for</b><br />
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"></span></b><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"><b>traversing Hashmap in java.</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> In Java Collection Frame Work we have multiple ways of iterating the data from the Map, HashMap and TreeMap. As am java developer one of my colleagues attended the interview of experience of 4years on java. Then he got the question like this, write the java to iterate or retrieve the data from the hashmap or TreeMap or map in atleast four ways. So Candidate who going to attend for the java interview of experience of 2+, 3+, 4+,5+, 6+, 7+ etc..</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">You can find the this type of questions in the interview. Why because these candidates did so many projects in real time, so if the interviewer think that these guys must have command on retrieving the data through Collection Object by using the HashMap. Map, TreeMap Objects.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In this tutorial we are going to retrieve the data from the Object of HashMap, Map, TreeMap. We are retrieving or traversing or iterating the data from HashMap, Map, TreeMap Object in five different ways.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUCKFMUD8v3d-I6StY-mA1FABjEubu-6GJvwzYEd21H1hvhsaDHPRCEEerazl0B4iijK7O1pobb22DNVh3QTTc7IqhwBB-b1U6O24f1Wd7VsZVqYNBGWowrv1oE5m8KYygmmagvxJ7l5w/s1600/cooltext1151768409.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="HashMap Traversing Techinques" border="0" height="111" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUCKFMUD8v3d-I6StY-mA1FABjEubu-6GJvwzYEd21H1hvhsaDHPRCEEerazl0B4iijK7O1pobb22DNVh3QTTc7IqhwBB-b1U6O24f1Wd7VsZVqYNBGWowrv1oE5m8KYygmmagvxJ7l5w/s320/cooltext1151768409.png" title="HashMap Traversing Techniques" width="320" /></a></div>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>Consider an Example :</b></span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In real time most of the cases we are using generics with Collection classes and interface, so its better to write the code in Collections with Generics to impress the interviewer.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>HashMap object creation along with Generics :</b></span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">HashMap<String, String> demo=new HashMap<String,String>();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">demo.put(”Michael”, “USA”);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">demo.put(“Jaffar”,”Afghan”);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>1) Iterating Map Object elements using the foreach loop :</b></span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From JDK 5.0 Version so many updating are included in it, in which one of the updation is foreach loop for iterating over map by using KeySet of Map interface to get the keys. This will used to iterate the values of Map and display the key and value in pair.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>For Example:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">HashMap<String, String> demo=new HashMap<String,String>();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">demo.put(”Michael”, “USA”);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">demo.put(“Jaffar”,”Afghan”);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">for(String key : dmeo.keySet()){</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">System.out.println(key+” ”+demo.get(key));</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>Output :</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Iterating or Traversing the Map Using Java5 foreach loop</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Michael USA</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Jaffar Afghan</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>2) Iterating HashMap, Map, TreeMap in java using KeySet Iterator:</b></span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> To Retrieve the HashMap, Map, TreeMap by using Iterator </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>For Example:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Set<String> keyset=demo.keySet();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Iterator<String> keysetIterator=keyset.iterator();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">While(keysetIterator.hasNext()){</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">String key=keysetIterator.hasNext();// stores Key “Michael”,”Jaffar”</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">System.out.println(key+” “+demo.get(key));// USA, Afghan</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>Output :</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Iterating or Traversing the Map Using Java5 Iterator</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Michael USA</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Jaffar Afghan</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>3) Retrieving or Traversing the HashMap in java using EntrySet along with forLoop :</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From this Example we are retrieving the data using EntrySet along with foreachloop. EntrySet is collection of all Map Entries which contains Key and Value.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>For Example :</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Set<Map.Entry<String<String>> entryset-demo.entrySet();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">For(Entry entry : entrySet()){</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">System.out.println(entry.getKey() +” “ +entry.getValue());</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>Output :</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Iterating or Traversing the Map Using entrySet</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Michael USA</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Jaffar Afghan</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>4) Iterating HashMap in java using EntrySet and Iterator :</b></span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Retrieving the data from the HashMap object using EntrySet and Itertor.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>For Example :</b></span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Set<Map,Entry<String,String>> entrySet1=demo.entrySet();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Itertor<Entyr<String, String>> entrySetIterator=entrySet1.iterator();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> While(entrySetIterator.hasNext()){</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Entry entry=entrySetIterator.next();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(entry.getKey()+” ”+entry.getValue());</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>Output:</b></span><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Iterating or Traversing the Map Using Java5 Iterator & EntrySet</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Michael USA</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Jaffar Afghan</span><br />
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-69139317131071415302013-08-14T06:04:00.001-07:002013-08-14T06:22:46.306-07:00Difference Between ArrayList Vs LinkedList in Java|ArrayList and LinkedList Differences<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: purple;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"><b>ArrayList Vs LinkedList, LinkedList Vs ArrayList in java, Java ArrayList Linkedlist, </b></span><b style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;">Difference between ArrayList and LinkedList, difference between linkedlist and arraylist, </b><span style="font-family: Arial, Helvetica, sans-serif; font-size: large;"><b>Difference between Arraylist and Linkedlist with Example. </b></span><b style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;">arraylist and linkedlist difference in java,diff arraylist and linkedlist in java,compare arraylist and linkedlist in java,arraylist and linked list differences</b></span><br />
<span style="color: purple;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>ArrayList Vs LinkedList</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In Java Collection Frame work Difference between LinkedList and ArrayList is one most Frequently Asked question in Java interview for Freshers,2+,3+,5+,6+ Experience also. Candidate’s who are going to attend for the Interview must be perfect in Core java and Collection Frame Work. In this Collection Frame Work we explained the Difference ArrayList and LinkedList is most frequently asked in the Interview, So Candidate must be Prefect in this Sections. </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj1mv1yp2y4ygpESK6JewZ6RttBUTbBEU7poCkDy73MCFlg12a1yCfvaz-U4BTFQgf_KyW6wpulfeli-_IedDKULejfZn2F_9sTSKsxydHxliR_xW0OjP5rKOSTKWqV4-3PkW4S1CTjXM/s1600/cooltext1151752127.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="ArrayList Vs LinkedList" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj1mv1yp2y4ygpESK6JewZ6RttBUTbBEU7poCkDy73MCFlg12a1yCfvaz-U4BTFQgf_KyW6wpulfeli-_IedDKULejfZn2F_9sTSKsxydHxliR_xW0OjP5rKOSTKWqV4-3PkW4S1CTjXM/s1600/cooltext1151752127.png" title="ArrayList Vs LinkedList" /></a></div>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>LinkedList Vs ArrayList</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">LinkedList and ArrayList both of them are classes that implements List Interface, But Most of them don’t how the LinkedList and ArrayList work internally in different manner. From Difference between ArrayList and LinkedList in which ArrayList is implemented by resizable array and LinkedList is implemented by doubleLinkedList. From this tutorial you can find the how LinkedList and ArrayList are use in realtime that shows in the difference between LinkedList and ArrayList.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">1) Array is data structure is used to store the data and delete the data is on the basis of the index. That makes faster in adding the element to the array. But Delete an element from the array makes to costly process, after deletion of the element from the array need’s to rearrange all elements. To Retrieve any element from the LinkedList does not iterate on the basis of the index and Random</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">2) Performance of the ArrayList is provides O(1) performance for retrieving the element, For LinkedList retrieve Order of O(n).</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">3) Insertion Operation are very easy and fast in LinkedList while comparing with ArrayList, there is a risk of resizing the array. ArrayList is need to update its index while adding any element to the ArrayList not at end of the Array. Removal of the element from the ArrayList is similar to Insertion in Arraylist, So LinkedList is better to use.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">4) LinkedList requires much more memory compared to ArrayList, because ArrayList holds the only index data, but in LinkedList it necessary to hold address of both Previous node data and next node data.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>In Real Time Scenarios Where to Use LinkedList and ArrayList :</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">LinkedList is not popular when compared to ArrayList, But Linked list is the best option to use in java when Compared with ArrayList.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">1) In Web application or any application always requires to use Random access, if we want to access the nth element in the LinkedList. It’s easy to use.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">2) If Application has more insertion and deletion operations, then it’s better to use ArrayList, if no Resizing of Array.</span><br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com2tag:blogger.com,1999:blog-1195631660823777475.post-84346283065223226192013-08-14T05:19:00.004-07:002013-08-14T05:31:43.960-07:00Core Java Written Questions VI<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;">java written test questions and answers, java written test questions, java questions and answers for written test,core java written test questions and answers, java written test questions with answers,core java written test, Core Java Written Test Questions Pdf Download, Core Java Written Test Questions Pdf Download</span></b><br />
<div>
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"><br /></span></b></div>
<div>
<b><span style="color: red; font-family: Arial, Helvetica, sans-serif;">Core Java Written Questions VI</span></b></div>
<div>
<br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="font-family: Arial, Helvetica, sans-serif;"> <span style="font-size: large;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" target="_blank">5</a></b></span></span><span style="font-size: large;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" target="_blank">6</a></b></span></span></div>
<div>
<br /></div>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<b><span style="color: purple;"><span style="font-family: Arial, Helvetica, sans-serif;">1</span><span style="font-family: Arial, Helvetica, sans-serif;">) What is the Excepted Output of the Following Program?</span></span></b><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public class Demo {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public int F1() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> static int i = 0;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> i++;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return i;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String args[]) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Demo demo = new Demo();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> demo.F1();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int j = demo.F1();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(j);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>2<span class="Apple-tab-span" style="white-space: pre;"> </span>B.<span class="Apple-tab-span" style="white-space: pre;"> </span>0<span class="Apple-tab-span" style="white-space: pre;"> </span>C.<span class="Apple-tab-span" style="white-space: pre;"> </span>1<span class="Apple-tab-span" style="white-space: pre;"> </span>D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compile Time Error</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Compile Time Error will occur because, static is an illegal start of Expression.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Compile time error is occur due to static an illegal start of the expression in which method variables have modifier.(but they always consider as local).</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>2.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Expected Output Of the Following Program?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class VText {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> VText t = new VText();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> t.test();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> void test() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> long [] x1 = {3,4,5};</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> long [] x2 = bug(x1);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print(x1[0] + x1[1] + x1[2] + " ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(x2[0] + x2[1] + x2[2]);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> long [] bug(long [] x3) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x3[1] = 7;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return x3;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>15 15<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>12 15<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>3 7 5 3 4 5<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>3 4 5 3 4 5<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option A is Correct because the reference variables x1,x3 refers to the long array object. In this above class VText having method bug() have an index array of [1] is updated the value as 7. then the reference variable x2 is also refers to same array object.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above Program Ouput is : 3+7+5+" "3+7+5</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Output will be 15 15</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">3.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excepted Output of the Folliwng Program?</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class Updates {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int i = 100;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> double j = 100.1;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> boolean j = (i = j); // Line No 7</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(j);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>true<span class="Apple-tab-span" style="white-space: pre;"> </span>B.<span class="Apple-tab-span" style="white-space: pre;"> </span>false C. Compile Time Error D. Run Time Error or Exception.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above Program we can understand that at the line number 7, the line will works when (x==y). While Taking Operators into considers (= =) and (=) in which == do operation and return boolean value. But = is used to assigns the value to variable.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Of Course, output of the above program of the optiosn A,B and D are in correct.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Learn more problems on : Operators and Assignments </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Discuss about this problem : Discuss in Forum </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>4.<span class="Apple-tab-span" style="white-space: pre;"> </span>What will be the output of the program? </b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class BitwiseOperators {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int i = 11 & 9;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int j = i ^ 3;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println( j | 12 );</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>0<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>14<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>8<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>7<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option B is correct. From the Above Questions Operations between operands using operators. The & Operator generates one bit whent both bits are one. Then from Above Result of & Operation is 9. Even ^ Operator also genrates one bit, the result of the Operation is 10. The Operator | produces the at least one bit is 1, then Result of the Operation is 14.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>5.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excepted Output Of the Following Program ?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class BoolTest {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> boolean a1 = true;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> boolean a2 = false;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> boolean a3 = true;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( a1 & a2 | a2 & a3 | a2 )// Linn 8</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("Hello ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( a1 & a2 | a2 & a3 | a2 | a1 ) /*Line 10*/</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("JavaJavax");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. Hello B. JavaJavax C. Hello JavaJavax D.<span class="Apple-tab-span" style="white-space: pre;"> </span>No output is produced<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Operator & has hiher precedence than | Operator, at the line number 8 a1 and a2 evalutes together produces as are a2 & a3. at the line number 10 a1 if the test is true then it shows JavaJavax.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>6.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is Expected Output Of the Following Program</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Class A{</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String args[]){</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int i = l, j = 6; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> while (j--) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> i++; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("x = " + x +" y = " + y);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>i = 6 j = 0<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>i = 7 j = 0<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>i = 6 j = -1<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compile Error</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">Explanation:</span></b></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: blue;"> Option D Compile Time Error is raises, because While loop always considers Boolean value.</span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>7.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is Expected Output Of the Following Program</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Class Demo{</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public static void main(String args[]){</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">for (int x = 0; x < 4; x+= 2) { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print(x + " "); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(x); // Lin No 5</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>0 2 4<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>0 2 4 5<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>0 1 2 3 4<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compile Time Error.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Compile time Error will raises because the variable x at line No 5 is accessed, because variable x is defined inside the for loop.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>8.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excepted output of the Following Program</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">int i = 3; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">int j = 1; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">if (i = j) // Line No 3{</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("i =" + i); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>i = 1<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>i = 3<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compile Time Error</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">D.<span class="Apple-tab-span" style="white-space: pre;"> </span>No Output.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In the Above program at the Line No 3 uses the = operator instead ==, so if statement receives the integer instead of boolean.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>9.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Expected Output Of the Following Program?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class A{ </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> try {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> ErroeMethod(); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("X"); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> catch (RuntimeException ex) // Line No 7 { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("Y"); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> catch (Exception ex1) { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("Z"); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> finally {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("W"); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("U"); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void ErrorMethod() { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> throw new RuntimeException(); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>XY<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>XYZ<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>XYW<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>XYZWU<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In the Above Program Runtime Exception is thrown and is caught at the line number 7, then all the code after the finally block is run exception is catched.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7667461905722877";
google_ad_host = "pub-1556223355139109";
/* Horizontal Long */
google_ad_slot = "8892090744";
google_ad_width = 970;
google_ad_height = 90;
//-->
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>For More Java Interview Questions and Answers</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"> <span style="font-size: large;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" target="_blank">5</a></b></span></span><span style="font-size: large;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" target="_blank">6</a></b></span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com1tag:blogger.com,1999:blog-1195631660823777475.post-84949528137036848872013-08-14T05:19:00.003-07:002013-08-14T05:37:54.240-07:00Core Java Written Test Questions V<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;">java written test questions and answers, java written test questions, java questions and answers for written test,core java written test questions and answers, java written test questions with answers,core java written test, Core Java Written Test Questions Pdf Download, Core Java Written Test Questions Pdf Download</span></b><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>For More Java Interview Questions and Answers</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="font-family: Arial, Helvetica, sans-serif;"> <span style="font-size: large;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" target="_blank">5</a></b></span></span><span style="font-size: large;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" target="_blank">6</a></b></span></span><br />
<span style="color: purple;"><span style="font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span></span>
<span style="color: purple;"><span style="font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span></span>
<span style="color: purple;">
<span style="font-family: Arial, Helvetica, sans-serif;"><b>1. which of the following declaration that follows the class level variable, and variable declarations will not compile ?<span class="Apple-tab-span" style="white-space: pre;"> </span> </b></span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. protected int a; B. transient int b = 3; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C. private synchronized int e;<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span>D.<span class="Apple-tab-span" style="white-space: pre;"> </span> volatile int d;<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above question Option C is correct, it will not compile; Sychronized modifier applies only for methods and blocks.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option A,C,D are correct, because protected, transient variable and volatile are legal.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>2.<span class="Apple-tab-span" style="white-space: pre;"> </span>What will be the output of the program?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class DemoTestt {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String[ ] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> float x1[ ], x2[ ];</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x1 = new float[10];</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x2 = x1;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("x2[0] = " + x2[0]);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span> Above Code prints f2[0] = 0.0<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span> It prints f2[0] = NaN<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C.<span class="Apple-tab-span" style="white-space: pre;"> </span> An error at f2 = f1; causes compile to fail.<span class="Apple-tab-span" style="white-space: pre;"> </span>D.<span class="Apple-tab-span" style="white-space: pre;"> </span> It prints the garbage value.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Program Code Snippet, Option A is Correct because, When an array(x1=new float[10];) in which elements are initilises to default values for the primitive data types(float in case of 0.0). so x1 will contain 10 elements with default float values. x2=x1 copies all the elements in x1 to x2. Then while retrieving the x2 array of the zero index have value 0.0.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">3.</span></b><span class="Apple-tab-span" style="color: blue; white-space: pre;"> </span><span style="color: blue;">Public class X {</span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> X( ) { }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class Y extends X</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> { }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Which of the following Statement is true?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. Class Y'S constructor is public.<span class="Apple-tab-span" style="white-space: pre;"> </span> B. Class Y'S constructor has no arguments.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> C. Class Y'S constructor includes a call to this( ). D. None of these.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above Code Snippet. Option B is correct. Because Class Y inherits Class X's constructor which has no arguments. Option A is wrong. Class Y inherits Class X's constructor which uses default access. Option C is wrong. There is just no implicit call to this( ).</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>4.<span class="Apple-tab-span" style="white-space: pre;"> </span>// Some Statements are Missing</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public class ModelTreeSet extends java.util.TreeSet {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> java.util.TreeSet ts = new java.util.TreeSet();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> ts.clear();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void clear() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> TreeMap tm = new TreeMap();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> tm.clear();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>which two statements, added independently at beginning of the program, allow the code to compile?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">1) No statement is required 2) import java.util.*; 3) import.java.util.Tree*;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">4) import java.util.TreeSet; 5) import java.util.TreeMap;<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. 1 only B. 2 and 5 <span class="Apple-tab-span" style="white-space: pre;"> </span>C. 3 and 4 D. 3 and 5<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">Explanation: </span></b><span style="color: blue;">From the above Code Snippet Option B is Correct has (2) and (5). TreeMap related class is imported , but TreeSet Class related need not import, specailly because it is represented as fully qualified name. Option {1} is not correct because TreeMap is must and should import. Option {3} is not correct syntax because of import statement. Option{4} is incorrect because it is not import TreeMap.</span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>5.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excpeted of the Following program?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class Demo {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> byte a;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class test {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> test p = new test();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> p.init();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> void start() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Demo t = new Demo();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print(t.a + " ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Two t2 = fix(t);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(t.a + " " + t2.x);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Demo update(Demo tt) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> tt.a = 88;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return tt;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. null null 88<span class="Apple-tab-span" style="white-space: pre;"> </span> B. 0 0 88 C. 0 88 88<span class="Apple-tab-span" style="white-space: pre;"> </span>D. 0 0 0<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above snippet has update() method, of return type Class Demo, in which reference variable tt refers to the same object (class Demo) as the t reference variable. While Updating the tt.x in the update() method similar to it updates t.x also updates the same object.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>6. What is the Excepted Output of the Following Code Snippet?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class test {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> static boolean f1,f2;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int i = 0;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( !f1 ) { // Line 7</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( !f2 ) { // Line 8</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> f1 = true;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> i++;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( 5 > 6 ) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> i++;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( !f1 )</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> i = i + 10;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> else if ( f2 = true )// Line 15</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> i = i + 100;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> else if ( f1 | f2 ) // Line 17</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> i = i + 1000;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(i);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span>A. 0 <span class="Apple-tab-span" style="white-space: pre;"> </span>B. 1<span class="Apple-tab-span" style="white-space: pre;"> </span> C. 101<span class="Apple-tab-span" style="white-space: pre;"> </span> D. 111<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"><br /></span></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Abov code Snippet f1, f1 are initialized to false, in which if it tests on the line no. 7 and 8 are sucess full. then f1 is set to true and also i is incremented. then test is suceed on the line number 19, in which code is not testing to see that f2 is true. Since line15 is successful but line no17 is skipped.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>7.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Output of the Following program ?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class Case {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> static boolean f;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> short count = 42;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( count < 50 & !f ) // Line 5</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> count++;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( count> 50 ); // Lin 7</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> else if ( count> 40 ) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> count += 7;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> count++; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> else</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> --count;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(count);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. 41 B.<span class="Apple-tab-span" style="white-space: pre;"> </span> 42 <span class="Apple-tab-span" style="white-space: pre;"> </span> C. 50<span class="Apple-tab-span" style="white-space: pre;"> </span> D. 51<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above Code Snippet boolean instance variables are default initialized to false, if the condition on the line number 5 is true then count increments, Line is legal syntax only, do nothing statement. So else if is true count with 7 is added.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>8. What is the excepted output of the following code snippet ?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">int x= O;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">while(1) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if(x == 4) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> break;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> ++x;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">System.out.println("x = " + x);<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. x = 0<span class="Apple-tab-span" style="white-space: pre;"> </span> B. x= 3 C. x = 4<span class="Apple-tab-span" style="white-space: pre;"> </span>D. Compile time error</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In the Above code snippet the while value iteration is on the basis of the int value, but is not legal. because the while condition always represents the boolean value.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>9.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excepted output of the Following Code Snippet ?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">int x= 0, y = 5;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> tt: for (;;) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x++; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> for (;;) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if(x > --j) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> break tt;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("x =" + x + ", y = " + y);<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. x = 1, y = 0 B. x = 1, y = 4 C. x = 3, y = 4 D. Compilation fails.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above code snippet it raises the compile time error, because curly braces are missing at the end of the code.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>10.<span class="Apple-tab-span" style="white-space: pre;"> </span>What will be excepted output of the following Code?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">int i = 0;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">label:</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if (i < 2) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("i is " + i);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> i++;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> continue label;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. i is 0<span class="Apple-tab-span" style="white-space: pre;"> </span> B. i is 0 i is 1 <span class="Apple-tab-span" style="white-space: pre;"> </span>C. Compilation fails.<span class="Apple-tab-span" style="white-space: pre;"> </span> D. None of the above<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above code snippet, Code is not compile because the continue statement, is occur only in the looping only(while & do while). if the syntax were legal. Combination of the if statement and continue is legal then it would create the kludgey kind of loop. Compiler always recommend to write much cleaner code than this.</span><br />
<br />
<br />
<br />
<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7667461905722877";
google_ad_host = "pub-1556223355139109";
/* Horizontal Long */
google_ad_slot = "8892090744";
google_ad_width = 970;
google_ad_height = 90;
//-->
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>For More Java Interview Questions and Answers</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="font-family: Arial, Helvetica, sans-serif;"> <span style="font-size: large;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" target="_blank">5</a></b></span></span><span style="font-size: large;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" target="_blank">6</a></b></span></span></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-24673469263762585152013-08-14T05:19:00.002-07:002013-08-14T05:35:45.786-07:00Core Java Written Test Questions IV<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;">java written test questions and answers, java written test questions, java questions and answers for written test,core java written test questions and answers, java written test questions with answers,core java written test, Core Java Written Test Questions Pdf Download, Core Java Written Test Questions Pdf Download</span></b><br />
<span style="background-color: white; color: #373737; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"><br /></span>
<span style="background-color: white; color: red; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"><b>Core Java Written Test Question IV</b></span><br />
<span style="background-color: white; color: #373737; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"><br /></span>
<span style="background-color: white; color: #373737; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"> <span style="font-size: medium;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" style="text-decoration: none;" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" style="text-decoration: none;" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" style="text-decoration: none;" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" style="text-decoration: none;" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" style="text-decoration: none;" target="_blank">5</a></b></span></span><span style="background-color: white; color: #373737; font-family: Verdana, sans-serif; font-size: medium;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" style="text-decoration: none;" target="_blank">6</a></b></span></span><b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"><br /></span></b>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>1.<span class="Apple-tab-span" style="white-space: pre;"> </span>What will be the output of the program?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> try {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int i = 0;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int j = 10 / i;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> catch (Exception ex) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("Exception is raised");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> catch (ArithmeticException ae) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(" Arithmetic Exception is raised");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">System.out.println("finished");<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. finished</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">B. Exception</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C. Compilation fails.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">D. Arithmetic Exception</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> </span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">The Above Code Snippet raises the Compile time error because ArithmeticException is already catched by the Exception, then it not recommended to catch once again by using the ArithemticException Class, So it raises the Compile time error.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">But the By Specifying the ArithmeticException then after specify the Exception catch block would recommended and file will compiled.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>2.<span class="Apple-tab-span" style="white-space: pre;"> </span>Which of the following statement is true?<span class="Apple-tab-span" style="white-space: pre;"> </span> </b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span> A try statement must have at least one corresponding catch block.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">B.<span class="Apple-tab-span" style="white-space: pre;"> </span> Multiple catch statements can catch the same class of exception more than once.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C.<span class="Apple-tab-span" style="white-space: pre;"> </span> An Error that might be thrown in a method must be declared as thrown by that method, or be handled within that method.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">D.<span class="Apple-tab-span" style="white-space: pre;"> </span> Except in case of VM shutdown, if a try block starts to execute, a corresponding finally block will always start to execute.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A is wrong. A try statement can exist without catch, but it must have a finally statement.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">B is wrong. A try statement executes a block. If a value is thrown and the try statement has one or more catch clauses that can catch it, then control will be transferred to the first such catch clause. If that catch block completes normally, then the try statement completes normally.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C is wrong. Exceptions of type Error and RuntimeException do not have to be caught, only checked exceptions (java.lang.Exception) have to be caught. However, speaking of Exceptions, Exceptions do not have to be handled in the same method as the throw statement. They can be passed to another method.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">If you put a finally block after a try and its associated catch blocks, then once execution enters the try block, the code in that finally block will definitely be executed except in the following circumstances:</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">An exception arising in the finally block itself.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">3.</span></b></span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class Case1 {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public int count;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public int Begin() { return 42; }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class Case2 {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public int count;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public int Begin() { return (int)(value^5); }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>which statement is true?<span class="Apple-tab-span" style="white-space: pre;"> </span> </b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. class Case1 will not compile.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> B. The Case1 Begin() method is more efficient than the Case2 Begin() method.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C. The Case1 Begin() method is less efficient than the Test2 begin() method.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> D. class Case2 will not compile.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /><b><span style="color: purple;">Explanation:</span></b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above code snippet we can conculde that hasing algorithm is implemented by Class Case 1 is always return the value 42, which is always legal. But placing the values of hashtbale entires into the single bucket, is most in efficient way.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">The Options A and D are not correct because these classes are legal. and the Option B is not correct based on the logic described above.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>4. What it the excepted output of the following Code Snippet?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class Fake {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Fake() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("fake"); }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class Dash{</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Dash() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("dash");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void go() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("hi");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">} // Dash Ends</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main (String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Fake t = new Fake();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> t.madeDash();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> void madeDash() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> (new Dash() {}).go();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}// Fake Class Ends</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span>A.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Compilation fails.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> </span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span>B.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">An error occurs at runtime.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> </span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span>C.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">It prints "fakebarhi"</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> </span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span>D.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">It prints "barhi"</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> </span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Explanation:</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In the Above it prints fakebarhi, due to the first Fake instance is created, that means Fake Constructor runs and it prints "fake", then next to it madeDah() is excuted, When Dash creates. that means Dash Constructor runs and prints bar and go() method get Executed prints "hi".</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">5.</span></b></span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class Dash { }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class Demo {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Dash doDash() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Dash b = new Dash(); // Line 4</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return b; // line 5</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main (String args[]) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Demo t = new Demo(); // line 8</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Dash newBar = t.doDash(); // line 9</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("newBar");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> newBar = new Dash(); // Line 11</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("finishing"); // Line 12</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>At what point is the Bar object, created on line 6, eligible for garbage collection?<span class="Apple-tab-span" style="white-space: pre;"> </span> </b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. after line 5 B. after line 9</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> C. after line 5, when doDash() completes<span class="Apple-tab-span" style="white-space: pre;"> </span> D. after line 15, when main() completes<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Explanation:</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In the Above question Option B is correct. because all the references the the Dash object is created at the Line no 4 are destroyed when the reference to the new Dash Object is assigned. to the variable newDash at line number 11. then Dash Object is created at line no line 4 and this protects the object from garbage collection at line number 11.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option A is wrong. Due toe it protects the object from Garbage collection.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option C is wrong. Due to the reference in the doDash() methos return at line num 5 and it stored at line no 9. preserves the object creation at line no 4.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option D is also Wrong because it not eligible for garbage collection at line 12.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">6</span><span style="color: blue;">.</span></b><span style="color: blue;"> class Case {</span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> private Test t;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> void start() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> t = new Test();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> this.takeTest(t);// Line 5</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } //Line 6</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> void takeTest(Test test) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> test = null;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> test = new Test();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>When is the Test object eligible for garbage collection?<span class="Apple-tab-span" style="white-space: pre;"> </span> </b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. After line 7<span class="Apple-tab-span" style="white-space: pre;"> </span> B. After line 8<span class="Apple-tab-span" style="white-space: pre;"> </span> C. After the start() method completes<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">D. When the instance running this code is made eligible for garbage collection.<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option D is correct. By a process of elimination.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option A is wrong. The variable d is a member of the Test class and is never directly set to null.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option B is wrong. A copy of the variable d is set to null and not the actual variable d.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option C is wrong. The variable d exists outside the start() method (it is a class member). So, when the start() method finishes the variable d still holds a reference.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">7. </span></b><span style="color: blue;">public class test {</span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A a = new A();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A a2 = m1(a); // Line 4</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A a4 = new A();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> a2 = a4; // Line 6</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> doComplexStuff();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> static A m1(A ma) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> ma = new A();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return ma;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>After Line number 6, how many objects are allocated for garbage collections ?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. 0 <span class="Apple-tab-span" style="white-space: pre;"> </span> B. 1<span class="Apple-tab-span" style="white-space: pre;"> </span>C. 2<span class="Apple-tab-span" style="white-space: pre;"> </span>D. 3<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In the Above Question line no 6 has run, the object without any reference is generated after the line number 4. "Pass by value in Java", in which the reference variable a is not affected by the method m1().</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">8.</span></b><span style="color: blue;"> public class BoolAssert {</span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void test() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert false;//Line 3</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert false;// Line 4</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void bar() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> while(true) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert false;//Line 8</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert false; //Line 10</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>What causes compilation to fail?<span class="Apple-tab-span" style="white-space: pre;"> </span> </b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. Line 3<span class="Apple-tab-span" style="white-space: pre;"> </span>B. Line 4 C. Line 8<span class="Apple-tab-span" style="white-space: pre;"> </span> D. Line 10<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Question Option D is correct. Compile error is occured at line 10 because unreachable statement</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">9. What is the Excepted output of the Following Program?</span></b></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;"><br /></span></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class SqrootDemo {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> double sqt = -9.0;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println( Math.sqrt(sqt));</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. -3.0<span class="Apple-tab-span" style="white-space: pre;"> </span> B. 3.0<span class="Apple-tab-span" style="white-space: pre;"> </span> C. NaN D. Compile time Error.</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In the Above Program sqrt() method returns NaN, because the arguments are less than zero.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b> 10. What is the Excepted Output of the Following Program?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> String x = "blackkite"; newspaper</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x = x.substring(5,7);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> char y = x.charAt(1);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x = x + y;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(x);<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. kik B. kii C. kitk D. kitk<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<br />
<div>
</div>
<br />
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above Question substring() and charAt() methods are index with zero, and the subString() returns String lenght arg2-arg1.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7667461905722877";
google_ad_host = "pub-1556223355139109";
/* Horizontal Long */
google_ad_slot = "8892090744";
google_ad_width = 970;
google_ad_height = 90;
//-->
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<br />
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"><b><span style="color: red;">For More Java Written Questions and Answers</span></b></span><br />
<span style="background-color: white; color: blue; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"><br /></span><span style="background-color: white; color: #373737; font-family: Verdana, sans-serif; font-size: 15px; line-height: 21px;"></span><span style="background-color: white; color: #373737; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"> <span style="font-size: medium;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" style="text-decoration: none;" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" style="text-decoration: none;" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" style="text-decoration: none;" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" style="text-decoration: none;" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" style="text-decoration: none;" target="_blank">5</a></b></span></span><span style="background-color: white; color: #373737; font-family: Verdana, sans-serif; font-size: medium;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" style="text-decoration: none;" target="_blank">6</a></b></span></span></div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-31882643555899789982013-08-14T05:19:00.001-07:002013-08-14T05:37:35.932-07:00Core Java Written Test Questions III<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;">java written test questions and answers, java written test questions, java questions and answers for written test,core java written test questions and answers, java written test questions with answers,core java written test, Core Java Written Test Questions Pdf Download, Core Java Written Test Questions Pdf Download</span></b><b><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span></b>
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><br /></span></b><br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>Core Java Written Test Questions III</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="background-color: white; color: #373737; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"> <span style="font-size: medium;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" style="text-decoration: none;" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" style="text-decoration: none;" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" style="text-decoration: none;" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" style="text-decoration: none;" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" style="text-decoration: none;" target="_blank">5</a></b></span></span><span style="background-color: white; color: #373737; font-family: Verdana, sans-serif; font-size: medium;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" style="text-decoration: none;" target="_blank">6</a></b></span></span><br />
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><br /></span></b>
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif;">1.<span class="Apple-tab-span" style="white-space: pre;"> </span>What will be the output of the program? </span></b><br />
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><br /></span></b>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class UserThread extends Thread {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> UserThread x= new UserThread();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x.start();// line no 4</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("Hai ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x.start();//line no 6</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("Hello ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void run() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("RunThread ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. Compilation fails<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Runtime Error Or Exception</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> C. It prints "ThreadHai ThreadHello."<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>The output cannot be determined.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">When the start() method is trying to calling the Thread Object, then method will throws an Exception Called IlegalThreadStateException( at line No 4, and Line No 6 start() is trying to invoke the single variable x. then it throws an Exception.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>2.<span class="Apple-tab-span" style="white-space: pre;"> </span>What will be the output of the program? </b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class DemoThread extends Thread { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> DemoThread() {} </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> DemoThread(Runnable x) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> super(x); } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void run() { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("Run() Method");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">} </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class DemoRunnable implements Runnable { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void run() { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("Runnable Interface"); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">} </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">class Test { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String[] args) { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> new DemoThread().start(); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> new DemoThread(new DemoRunnable()).start(); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. Prints "Run() Method Run() Method" B. Prints "Run() Method Runnable Interface"<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Does not compile<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Throws exception at runtime<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above Code Snippet Option A is Correct, because Runnable Object is passes as an Constructor argument, in which run() method of Thread Class is invoke or execute the run() method of Runnabel Object. In case run() method in the Thread Class is overriden by the run() method in the UserThread Class. Then run() method in DemoRunnable is never executed. Both the time run() method of DemoThread is executed.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>3. What is the Excepted output for the Following Code Snippet ?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Class X implements Runnable{ </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int a,b; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void run() { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> for(int i = 0; i < 1000; i++) </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> synchronized(this) { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> a = 18; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> b = 18; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print(a + " " + b + " "); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String args[]) { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> X test = new X(); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Thread x1 = new Thread(test); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Thread x2 = new Thread(test); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x1.start(); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x2.start(); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>DeadLock<span class="Apple-tab-span" style="white-space: pre;"> </span>B. It prints 18 18 18 18 C.Compilation Error<span class="Apple-tab-span" style="white-space: pre;"> </span>D. Cannot determine </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Output of the above program code snippet is 18 18 18 18</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">4.<span class="Apple-tab-span" style="white-space: pre;"> </span></span></b><span style="color: blue;">public class Demo { </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void test() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert false; // Line 3</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert false; // Line 4</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void foo() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> while(true) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert false; // Line 8</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert false; // Line 10</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Which line causes the Compile time error?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>Line 3<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Line 4<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Line 18 D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Line 10<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above Program snippet Option D is correct because in which at line 10 Causes the Compile time error, in which the statement at the line 10 is unreachable. </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">5. What is the Excepted Output of the Following Program?</span></b></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;"><br /></span></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class Demo {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static int b;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void test(int a) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("test ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> b = a;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static int bar(int c) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("Case ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return b = c;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args ) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int p = 0;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert p > 0 : bar(7);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert p > 1 : test(8); /* Line 18 */</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("created ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. Cas B. Case created<span class="Apple-tab-span" style="white-space: pre;"> </span> C. test created D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compilation fails<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Code test() Method returns void. it absoultely returns the void, but it not possible to return the assert statement.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">The test() method returns void. It is a perfectly acceptable method, but because it returns void it cannot be used in an assert statement, so line 18 will not compile.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">6.</span></b></span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class Return {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static int p;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static int test(int q) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return q * 2;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int r = 5;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert r > 0; /* Line 11 */</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert r > 2: test(r); /* Line 12 */</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( r < 7 )</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert r > 4; /* Line 14 */</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> switch (r) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> case 4: System.out.println("4 ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> case 5: System.out.println("5 ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> default: assert r < 10;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( r < 10 )</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> assert r > 4: r++;//Line No. 22</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(r);// Line no. 23</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>which line is an example of an inappropriate use of assertions?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Line 12 B.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Line 11 C.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Line 14</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> D.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Line 22</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<b><span style="color: purple;"><span style="font-family: Arial, Helvetica, sans-serif;">Expla</span><span style="font-family: Arial, Helvetica, sans-serif;">nation:</span></span></b><br />
<b><span style="color: purple;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span></b>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Assert Statemnt doesnot casue any side effects. at the Line number 22, value of r changes, if the assert statement is false. Option A is OK, because the acceptable to call second expression of assert statement. Options A is OK, in second expression in this assert statement is not required. option C is also OK, Call of an assert statement conditionally.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>7.<span class="Apple-tab-span" style="white-space: pre;"> </span>What will be the output of the program? </b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public class ErrorClassOrNot {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> String x = "68";</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> try {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x = x.concat(".5"); // Line No 8</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> double d = Double.parseDouble(x);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x = Double.toString(d);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int y = (int) Math.ceil(Double.valueOf(x).doubleValue());// Line No 11</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(y);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> catch (NumberFormatException excep) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("Number is not correct");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>68<span class="Apple-tab-span" style="white-space: pre;"> </span>B. 68.5 C.<span class="Apple-tab-span" style="white-space: pre;"> </span>69 D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Number is not correct </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above code, line number 8 Creates the value of x is "68.5. Line 9 and 10 converts the String to double. At the line number 11 first of all Math.ceil() is evaluted first, then we execute the valueOf() method that returns the Double Object has value 68.5. then double Value() method is called, return the double primitive with value of 68.5. then ceil method is invokesconverts it to 69.0, then type cast to int.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>8.<span class="Apple-tab-span" style="white-space: pre;"> </span>What will be Excepted output of the following program?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class Demo{ </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void stringRe (String txt) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> txt = txt.replace ('j' , 'c'); // Line No 5</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void bufferRe(StringBuffer txt) { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> txt = txt.append ("c"); // Line No 9</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main (String args[]) { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> String ts = new String ("java"); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> StringBuffer tb = new StringBuffer ("java"); /* Line 14 */</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> stringRe(ts); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> bufferRe(tb); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println (ts + tb); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>java<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>javajavac<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>javac<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compile error<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> String is always immutable(Changes/Replaces in the String is not allowed). But StringBuffer is muttable(String is altered). Because of that reason String remains same as "java". But StringBuffer Object tb can be altered that we can find the changes in StringBuffer Object, then it becomes javac. Then finally output is javajavac, that is produced at line statement of the main method. '+' Operator is used to concate the two Strings.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>8.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excepted output for this Program?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public class TestCase {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Boolean a1 = new Boolean("false");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> boolean a2;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> a2 = a1.booleanValue();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if (!a2) { // Line 6</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> a2 = true;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("p ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if (a1 & a2) { //Line 13</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("q ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("r");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. r<span class="Apple-tab-span" style="white-space: pre;"> </span> B. pr <span class="Apple-tab-span" style="white-space: pre;"> </span> C. qr<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compilation fails.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<div>
<br />
<br />
<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7667461905722877";
google_ad_host = "pub-1556223355139109";
/* Horizontal Long */
google_ad_slot = "8892090744";
google_ad_width = 970;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<b><span style="color: red;"><br /></span></b>
<b><span style="color: red;">For More Java Written Test Questions :</span></b><br />
<span style="background-color: white; color: #373737; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 21px;"> <span style="font-size: medium;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" style="text-decoration: none;" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" style="text-decoration: none;" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" style="text-decoration: none;" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" style="text-decoration: none;" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" style="text-decoration: none;" target="_blank">5</a></b></span></span><span style="background-color: white; color: #373737; font-family: Verdana, sans-serif; font-size: medium;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" style="text-decoration: none;" target="_blank">6</a></b></span></span></div>
</div>Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-73531452134262966632013-08-14T05:19:00.000-07:002013-08-14T05:38:34.185-07:00Core Java Written Test Questions and Answers II<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;">java written test questions and answers, java written test questions, java questions and answers for written test,core java written test questions and answers, java written test questions with answers,core java written test, Core Java Written Test Questions Pdf Download, Core Java Written Test Questions Pdf Download.</span></b><br />
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"><br /></span></b>
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"><br /></span></b>
<b><span style="color: red; font-family: Arial, Helvetica, sans-serif;">Core Java Written Test Questions and Answers II</span></b><br />
<b><span style="color: red; font-family: Arial, Helvetica, sans-serif;"><br /></span></b>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;"> <span style="font-size: large;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" target="_blank">5</a></b></span></span><span style="font-size: large;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" target="_blank">6</a></b></span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>1) What is the output of the following program?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Public class X {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> final public int FindResult(int p, int q) { return 9; }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class Y extends X {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public int FindResult(int p, int q) {return 10; }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public class Test {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String args[]) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Y q = new Y();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("a = " + q.FindResult(10,9)); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>a = 10<span class="Apple-tab-span" style="white-space: pre;"> </span>B.<span class="Apple-tab-span" style="white-space: pre;"> </span>x = 9<span class="Apple-tab-span" style="white-space: pre;"> </span>C. Compile Time Error. D.<span class="Apple-tab-span" style="white-space: pre;"> </span>An exception is thrown at runtime.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above Question, Program is not compiled because final methods, variable not participate in Inheritance or overridden concepts.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b> 2 What is the output for the following program?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Public class BaseC {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> BaseC bc = new BaseC();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> bc.initial();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> void initial() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int x = 3;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int y = 4;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print(" " + 7 + 2 + " ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print(x + y);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print(" " + x + y + " ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print(foo() + x + y + " ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(x + y + back());</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> String back() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return "back";</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>9 7 7 back 7 7back<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">B.<span class="Apple-tab-span" style="white-space: pre;"> </span>72 34 34 back34 34back<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C.<span class="Apple-tab-span" style="white-space: pre;"> </span>9 7 7 back34 34back<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">D.<span class="Apple-tab-span" style="white-space: pre;"> </span>72 7 34 back34 7back<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">The above Program contains some exressions uses the + operator, there is no precedence to take care about of all expressions. Always + operator evalute from left to right. If String and numberic is evaluting using + Operator. In which for String + operator will concatenate and numeric operands it adds.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>3) What is Excepted Output of the Following Program?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Public class DoorWay{</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> boolean [] y = new boolean[3];</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int turn = 0;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> void update(boolean [] x, int p) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> x[p] = true;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> ++turn;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> DoorWay dw = new DoorWay();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> dw.update(dw.a, 0);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> dw.update(dw.a, 2);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> dw.set();</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> void set() {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( a[0] && a[1] | a[2] )</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> turn++;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( p[1] && p[(++turn - 2)] )</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> turn += 7;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("turn = " + turn);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>turn = 0 B.<span class="Apple-tab-span" style="white-space: pre;"> </span>turn = 2<span class="Apple-tab-span" style="white-space: pre;"> </span>C. turn = 3<span class="Apple-tab-span" style="white-space: pre;"> </span>D. turn = 4<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> The reference variables a and x both refer to the same boolean array. count is incremented for each call to the update() method, and once again when the first if test is true. Because of the && short circuit operator, count is not incremented during the second if test.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>4. Output for the 3<<2 ?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">1.<span class="Apple-tab-span" style="white-space: pre;"> </span>12</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">2.<span class="Apple-tab-span" style="white-space: pre;"> </span>3</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">3.<span class="Apple-tab-span" style="white-space: pre;"> </span>18</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">4.<span class="Apple-tab-span" style="white-space: pre;"> </span>16</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>1 B.<span class="Apple-tab-span" style="white-space: pre;"> </span>3 C.<span class="Apple-tab-span" style="white-space: pre;"> </span>4 D.<span class="Apple-tab-span" style="white-space: pre;"> </span>1&2</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option A is correct because the actual formual beyond the 3<<2 (x<<y is x*y*y) means 3*2*2=12.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;"> 5.</span></b><span style="color: blue;"> public void test( boolean x, boolean y) {</span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if( x ){</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("X"); // line No. 5</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> else if(x && y) {// Line No. 7</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println( "X && Y");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> else { // Line No 11</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if ( !y ) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println( "notY") ;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> else {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println( "ELSE" ) ;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A.<span class="Apple-tab-span" style="white-space: pre;"> </span>If x is true and y is true then the output is "X && Y"<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>If x is true and y is false then the output is "notY"<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>If x is false and y is true then the output is "ELSE"<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>If x is false and y is false then the output is "ELSE"<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above snippet, Option C is correct. When x is false then output lines after 11 get chance of invoking. Option A is not correct, Because Output is "A". when x is true, irrelevant of value of b, only the line no. 5 output is executed. But the condition is at line no. 7 is never executed or evaluted. (when a is true it will always trapped by line 12) then output will not at all "A&&B". Option B is also not correc, because the Output is "A". when a is true, irrelevant to value of b, only line no 5 is executed. Option D is also not correct, because the output is "notB".</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>6. What is the Excepted output of the program?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Float y = new Float("16");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">switch (y)</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">{</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> case 16: System.out.println("Sixteen");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> case 0: System.out.println("Zero");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> default: System.out.println("Default");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>Sixteen<span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Default C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compilation Erroe<span class="Apple-tab-span" style="white-space: pre;"> </span> D.Zero</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option C Compilation error will occur. Because switch statement only supports the integers or variables or byte, cahr, chort. But Float wrapper is not allowed here. So Compilation error is Occured.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>7.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excepted Output of the Program?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class Test { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void aMethod() throws Exception {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> try {// Line No.3</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> throw new Exception(); // Line No. 4</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> finally {// Line No 6</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("finally "); //Line 7</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String args[]) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> try {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> aMethod(); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> catch (Exception e) {// Line 17</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("exception ");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.print("finished"); // Line No 20</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A. Compilation fails B.finally exception finished<span class="Apple-tab-span" style="white-space: pre;"> </span> C.exception finished D.<span class="Apple-tab-span" style="white-space: pre;"> </span>finally</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation: </b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above Code Snippet we Conculded that Option B is Correct, because execution in the try block at line no 3 completes quickly done because of try statement in the finally block is executed at line no 6 and prints the output finally at line 7. Finally Block completes normally, try statement completes its execution suddenly due to throw statement at line 4. exception is propagated up call stack that is caught by the catch block in the main method, then prints "exception" Finally program execution continues its execution in which exception is catch and prints the output "finished".</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>8.<span class="Apple-tab-span" style="white-space: pre;"> </span>Which Of the following are true regarding Java.lang.ArrayList ?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> A.<span class="Apple-tab-span" style="white-space: pre;"> </span>Elements in the ArrayList is Ordered.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Collections are gaurentee to Immutable</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Elements in Collections are unique.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Elements in the Collections are acessed using Unique value.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option A is Correct, because elements in the arraylist are ordered.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>9.<span class="Apple-tab-span" style="white-space: pre;"> </span>Which of the following are true regarding method local inner class?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Must be make it as final.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> B.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Must be makr it as abstract.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Must be make it as public.<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Must be make it as static.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the Above query, Option B is correct because a method-local inner classis an abstract, although it means a subclass of the inner class must be created if the abstract class is to be used (so an abstract method-local inner class is probably not useful).</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option A is not correct because the a method-local inner class not declared final.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Options C and D are not correct because a method-local inner class cannot be made as public</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">10.</span></b><span class="Apple-tab-span" style="color: blue; white-space: pre;"> </span><span style="color: blue;">public class A implements Runnable {</span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String args[]) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> //Some Code is missig here</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void run() {}</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>From the below which of the following statement is suitable to replace that code missig Comment?</b></span><br />
<span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>Thread x = new Thread(A);<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">B.<span class="Apple-tab-span" style="white-space: pre;"> </span>Thread x = new Thread(A); x.start();<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C.<span class="Apple-tab-span" style="white-space: pre;"> </span>A run = new A(); Thread t = new Thread(run); x.start();<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">D.<span class="Apple-tab-span" style="white-space: pre;"> </span>Thread x = new Thread(); x.run();<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option C is Correct, because the Runnable Interface in which it is extended into the Class A.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">For More Details...</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7667461905722877";
google_ad_host = "pub-1556223355139109";
/* Horizontal Long */
google_ad_slot = "8892090744";
google_ad_width = 970;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>For More Java Interview Questions and Answers</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="font-family: Arial, Helvetica, sans-serif;"> <span style="font-size: large;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" target="_blank">5</a></b></span></span><span style="font-size: large;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" target="_blank">6</a></b></span></span></div>Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-44389567955602709722013-08-14T05:15:00.002-07:002013-08-14T05:30:01.369-07:00Core Java Written Test Questions and Answers Explanation PDF Download<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;">java written test questions and answers, java written test questions, java questions and answers for written test,core java written test questions and answers, java written test questions with answers,core java written test, Core Java Written Test Questions Pdf Download, Core Java Written Test Questions Pdf Download.</span></b><br />
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"><br /></span></b>
<span style="font-family: Arial, Helvetica, sans-serif;"> <span style="font-size: large;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" target="_blank">5</a></b></span></span><span style="font-size: large;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" target="_blank">6</a></b> </span></span><b><span style="color: purple; font-family: Arial, Helvetica, sans-serif; font-size: large;"><br /></span></b>
<b><span style="color: red; font-family: Arial, Helvetica, sans-serif;"><br /></span></b><br />
<b><span style="color: red; font-family: Arial, Helvetica, sans-serif;">Core Java Written Test Questions and Answers with Explanation </span></b><br />
<br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">This Article will Helps to the candidates who are going to attend for the Freshers and experience 2+,3+, etc.. Candidates. The main aim of this article to helps Candidates who are going for the Java Walkins, Interview. Before that if any Core Java written test, is going to conduct by the Company. Here it self candidates can find the all core java programmatic questions are available here.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> If you go through these Questions and Answers in through can find the much more questions on java.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">You Can test programmatic and logical skills here.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbXfg8QxIvsvp-uh5DjRMAUO7t0NERquMDUtES89flGU52t_JBs_xYqsJywYtGDNLCgbJ4xhSMnjRSLeOH5o94XmcKo1LOF5wjfSCH1jPmmlkOgM5CAenRD5SsJoFlz69-8WvVBLP3MK4/s1600/cooltext1151704401.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Java Written Test Questions & Answers with Explanation" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbXfg8QxIvsvp-uh5DjRMAUO7t0NERquMDUtES89flGU52t_JBs_xYqsJywYtGDNLCgbJ4xhSMnjRSLeOH5o94XmcKo1LOF5wjfSCH1jPmmlkOgM5CAenRD5SsJoFlz69-8WvVBLP3MK4/s1600/cooltext1151704401.png" title="Java Written Test Questions & Answers with Explanation" /></a></div>
<br />
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif;"> 1) What is the Ouput of this Program? </span></b><br />
<b><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span></b>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String[] args) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Object demo = new Object() // inner Class {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public int hashCode() //override method from Object Class {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> return 99;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(demo.hashCode()); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Options :</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> a) 99 b) Compile Error at Line 5 c) Compile Erroe at line 5 d) Runtime Error</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">Answer : </span></b><span style="color: blue;">A</span><span class="Apple-tab-span" style="color: blue; white-space: pre;"> </span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="color: blue; white-space: pre;"><br /></span></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation :</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> From the above code is we can observe the anonymous inner class implementation. An Inner Class Can extends and implements the interface or Class. From the Question annoynous class extends the Object Class and overrides the methods hashCode() returns a value. Result for the above question is 99. We cannot get any Compile time, run time errors.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>2. Null is a keyword in Java ?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. True B. False.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Answer : Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>3. Which is a valid keyword in java? </b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>interface B.<span class="Apple-tab-span" style="white-space: pre;"> </span>string<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>Float<span class="Apple-tab-span" style="white-space: pre;"> </span>D.<span class="Apple-tab-span" style="white-space: pre;"> </span>unsigned<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above Question( which is valid keyword) interface is a valid keyword. String Option B,C is Wrong because “String”, “Float”, is a Class type in Java. Keyword for Java primitive data types is “float”(Keyword). Even Option D is also wrong. </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>4. From the below Options what are default values for array elements of types indicated ?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">1. int -> 0 2.<span class="Apple-tab-span" style="white-space: pre;"> </span>String -> "null" 3.<span class="Apple-tab-span" style="white-space: pre;"> </span>Dog -> null 4.<span class="Apple-tab-span" style="white-space: pre;"> </span>char -> '\u0000'</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">5. float -> 0.0f 6.<span class="Apple-tab-span" style="white-space: pre;"> </span>boolean -> true</span><br />
<br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> 1, 3, 4, 5 B. 1, 2, 3, 4<span class="Apple-tab-span" style="white-space: pre;"> </span> C.<span class="Apple-tab-span" style="white-space: pre;"> </span>1,2, 4, 5, D.<span class="Apple-tab-span" style="white-space: pre;"> </span>3, 4, 5, 6<span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above case value of array data types default values for the 1,3,4,5 are correct. But Option no 2) is wrong because default values of String is null, without quotes. Option no 6) is wrong because the default value for boolean is false.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b> 5) Which of the following is valid declaration for array? </b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">1.<span class="Apple-tab-span" style="white-space: pre;"> </span>char [] startsWith [];</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">2.<span class="Apple-tab-span" style="white-space: pre;"> </span>int [] Score;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">3.<span class="Apple-tab-span" style="white-space: pre;"> </span>char [8] dist;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">4.<span class="Apple-tab-span" style="white-space: pre;"> </span>School students[];</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">5.<span class="Apple-tab-span" style="white-space: pre;"> </span>School students[5];</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">1, 2, 4<span class="Apple-tab-span" style="white-space: pre;"> </span> B. 2,, 4, 5 C.<span class="Apple-tab-span" style="white-space: pre;"> </span>2, 3, 4<span class="Apple-tab-span" style="white-space: pre;"> </span>D. All are correct.<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above question Options in a list 1,2,4 are valid array declarations. In which brackets are allowed in the both sides of the variable. So options 1, 2, 4 are recommended. But Option number 3,5 are wrongs because size of array is declared when the array is initialized (JVM needs to know the space how much is allocate for array is on the basis of the size that is specified.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>5. Which of the following method or a class is not allowed directly to stop a thread ?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> A. notify() B. wait()<span class="Apple-tab-span" style="white-space: pre;"> </span> C. InputStream access<span class="Apple-tab-span" style="white-space: pre;"> </span> D.<span class="Apple-tab-span" style="white-space: pre;"> </span>sleep()<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option 1) notify() is used to wake up the thread that is waiting on the Object monitor. Option 2) is wrong, because this method wait() makes the current thread wait for another thread attempts to involve the notify(), Option 3)also wrong InputStream Class Methods blocks the input data, when the end of the Stream is detected, or any exception is thrown. Here Blocking stands for stopping the thread for certain amount of time. Option d) is also wrong Sleep() is also allows the thread to sleep for some milli seconds of time. </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>6.<span class="Apple-tab-span" style="white-space: pre;"> </span>In this Below which of the following statement is suitable to start the thread?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class ABC implements Runnable { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Public static void main(String args[]) {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> /**** Some Code is Missing Here *****/</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void run() {} </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A. Thread t = new Thread(ABC);<span class="Apple-tab-span" style="white-space: pre;"> </span> B. Thread t = new Thread(ABC); t.start();<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> C. ABC run = new ABC(); Thread t = new Thread(run); t.start();<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> D. Thread t = new Thread(); t.run();<span class="Apple-tab-span" style="white-space: pre;"> </span></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option C</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option c is suitable to start the thread, because Runnable is an interface we cannot instantiate the Runnable Interface directly, by creating the object of sub class ABC, pass the object of ABC Class to thread class as an argument, then start the thread.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Option A), B), D) are wrong because Thread is not extended to ABC Class, then how we instantiate for the Thread Class.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><b><span style="color: purple;">7.</span></b><span style="color: blue;"> </span></span><b><span style="color: purple; font-family: Arial, Helvetica, sans-serif;">What is the Ouput of this Program? </span></b><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public void Valid(int i) { </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int i = 1; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int j=10;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if(i) // Line No 5 {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(i); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> else {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("j"); </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">}</span><br />
<b style="color: purple; font-family: Arial, Helvetica, sans-serif;"><br /></b>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A.Compilation fails. B. i</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> C. y</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> D. Run time Error or Exception</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option A</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation:</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">From the above Program we can understand that at line number five we get the compile time error, because required type is Boolean, found is int.</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>9.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excepted Out Put Of the Following program ?</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">public class BoolTest {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String [] args) </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int count = 0;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Boolean a1 = new Boolean("TRUE");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Boolean a2 = new Boolean("true");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Boolean a3 = new Boolean("tRuE");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> Boolean a4 = new Boolean("false");</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if (a1 == a2) // Line 8</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> count = 1;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if (a1.equals(a2) )// Line 10</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> count = count+ 10;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if (a2 == a4) // Line 12</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> count = count + 100;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if (a2.equals(a4) )// Line 14</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> count = count + 1000;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> if (a2.equals(a3) ) // Line 16</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> count = count + 10000;</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println("count = " + count);</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> A.<span class="Apple-tab-span" style="white-space: pre;"> </span>0<span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">B.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">1</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">10</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">D.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">10010</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option D</span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>Explanation :</b></span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">In the Above Question Line number 10 compilation fails because a1 and a2 are different references or objects. Line 10 and16 are succeed because of Boolean String constructors, Line No 12 and 16 fails because true is not equals to false.</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b>10.<span class="Apple-tab-span" style="white-space: pre;"> </span>What is the Excepted Output?</b></span><br />
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> class Hill </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">{ </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> public static void main(String[] args) </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> {</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int a1 = 5; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> int a2 = 6; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> String k1 = "7"; </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> System.out.println(a1 + a2 + k1); // Line No 6</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> } </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"> }</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">A.<span class="Apple-tab-span" style="white-space: pre;"> </span>18<span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">B.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">117</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">C.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">567</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">D.</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Compiler error</span><span class="Apple-tab-span" style="color: blue; font-family: Arial, Helvetica, sans-serif; white-space: pre;"> </span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Answer: Option B</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7667461905722877";
google_ad_host = "pub-1556223355139109";
/* Horizontal Long */
google_ad_slot = "8892090744";
google_ad_width = 970;
google_ad_height = 90;
//-->
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">For More Written Test Questions and Answers</span><br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Arial, Helvetica, sans-serif;"> <span style="font-size: large;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and.html" target="_blank">1</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-and_14.html" target="_blank">2</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iii.html" target="_blank">3</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-iv.html" target="_blank">4</a> <a href="http://javajavax.blogspot.in/2013/08/core-java-written-test-questions-v.html" target="_blank">5</a></b></span></span><span style="font-size: large;"> <span style="font-family: Arial, Helvetica, sans-serif;"> <b><a href="http://javajavax.blogspot.in/2013/08/core-java-written-questions-vi.html" target="_blank">6</a></b></span></span><br />
<span style="font-size: large;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<span style="font-size: large;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<span style="font-size: large;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<span style="font-size: large;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com1tag:blogger.com,1999:blog-1195631660823777475.post-84767949177606776112013-08-04T21:33:00.000-07:002013-08-14T06:23:07.565-07:00HashMap Vs HashTable|Difference between HashMap and HashTable with Realtime Example<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b>Difference between Hashmap and Hashtable, HashMap Vs HashTable, HashMap Realtime Example, HashTable Realtime Example, Difference between HashMap and Hashtable with Example, HashTable Vs HashMap, Difference HashMap and HashTable with Realtime Examples.</b></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:RelyOnVML/>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
</div>
<div style="color: red;">
<b><span style="font-family: Arial,Helvetica,sans-serif; font-size: large;">HashMap Vs HashTable ? Is it Possible to make HashMap synchronized </span><span style="font-family: Arial,Helvetica,sans-serif; font-size: large;">?</span></b></div>
<div style="color: purple;">
<br /></div>
<div class="MsoNormal" style="background: none repeat scroll 0% 0% white; color: purple; line-height: 18pt; margin-bottom: 12pt;">
<b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">HashTable Vs HashMap</span></b></div>
<div class="MsoNormal" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> In Java Collection Frame work Difference
between HashMap and HashTable is one most Frequently Asked question in Java
interview for Freshers,2+,3+,5+,6+ Experience also. Candidate’s who are going
to attend for the Interview must be perfect in Core java and Collection Frame
Work. In this Collection Frame Work we explained the Difference HashMap
and HashTable is most often asked in the
Interview, So Candidate must be Prefect in this Sections. </span></div>
<div class="MsoNormal" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBxtBKUizorDcgXpBNDQml1JS7MsXoe6G1dToj2Siukii1AtPR5hqxg_l8cmKwpTTTmkgo5PrXHe5RAP8aUUx9_CtjPlaI57Q5Nt9JjfeFkrxT124SYxel2UYcBe8QnjkEeaerbhzmHOM/s1600/cooltext1140993649.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="266" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBxtBKUizorDcgXpBNDQml1JS7MsXoe6G1dToj2Siukii1AtPR5hqxg_l8cmKwpTTTmkgo5PrXHe5RAP8aUUx9_CtjPlaI57Q5Nt9JjfeFkrxT124SYxel2UYcBe8QnjkEeaerbhzmHOM/s320/cooltext1140993649.png" width="320" /></a></span></div>
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">
</span></div>
<div class="MsoNormal" style="background: none repeat scroll 0% 0% white; color: purple; line-height: 18pt; margin-bottom: 12pt;">
<b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">Difference Between HashMap and Hashtable
in Java</span></b></div>
<div class="MsoNormal" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> Hashtable and HashMap both of them
implements Map Interface, But there are some difference between them, that
helps to decide whether to Hashtable or HashMap in Java.</span></div>
<div class="MsoListParagraphCxSpFirst" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt; text-indent: -0.25in;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> 1)<span style="font: 7pt "Times New Roman";"> </span></span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">HashMap is Similar to Hashtable, but its not
Sychronized and allows null values. HashMap represented as key value pair in
which both Key, Value allows null value.</span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt; text-indent: -0.25in;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> 2)<span style="font: 7pt "Times New Roman";"> </span></span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">One of the main Difference between HashMap and
Hashtable, HashMap is not synchronized whereas Hashtable is synchronized. Hashtable
is thread safe and hashtable is not threadsafe(allows multiple threads to share
a resource or object).</span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt; text-indent: -0.25in;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> 3)<span style="font: 7pt "Times New Roman";">
</span></span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">From Java 5 Version introduces the
ConcurrentHashMap which is an alternative for HashMap and has better
performance than Hashtable in java.</span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt; text-indent: -0.25in;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> 4)<span style="font: 7pt "Times New Roman";">
</span></span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">Another Major Significant Difference is
Iterator in HashMap is fail and fast safe iterator, While enumerator is used
for retrieving the data in thread safe manner, that throws
ConcurrentModificationException, when any another is trying to modify the data
in map.</span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt; text-indent: -0.25in;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> 5)<span style="font: 7pt "Times New Roman";">
</span></span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">Another final Difference between Hashtable and HashMap in which
due to thread safe and synchronization Hashtable is very slow compare to
HashMap because of single threaded approach.</span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> </span><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"></span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">Synchronized.</span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin-bottom: 12pt;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> </span><b style="color: purple;"><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">Description
for New Terms</span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin: 0in 0in 12pt 0.75in; text-indent: -0.25in;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"> </span><b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">1)<span style="font: 7pt "Times New Roman";"> </span></span></b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">Sychronization
is process that allows one thread to access the Hashtable, It means first of
all it holds the lock on the object of Hashtable while any thread is going to
access the Hashtable.</span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin: 0in 0in 12pt 0.75in; text-indent: -0.25in;">
<b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">2)<span style="font: 7pt "Times New Roman";"> </span></span></b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">Another
Term is Fail-safe is related to Iterators. If an Iterator or ListIterator is
created on the Collection Object. If any thread tries to modify the that
Collection Object then it throws ConcurrentModfificationException. </span></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin: 0in 0in 12pt 0.75in; text-indent: -0.25in;">
<b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"><span style="color: red;">HashMap Sychronization Using Collections Method</span></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin: 0in 0in 12pt 0.75in; text-indent: -0.25in;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"><span style="color: red;"><span style="color: blue;">In Java Collection HashMap Can be Sychronized by using Collections sychronizedMap(HashMap) method.</span></span></span><b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;"><span style="color: red;"> </span> </span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin: 0in 0in 12pt 0.75in; text-indent: -0.25in;">
<b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">3)<span style="font: 7pt "Times New Roman";"> </span></span></b><span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">HashMap
can be Sychronized by using Collections Class Method (i.e) synchronizedMap(HashMap).</span></div>
<div class="MsoListParagraphCxSpLast" style="background: none repeat scroll 0% 0% white; color: blue; line-height: 18pt; margin: 0in 0in 12pt 0.75in;">
<span style="font-family: "Trebuchet MS","sans-serif"; font-size: 12pt;">Ex: Map
m=Collections.synchronizedMap(HashMap);</span></div>
<div class="MsoNormal">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-60622245117212359852013-08-03T04:21:00.000-07:002013-08-03T04:30:34.812-07:00Java Developer 1|one Year Experience Resume Download Sample Format<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b>java 1 year experience resume, java developer resume, resume java developer, Java 1 year Experience Resume Download, Java 1 year Exp Resume Sample, Java 1 year Exp Resume Format, Java one year experience Resume format download, Java 1 Year Exp Resume Format Download.</b></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b><br /></b></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><b><span style="color: red;">Java Developer One Year Experience Sample Download</span></b></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<br /></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><span style="color: red;"><span style="color: blue;"> Java Developer who were captured the one year experience, then it's time to get into best company who offering huge hikes in salary. Before applying to the Java one year experience job it requires to design the resume in particular format that improves your resume in much more effective manner. Candidate can find their one year java experience from here.</span></span></span></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<br /></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYi-WDa4bB7-fS_m9OPHE3q9OHCsVmTLkQJi_eBzLLCR0huQ4B_AaLAcCNsi0wxk1e_35gpUrXBYJ_bFv79Op3t0kTeiGsRXOLouuLFbephsQAGAkXttlj1dximxn6YOLhP23GOGenrug/s1600/images.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Java 1 Exp Resume" border="0" height="80" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYi-WDa4bB7-fS_m9OPHE3q9OHCsVmTLkQJi_eBzLLCR0huQ4B_AaLAcCNsi0wxk1e_35gpUrXBYJ_bFv79Op3t0kTeiGsRXOLouuLFbephsQAGAkXttlj1dximxn6YOLhP23GOGenrug/s400/images.jpg" title="Java 1 Exp Resume" width="400" /></a></div>
<br /></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<br /></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<br /></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<br /></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;"><span style="color: red;"><span style="color: blue;"> </span></span><b><br /></b></span></div>
</div>
<span style="font-size: x-small;"><a href="http://www.docstoc.com/docs/160194983/Java-1-year-Exp-Resume">Java 1 year Exp Resume</a></span><br />
<br />
<br />
<object data="http://viewer.docstoc.com/" height="550" id="_ds_160194983" name="_ds_160194983" type="application/x-shockwave-flash" width="630"><param name="FlashVars" value="doc_id=160194983&mem_id=31666433&doc_type=doc&fullscreen=0&allowdownload=1" /><param name="movie" value="http://viewer.docstoc.com/"/><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /></object><script type="text/javascript">var docstoc_docid="160194983";var docstoc_title="Java 1 year Exp Resume";var docstoc_urltitle="Java 1 year Exp Resume";</script><script src="http://i.docstoccdn.com/js/check-flash.js" type="text/javascript"></script>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com1tag:blogger.com,1999:blog-1195631660823777475.post-17320863935171401312013-08-02T20:58:00.000-07:002013-08-02T21:04:22.785-07:00MyEclipse IDE 8.6|8.5 Software Download for Windows7|Linux|Mac <div dir="ltr" style="text-align: left;" trbidi="on">
<b style="color: purple;"><span style="font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif;">myeclipse download, myeclipse download for windows 7, download myeclipse,myeclipse 8.6 download,myeclipse 8.5 download, myeclipse 6.0 download, MyEclipse IDE Download for windows 7, MyEclipse Download for Linux, MyEclipse Download For Mac, MyEclipse SR1 2013 for Windows, MyEclipse SR1 2013 for Linux, MyEclipse SR1 2013 for Mac. </span></span></b><br />
<b style="color: purple;"><span style="font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif;"><br /></span></span></b>
<b style="color: purple;"><span style="font-size: small;"><span style="font-family: Arial,Helvetica,sans-serif;"> </span></span></b><b style="color: red;">MyEclipse IDE Software Download SR1 2013 For All Operating System</b><br />
<br style="color: blue;" />
<span style="color: blue;">MyEclipse is large set of required tools for java and web development Programs. Here we are Providing MyEclipse 2013 SR1 Download for all Operating such as Linux, Windows 7, Mac. Even Here we are providing the MyEclipse 8.6 Version Download. My Eclipse having Built in Plugins for various frame works such as Struts, Hibernate, Spring. My Eclipse is advanced of Eclipse. </span><br />
<br />
<br />
<br />
<span style="color: blue;"> <div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkH4ursjwFV1u1Gl-W7akp8BCT-vUGNFa1I9RBnt5ctzaVR7kyxUTi867ymTrh9asTDxhgX5euJbTZ9CO8ka0vsg8opPfAMzPW2JTPSQ0N62WpTDeq3u920RFzzBpCUyL0ajks3srgBrA/s1600/myeclipse.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="MyEclipse IDE Software Download" border="0" height="178" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkH4ursjwFV1u1Gl-W7akp8BCT-vUGNFa1I9RBnt5ctzaVR7kyxUTi867ymTrh9asTDxhgX5euJbTZ9CO8ka0vsg8opPfAMzPW2JTPSQ0N62WpTDeq3u920RFzzBpCUyL0ajks3srgBrA/s320/myeclipse.png" title="MyEclipse IDE Software Download" width="320" /></a></div>
</span><br />
<b><span style="color: #4b4d4a; font-family: "Arial","sans-serif"; font-size: 12pt; line-height: 18px;"><br /></span></b>
<span style="font-family: "Arial","sans-serif"; font-size: 12pt; line-height: 18px;"><b><span style="color: #4b4d4a;"> MyEclipse 2013 SR1 (Windows) </span></b></span><a href="http://www.myeclipseide.com/Downloads-index-req-getit-lid-159.html" target="_blank"><b><span style="color: red; font-size: 14pt; line-height: 115%;"><span style="color: red;">Download</span></span></b></a><br />
<br />
<div class="MsoNormal">
<b><span style="color: red; font-size: 14pt; line-height: 115%;"><o:p></o:p></span></b></div>
<div class="MsoNormal">
<b><span style="color: red; font-size: 20pt; line-height: 115%;"><o:p></o:p></span></b></div>
<b><span style="color: #4b4d4a; font-family: "Arial","sans-serif"; font-size: 12pt; line-height: 115%;"> </span></b><span style="color: #4b4d4a; font-family: "Arial","sans-serif"; font-size: 12pt; line-height: 115%;"><b> MyEclipse 2013 SR1 (Linux) </b></span><a href="http://www.myeclipseide.com/Downloads-index-req-getit-lid-53.html" target="_blank"><b><span style="color: red; font-size: 14pt; line-height: 115%;"><span style="color: red;">Download</span></span></b></a><br />
<br />
<div class="MsoNormal">
<b><span style="color: red; font-size: 14pt; line-height: 115%;"><o:p></o:p></span></b></div>
<b><span style="color: #4b4d4a; font-family: "Arial","sans-serif"; font-size: 12pt; line-height: 115%;"> </span></b><b><span style="color: #4b4d4a; font-family: "Arial","sans-serif"; font-size: 12pt; line-height: 115%;"> MyEclipse 2013 SR1 (Mac) </span></b><a href="http://www.myeclipseide.com/Downloads-index-req-getit-lid-55.html" target="_blank"><b><span style="color: red; font-size: 14pt; line-height: 115%;"><span style="color: red;">Download</span></span></b></a><br />
<div class="MsoNormal">
<b><span style="color: #4b4d4a; font-family: "Arial","sans-serif"; font-size: 12pt; line-height: 115%;"><br /></span></b><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]--><b><span style="color: #4b4d4a; font-family: "Arial","sans-serif"; font-size: 12pt; line-height: 115%;"> MyEclipse 2013 SR1 (Archived Update Site) </span><a href="http://www.myeclipseide.com/Downloads-index-req-getit-lid-56.html" target="_blank"><span style="color: red; font-size: 14pt; line-height: 115%;"><span style="color: red;">Download</span></span></a></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="color: red; font-size: 14pt; line-height: 115%;"><span style="color: red;"><span style="color: black;"> My Eclipse 8.6 Version </span> <a href="http://www.4shared.com/get/A7F_prOh/myeclipse-860-win32.html" target="_blank">Download </a></span></span></b></div>
<b><span style="color: red; font-size: 14pt; line-height: 115%;"><a href="http://draft.blogger.com/Downloads-index-req-getit-lid-53.html"><span style="color: red;"></span></a></span></b><br />
<div class="MsoNormal">
<b><span style="color: red; font-size: 14pt; line-height: 115%;"><o:p></o:p></span></b></div>
<br style="color: blue;" />
<br />
<br />
<a href="http://draft.blogger.com/"></a><span id="goog_1798965695"></span><span id="goog_1798965696"></span><a href="http://draft.blogger.com/"></a><span id="goog_1798965697"></span><span id="goog_1798965698"></span><br /></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-56617537951316417752013-08-02T04:44:00.003-07:002013-08-02T04:44:57.215-07:00Freshers Core Java Interview Questions and Answers Pdf Fomat Download<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple; font-family: Arial, Helvetica, sans-serif;">Freshers Core Java interview Questions in Pdf,core java interview questions for Freshers, core java interview questions and answers, core java interview questions and answers pdf, java core interview questions, core java collections interview questions, core java interview questions pdf format, core java interview pdf download, Core Java interview and answers pdf download, Freshers Core java interview questions, Core Java Interview Questions for Freshers</span></b><br />
<div>
<br />
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;">Core Interview Questions for the Freshers in Pdf Format is available here. Here we listed the Core Java Interview Questions in Clear format. We Provided interview questions on Collections, OOPs, Exception Handling, Thread Concept etc in details. Freshers who are going to interview this would helpful for them </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif;">to prepare for java interview as a Fresher.</span><br />
<br />
<br />
<br /></div>
</div>
<div style="-x-system-font: none; display: block; font-family: Helvetica,Arial,Sans-serif; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 12px auto 6px auto;">
<a href="http://www.scribd.com/doc/157635000/Java-Interview" style="text-decoration: underline;" title="View Java Interview on Scribd">Java Interview</a></div>
<div style="-x-system-font: none; display: block; font-family: Helvetica,Arial,Sans-serif; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 12px auto 6px auto;">
<br /></div>
<iframe class="scribd_iframe_embed" data-aspect-ratio="undefined" data-auto-height="false" frameborder="0" height="600" id="doc_82964" scrolling="no" src="http://www.scribd.com/embeds/157635000/content?start_page=1&view_mode=scroll&show_recommendations=true" width="100%"></iframe></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-16656713311290879332013-08-01T04:37:00.003-07:002013-08-01T04:37:42.515-07:00Thinking in java pdf by bruce eckel 1st 2nd 4th 5th edison Download Ebook<div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:RelyOnVML/>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves>false</w:TrackMoves>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<br />
<div class="MsoNormal" style="color: purple;">
</div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<b><span style="font-size: large;"> Thinking in java<span class="apple-converted-space"> </span>thinking
in java pdf, thinking in java by bruce eckel, bruce eckel thinking in java,
thinking in java 5th edition pdf,<span class="apple-converted-space"> </span>thinking
in java ebook, thinking in java pdf download, thinking in java latest edison,
thinking in java bruce eckel
thinking in java 4th edison, download thinking in java 4th edition, pdf
thinking in java free download, thinking in java 6<sup>th</sup> Edison pdf,
thinking in java by bruce eckel latest edison.</span></b></div>
<div style="color: purple; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhspUuqcpG6O3-8lznT7igd9pIyKjNuEejwYwoVEdZNhEN_i2exE10O2QEHUI0za4qKnNVtJWVMdRyAkrMOYGprHPelRi2GYvXwvbR2ft_jzEZA8c6HYD8GwnjBiTrM1ygfm6PXRPvZdho/s1600/Thinking+in+Java.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Thinking In Java" border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhspUuqcpG6O3-8lznT7igd9pIyKjNuEejwYwoVEdZNhEN_i2exE10O2QEHUI0za4qKnNVtJWVMdRyAkrMOYGprHPelRi2GYvXwvbR2ft_jzEZA8c6HYD8GwnjBiTrM1ygfm6PXRPvZdho/s320/Thinking+in+Java.png" title="Thinking In Java" width="241" /></a></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<span style="font-size: small;"><br /></span></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;">Bruce Eckel is author for
Thinking in Java. He Released the Thinking in java in versions editions.
Initially he released the Prentice Hall 1998, 2nd Edison, 2000, 3rd Edison, 2003, 4th Edison, 2006, 5th Edison, 2011, 6th Edison in Progress.
And he also release the Thinking</span></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif;">
<span style="font-size: small;">in C++ in various Edison PH
1995, 2nd Edison 2000, Volume 2 with Chuk Allison, 2003.</span></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<span style="font-size: small;">For Searching Thinking in java
Pdf Free Downloads, we putting all the edision together for download of
Thinking in java pdf of all edision 1st, 2nd, 3rd, 4th Edisions Only.</span><br />
<br />
<br />
</div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<span style="font-size: small;"><b> Thinking in Java 2nd Edison <span style="color: red;"> <a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-2nd-edision-pdf-free.html" target="_blank">Online View & Download</a></span></b></span></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<span style="font-size: small;"><br /></span></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: small;"><b> Thinking in Java 3rd Edison <span style="color: red;"> </span></b></span><b><span style="color: red;"><a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-3rd-edision-by-bruce.html" target="_blank"><span style="color: red;">Online View & Download</span></a></span></b><span style="color: black; font-size: 13.5pt;"></span></div>
</div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<span style="font-size: small;"><b> Thinking in Java 4th Edison <span style="color: red;"> <a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-4th-edison-by-bruce.html" target="_blank">Online View & Download</a></span></b><br />
</span></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<span style="font-size: small;"><b><span style="color: red;"> </span></b>
</span></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="color: blue; font-family: Arial,Helvetica,sans-serif; margin: 0in 0in 0.0001pt;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com1tag:blogger.com,1999:blog-1195631660823777475.post-52981382886676521232013-08-01T04:31:00.001-07:002013-08-01T04:31:55.226-07:00Thinking in Java 4th Edison by Bruce Eckel Pdf Free Download EBook<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: purple; font-family: Arial,Helvetica,sans-serif; font-size: large;"><b>Thinking in java 4th Edison<span class="apple-converted-space">, </span>thinking
in
java pdf 4th Edison Free Download, thinking in java 4th Edison by bruce
eckel, bruce eckel thinking in java 4th Edison, thinking in java 4th
Edison ebook, thinking in java 4th Edison Free Download, </b></span><b><span style="font-size: large;"><span style="color: purple; font-family: Arial,Helvetica,sans-serif;">thinking in java Free Download 4th Edision.</span></span></b><br />
<br />
<br />
<br /></div>
<div style="-x-system-font: none; display: block; font-family: Helvetica,Arial,Sans-serif; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 12px auto 6px auto;">
<a href="http://www.scribd.com/doc/157401431/Thinking-in-Java-4th-Edition" style="text-decoration: underline;" title="View Thinking in Java 4th Edition on Scribd">Thinking in Java 4th Edition</a> </div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-2nd-edision-pdf-free.html" target="_blank"><span style="color: red; font-size: large;"><b style="font-family: Arial,Helvetica,sans-serif;">Thinking In Java 2nd Edison Ebook</b></span> </a><br />
<br />
<a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-3rd-edision-by-bruce.html" target="_blank"><span style="color: red; font-size: large;"><b style="font-family: Arial,Helvetica,sans-serif;">Thinking In Java 3rd Edison Ebook</b></span></a> </div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com1tag:blogger.com,1999:blog-1195631660823777475.post-19465058058780293002013-08-01T04:23:00.001-07:002013-08-01T04:32:58.765-07:00Thinking in Java 3rd Edision by Bruce Eckel Pdf Free Download<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: purple; font-family: Arial,Helvetica,sans-serif; font-size: large;"><b>Thinking in java 3rd Edison<span class="apple-converted-space">, </span>thinking
in
java pdf 3rd Edison Free Download, thinking in java 3rd Edison by bruce
eckel, bruce eckel thinking in java 3rd Edison, thinking in java 3rd
Edison ebook, thinking in java 3rd Edison Free Download, </b></span><b><span style="font-size: large;"><span style="color: purple; font-family: Arial,Helvetica,sans-serif;">thinking in java Free Download 3rd Edision.</span></span></b><br />
<br />
<br /></div>
<div style="-x-system-font: none; display: block; font-family: Helvetica,Arial,Sans-serif; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 12px auto 6px auto;">
<div style="-x-system-font: none; display: block; font-family: Helvetica,Arial,Sans-serif; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 12px auto 6px auto;">
<a href="http://www.scribd.com/doc/157404322/Thinking-in-java-3-rd-Edision-Pdf" style="text-decoration: underline;" title="View Thinking in java 3 rd Edision Pdf on Scribd">Thinking in java 3 rd Edision Pdf</a> </div>
</div>
<iframe class="scribd_iframe_embed" data-aspect-ratio="0.772922022279349" data-auto-height="false" frameborder="0" height="600" id="doc_64986" scrolling="no" src="http://www.scribd.com/embeds/157404322/content?start_page=1&view_mode=scroll&access_key=key-19b1wskpas920kyoxlj3&show_recommendations=true" width="100%"></iframe>
<span style="font-size: large;"><b style="color: red;"> </b></span><br />
<br />
<a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-2nd-edision-pdf-free.html" target="_blank"><span style="font-size: large;"><b style="color: red;"></b></span></a><span style="font-size: large;"><b style="color: red;"><a href="http://draft.blogger.com/blogger.g?blogID=1195631660823777475">Thinking In Java 2nd Edison</a> </b></span><br />
<br />
<a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-4th-edison-by-bruce.html" target="_blank"><span style="font-size: large;"><b style="color: red;"></b></span></a><span style="font-size: large;"><b style="color: red;"><a href="http://draft.blogger.com/blogger.g?blogID=1195631660823777475">Thinking In Java 4th Edison</a> </b></span><br />
<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-51108940359973197842013-08-01T04:18:00.001-07:002013-08-01T04:34:21.616-07:00Thinking in Java 2nd Edision Pdf Free Download<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: purple; font-family: Arial,Helvetica,sans-serif; font-size: large;"><b>Thinking in java 2nd Edison<span class="apple-converted-space">, </span>thinking
in java pdf 2nd Edison Free Download, thinking in java 2nd Edison by bruce eckel, bruce eckel thinking in java 2nd Edison, thinking in java 2nd Edison ebook, thinking in java 2nd Edison Free Download, </b></span><b><span style="font-size: large;"><span style="color: purple; font-family: Arial,Helvetica,sans-serif;">thinking in java Free Download 2nd Edision</span></span></b><br />
<br />
<b><span style="font-size: large;"><span style="color: purple; font-family: Arial,Helvetica,sans-serif;"> </span> </span></b></div>
<a href="http://www.scribd.com/doc/157401414/Thinking-in-Java-Second-Edition" style="text-decoration: underline;" title="View Thinking in Java Second Edition on Scribd">Thinking in Java Second Edition</a> <iframe class="scribd_iframe_embed" data-aspect-ratio="0.772922022279349" data-auto-height="false" frameborder="0" height="800" id="doc_76708" scrolling="no" src="http://www.scribd.com/embeds/157401414/content?start_page=1&view_mode=scroll&access_key=key-64b91ginvmsdaaxlg8v&show_recommendations=true" width="600"></iframe><br />
<br />
<br />
<br />
<a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-3rd-edision-by-bruce.html" target="_blank"><span style="color: red; font-family: Arial,Helvetica,sans-serif; font-size: large;"><b>Thinking In Java 3rd Edison</b></span></a><br />
<br />
<a href="http://javajavax.blogspot.in/2013/08/thinking-in-java-4th-edison-by-bruce.html" target="_blank"><span style="color: red; font-family: Arial,Helvetica,sans-serif; font-size: large;"><b>Thinking In Java 4th Edison</b></span></a><span style="color: red; font-family: Arial,Helvetica,sans-serif; font-size: large;"><b> </b></span></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-90471972195484554492013-07-29T06:22:00.000-07:002013-07-29T06:28:39.679-07:00How to Set Path & Classpath in Windows 8 for Environmental Variables and Command Prompt.<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="color: purple; font-family: Arial,Helvetica,sans-serif; font-size: large;">set path,set path in java, set path in windows, set path in linux, java set path, set path command, set path path,set path in ubuntu, set java path,set path java, set path in windows 8, windows 8 set path,set path windows 8,linux set path, set path linux, How to Set Path for Jdk bi directory, How to set path for Java bin in Windows 8, How to Set Classpath for Environmental Variables in Windows 8, How to Set path For Enviromental Variables in Windows 8.</span></b><br />
<br />
<br />
<br />
<div style="color: red;">
<b><br /><span style="font-family: Arial,Helvetica,sans-serif;">How to Set Path & Classpath in Windows 8 for Environmental Variables and Command Prompt.</span></b><br />
<b><span style="font-family: Arial,Helvetica,sans-serif;"><br /></span></b>
<b><span style="font-family: Arial,Helvetica,sans-serif;"><br /></span></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6MGuc1uk6jg8nKSt4ka9Y5dcjAOjtPFuKmb-RyH0KgXuh5btj88wMzXSu_2omCVLG7zeDIzsyXVdS-Ofui6HKKa9b9Vq1RizbLMJpBjFBI5M6IS2_hsYYfZYNy2hNtKgIIM1pVx4O2GA/s1600/inline-2-windows-8-logo-pgram.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Set path & Classpath in windows 8" border="0" height="122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6MGuc1uk6jg8nKSt4ka9Y5dcjAOjtPFuKmb-RyH0KgXuh5btj88wMzXSu_2omCVLG7zeDIzsyXVdS-Ofui6HKKa9b9Vq1RizbLMJpBjFBI5M6IS2_hsYYfZYNy2hNtKgIIM1pVx4O2GA/s320/inline-2-windows-8-logo-pgram.jpg" title="Set path & Classpath in windows 8" width="320" /></a></div>
<b><span style="font-family: Arial,Helvetica,sans-serif;"><br /></span></b></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<b><span style="color: purple; font-family: Arial,Helvetica,sans-serif;">Setting Path For Java JDK in Command Prompt :</span></b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsF-RVAPe1jiRDjkw5MWFoqqdGnDgUp9W4-c2mLqyo97GHAbnfBN8Y1yfYNe0gzC0PNPIBQlffBrsWGNH5TCnHJM3_s8GrIWsjix5MhInudCS8SH0dizAgGCHMYnmfP33I0intX4bt6VE/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Set Path in Windows 8" border="0" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsF-RVAPe1jiRDjkw5MWFoqqdGnDgUp9W4-c2mLqyo97GHAbnfBN8Y1yfYNe0gzC0PNPIBQlffBrsWGNH5TCnHJM3_s8GrIWsjix5MhInudCS8SH0dizAgGCHMYnmfP33I0intX4bt6VE/s640/1.png" title="Set Path in Windows 8" width="640" /></a></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"> set Path=C:\program Files\Java\jdk1.7\bin;.;</span><br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<b style="color: red;"><span style="font-family: Arial,Helvetica,sans-serif;">How to set path for Java Jdk Bin Directory for Environmental Variables :</span></b><br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">1. Using Key board Strokes Ctrl+E Open the My Computers.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">2. In Menus Options Second Option is Computer Click it.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">3. Then it shows System Properities Option right to the window, Click it.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">4. After it shows a options on left side click the Advanced System Setting Option.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">5. Go to the Environmental variables.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">6. Search for the path & Class path in new window</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">6. Then add path of JDK bin folder as C:\program Files\Java\jdk1.7\bin;.;</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">7. Finally Click Ok.</span><br />
<br />
<span style="color: red;"><br /></span>
<b><a href="http://javajavax.blogspot.in/2013/07/how-to-set-path-classpath-in-windows-8_29.html" target="_blank"><span style="color: red;">Click Here To Set Path & Classpath in Environmental variables in Windows 8 Diagramatic representation</span></a></b><br />
<br />
<b style="color: purple;"><span style="font-family: Arial,Helvetica,sans-serif;"><br /></span></b>
<b style="color: purple;"><span style="font-family: Arial,Helvetica,sans-serif;"><br /></span></b>
<b style="color: purple;"><span style="font-family: Arial,Helvetica,sans-serif;">Setting Classpath for Servlet-api.jar and Ojdbc.jar in Windows 8.</span></b><br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7U02RAFemIZBLHdV0F6FU1gKbfvOouJ_R8Ws6W8ZD8ecIpQ2aISYy8_wz_kEXz4y8X-vt3yCKyZFR2g4v3vN4jlZn-staP-rkudJ5LZLCfzBdHrNJiHqIeoBBujQ5vsqmLjUQ2uIZ5KQ/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Set Classpath in Window 8 Command Prompt" border="0" height="84" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7U02RAFemIZBLHdV0F6FU1gKbfvOouJ_R8Ws6W8ZD8ecIpQ2aISYy8_wz_kEXz4y8X-vt3yCKyZFR2g4v3vN4jlZn-staP-rkudJ5LZLCfzBdHrNJiHqIeoBBujQ5vsqmLjUQ2uIZ5KQ/s640/2.png" title="Set Classpath in Window 8 Command Prompt" width="640" /></a></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">Set classpath=C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar;.;</span><br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<b style="color: purple;"><span style="font-family: Arial,Helvetica,sans-serif;">How to set Classpath for Java Jdk Bin Directory in Enviromental Variables :</span></b><br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">1. Using Key board Strokes Ctrl+E Open the My Computers.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">2. In Menus Options Second Option is Computer Click it.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">3. Then it shows System Properities Option right to the window, Click it.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">4. After it shows a options on left side click the Advanced System Setting Option.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">5. Go to the Environmental variables.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">6. Search for the path & Class path in new window</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">6. Then add Classpath of JDK bin folder as C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar;E:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">7. Finally Click Ok.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"><br /></span>
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"><br /></span>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="color: red; font-family: "Arial","sans-serif"; font-size: 13.5pt;"><a href="http://javajavax.blogspot.in/2013/07/how-to-set-pathclasspath-for-java-jdk.html" target="_blank"><span style="color: red;">Click Here For Setting Path &
Classpath in Command Prompt & Environmental Variables For Windows
7</span></a></span></b><span style="color: red; font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="color: red; font-family: "Arial","sans-serif"; font-size: 13.5pt;"><a href="http://javajavax.blogspot.in/2013/07/how-to-set-path-classpath-in-windows-8_29.html" target="_blank"><span style="color: red;">Click Here For Setting Path &
Classpath in Environmental Variables For Windows 8</span></a></span></b><span style="color: red; font-size: 13.5pt;"><o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<br /></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" /></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-44512215276280090762013-07-29T06:20:00.002-07:002013-07-29T06:28:57.342-07:00How to Set Path & Classpath in Windows 8 for Enivormental Variables in Diagrammatic Representation<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="color: purple; font-family: Arial,Helvetica,sans-serif;">
<b><span style="font-size: large;">set path,set path in java, set path in windows, set path in linux, java set path, set path command, set path path,set path in ubuntu, set java path,set path java, set path in windows 8, windows 8 set path,set path windows 8,linux set path, set path linux, How to Set Path for Jdk bi directory,How to set path for Java bin in Windows 8, How to Set Classpath for Environmental Variables in Windows 8, How to Set path For Environmental Variables in Windows 8</span></b></div>
<br />
<br />
<b style="color: red; font-family: Arial,Helvetica,sans-serif;">How to Set Path & Classpath in Windows 8 for Environmental Variables in Diagrammatic Representation</b><br />
<b style="color: red; font-family: Arial,Helvetica,sans-serif;"> </b> <br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWXcYNaiN3CvVI9jcAKR_3ik8GuficGwc6chE9v5y_vU887FTHCPR3KGXjNuC9n6f8k1WQPwNIPfYq-wjns8n0eEzz2RHFgPqMVPsgQtw2sP3eNLVIcXqtZletjnqvBbM_hZWl8LJa2TA/s1600/inline-2-windows-8-logo-pgram+-+Copy.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWXcYNaiN3CvVI9jcAKR_3ik8GuficGwc6chE9v5y_vU887FTHCPR3KGXjNuC9n6f8k1WQPwNIPfYq-wjns8n0eEzz2RHFgPqMVPsgQtw2sP3eNLVIcXqtZletjnqvBbM_hZWl8LJa2TA/s320/inline-2-windows-8-logo-pgram+-+Copy.jpg" width="320" /></a></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br />
<br />
<b style="color: purple;"><span style="font-family: Arial,Helvetica,sans-serif;">Set Path For Java JDK in Enviromental Variables :</span></b><br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">set Path=C:\program Files\Java\jdk1.7\bin;.;</span><br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<b style="color: red;"><span style="font-family: Arial,Helvetica,sans-serif;">How to set path for Java Jdk Bin Director in Enviromental Variables</span></b><br />
<br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">1. Using Key board Strokes Ctrl+E Open the My Computers.</span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">2. In Menus Options Second Option is Computer Click it.</span><span style="color: blue; font-family: Arial,Helvetica,sans-serif;"> </span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ9vx1Cj5maMX1RjtQbcGQoHZCkXc36BboqAAttCARsBGIKXOp0FYWFkxsXxmzV2GFlbLXQqNebK-_ALH6mwidr-XQHSljZLdEU9FNc5i1yexmpKo_cStEjAacaGnJwMVmd3nb-cUFqFk/s1600/81.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Ctrl +E" border="0" height="321" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ9vx1Cj5maMX1RjtQbcGQoHZCkXc36BboqAAttCARsBGIKXOp0FYWFkxsXxmzV2GFlbLXQqNebK-_ALH6mwidr-XQHSljZLdEU9FNc5i1yexmpKo_cStEjAacaGnJwMVmd3nb-cUFqFk/s640/81.png" title="Ctrl +E" width="640" /></a></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"><br /></span>
<br />
<br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br />
<br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">3. Then it shows System Properities Option right to the window, Click it.</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-v0On5CCiB_eHWhTd4MIdvT8rnzhcEYGMXsa4Iny17SW1ccxbs92qcIOxaZKw9ojOEcnFcQ24N3fpgSSHjHO7Frr1RVBrJ9OGghZilYYPXO-u9Cgw85wYSR46M8hvlFwfGqnt65uSlmc/s1600/82.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="System Properties" border="0" height="321" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-v0On5CCiB_eHWhTd4MIdvT8rnzhcEYGMXsa4Iny17SW1ccxbs92qcIOxaZKw9ojOEcnFcQ24N3fpgSSHjHO7Frr1RVBrJ9OGghZilYYPXO-u9Cgw85wYSR46M8hvlFwfGqnt65uSlmc/s640/82.png" title="System Properties" width="640" /></a></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">4. After it shows a options on left side click the Advanced System Setting Option.</span><br />
<br />
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQoJR3ReX42r8OqsaQSiH36uzm59vFvQK-ouFkTVSjbl5WwHjNEM_vcXknvZwen6couOIpY7w9Fb8AEWWbqq9Au57iWHjkqGDWMtNWmdQAQtbu9ZPTn0swmRE5U1Xbjxg08GWSbiRNNiU/s1600/83.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Advanced System Settings" border="0" height="334" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQoJR3ReX42r8OqsaQSiH36uzm59vFvQK-ouFkTVSjbl5WwHjNEM_vcXknvZwen6couOIpY7w9Fb8AEWWbqq9Au57iWHjkqGDWMtNWmdQAQtbu9ZPTn0swmRE5U1Xbjxg08GWSbiRNNiU/s640/83.png" title="Advanced System Settings" width="640" /></a></div>
<br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">5. Go to the Environmental variables.</span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY5H5-azfNvrZ4n8uSN1vgF19f7CtnAXbjF_mZ4YtEeKGu58vvA7xijmi9mu5MiCnHg7oxQ0qBJ4y9GYcOZwHWjeLxxmwlLv2TOaevioP00SjIW70s09KCGP4fjW-bhfxX_no77AbnodE/s1600/84.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="path & Classpath in windows 8" border="0" height="354" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY5H5-azfNvrZ4n8uSN1vgF19f7CtnAXbjF_mZ4YtEeKGu58vvA7xijmi9mu5MiCnHg7oxQ0qBJ4y9GYcOZwHWjeLxxmwlLv2TOaevioP00SjIW70s09KCGP4fjW-bhfxX_no77AbnodE/s640/84.png" title="path & Classpath in windows 8" width="640" /></a></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br />
<br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">6. Search for the path & Class path in new window</span><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCPAXbFM3qU5z6o-wv1SBLekjWxWftF8B3bW5VvpeP1iiFNzJeTyqYEH4t75TMZLneweFqLVp-vobQ2QVowCcs8v4xkL5ItJv4GxjWbnTJ6xC0oGQXn5kKDlUqSCypcIQDBWS2Nz3_WMA/s1600/85.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="path & Classpath in windows 8" border="0" height="354" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCPAXbFM3qU5z6o-wv1SBLekjWxWftF8B3bW5VvpeP1iiFNzJeTyqYEH4t75TMZLneweFqLVp-vobQ2QVowCcs8v4xkL5ItJv4GxjWbnTJ6xC0oGQXn5kKDlUqSCypcIQDBWS2Nz3_WMA/s640/85.png" title="path & Classpath in windows 8" width="640" /></a></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<br />
<br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">6. Then add path of JDK bin folder as C:\program Files\Java\jdk1.7\bin;.;</span><br />
<br />
<br />
Set the Path in Environmental Variables<br />
<br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLYBupKPQWCbsY9PqnoekbzafeIjTQygN9uTKdyQgHi6wDLFb272QooabSmvY8SjhjsmbdV3c0RevpjjE3-qQIBHGykMzJrnADlz-2Iqhv0fCJXDjGyEJMEo6lQUPlzEsEe8wLYqxAYX4/s1600/86.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="path & Classpath in windows 8" border="0" height="354" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLYBupKPQWCbsY9PqnoekbzafeIjTQygN9uTKdyQgHi6wDLFb272QooabSmvY8SjhjsmbdV3c0RevpjjE3-qQIBHGykMzJrnADlz-2Iqhv0fCJXDjGyEJMEo6lQUPlzEsEe8wLYqxAYX4/s640/86.png" title="path & Classpath in windows 8" width="640" /></a></div>
<br style="color: blue; font-family: Arial,Helvetica,sans-serif;" />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">Set the Classpath in Windows 8 Environmental Variables </span><br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEkE3IOp3TeskNvrPY5oCze_1fQ6GHHmiGoekwaFCAFJQiyCQFR-tky4rTMjznxywZgpeV3-Rtf-VwPycV17ULi5rG65W1Z2_L1mQZD7Hm2dojDI9Cf6pDwj2PQgsblhLI1m5q_6hektY/s1600/89.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="path & Classpath in windows 8" border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEkE3IOp3TeskNvrPY5oCze_1fQ6GHHmiGoekwaFCAFJQiyCQFR-tky4rTMjznxywZgpeV3-Rtf-VwPycV17ULi5rG65W1Z2_L1mQZD7Hm2dojDI9Cf6pDwj2PQgsblhLI1m5q_6hektY/s640/89.png" title="path & Classpath in windows 8" width="640" /></a></div>
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;"><br /></span>
<br />
<br />
<span style="color: blue; font-family: Arial,Helvetica,sans-serif;">7. Finally Click Ok.</span><br />
<br />
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="color: red; font-family: "Arial","sans-serif"; font-size: 13.5pt;"><a href="http://javajavax.blogspot.in/2013/07/how-to-set-pathclasspath-for-java-jdk.html" target="_blank"><span style="color: red;">Click Here For Setting Path &
Classpath in Command Prompt & Environmental Variables For Windows
7</span></a></span></b><span style="color: red; font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="color: red; font-family: "Arial","sans-serif"; font-size: 13.5pt;"><a href="http://javajavax.blogspot.in/2013/07/how-to-set-path-classpath-in-windows-8.html" target="_blank"><span style="color: red;">Click Here For Setting Path &
Classpath in Command Prompt For Windows 8</span></a></span></b><span style="color: red; font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-36207170699057388192013-07-29T05:21:00.000-07:002013-07-29T06:29:16.124-07:00How to Set Path|Classpath for java Jdk bin directory in Window 7<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="font-size: large;"><span style="color: purple;">set path,set path in java, set path in windows, set path in linux, java set path, set path command, set path path,set path in ubuntu, set java path,set path java, set path in windows 7, windows 7 set path,set path windows 7,linux set path, set path linux, How to Set Path for Jdk bi directory, How to set path for Java bin in Windows 7, how to set path for Java bin directory in windows 7, how to set classpath for java jdk bin directory in windows 7, set classpath for java jdk in window 7, setting classpath for java jdk in window 7,set classpath in window7 environmental variables</span></span></b>.<br />
<br />
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><b style="color: red;">How to Set Path|Classpath for java Jdk bin directory in Window 7</b><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">While we writing the java programs and save it as (.java) file in the folder bin directory of jdk, java compiler easily compile and find out the (.java) file.</span><span style="color: blue;">But if we save the (.java) file in other than this location java compiler don't about the (.java) file. Because in bin directory of jdk has javac, javah etc... so many tools are available in that bin directory.</span><span style="color: blue;">Operating system dont about the java compiler so we need to set PATH and Classpath environmental variables in our system.</span></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmrtCOUywGz8KRZDpmb5X3SzaNG3aiXGyVBNzcwWBBtNYIGwaOcLsYoQa6AA44vwSGJftzGc4L2eblbFHqBNpVnF7zRJdAzaleDaXXmd2FZ3gbMIi7HigB2ZgP4lMkJLcK2vAOuLCZWzU/s1600/win+7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Set Path & Classpath in Window 7" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmrtCOUywGz8KRZDpmb5X3SzaNG3aiXGyVBNzcwWBBtNYIGwaOcLsYoQa6AA44vwSGJftzGc4L2eblbFHqBNpVnF7zRJdAzaleDaXXmd2FZ3gbMIi7HigB2ZgP4lMkJLcK2vAOuLCZWzU/s1600/win+7.jpg" title="Set Path & Classpath in Window 7" /></a></div>
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><br style="color: blue;" /><b style="color: purple;">How to Set Path to our file in Operating System</b><br style="color: blue;" /><br style="color: blue;" /><b style="color: red;">In Command Prompt :</b><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">set Path=C:\program Files\Java\jdk1.7\bin;.;</span><br style="color: blue;" /><br style="color: blue;" /><br style="color: blue;" /><b><span style="color: red;">In Window 7 Environmental Variables :</span></b><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">Following Steps for the setting path to our file.</span><br style="color: blue;" /><span style="color: blue;">1. Go to My Computer</span><br style="color: blue;" /><span style="color: blue;">2. Right Click on My Computer, go to properties</span><br style="color: blue;" /><span style="color: blue;">3. Then Go to Advanced tab.</span><br style="color: blue;" /><span style="color: blue;">4. Go to Environmental Variables tab.</span><br style="color: blue;" /><span style="color: blue;">5. Search for the Path, Click on edit.</span><br style="color: blue;" /><span style="color: blue;">6. Then add path of JDK bin folder as C:\program Files\Java\jdk1.7\bin</span><br style="color: blue;" /><span style="color: blue;">7. Finally Click Ok.</span><br style="color: blue;" /><br style="color: blue;" /><b style="color: purple;">In Command Prompt:</b><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">Setting Classpath for <span style="color: purple;">Servlet-api.jar </span>and <span style="color: purple;">Ojdbc.jar.</span></span><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">Set <span style="color: purple;">classpath</span>=<span style="color: red;">C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar</span>;.;</span><br style="color: blue;" /><br style="color: blue;" /><b><span style="color: red;">How to Set Classpath for Jar :</span></b><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">1. Go to My Computer</span><br style="color: blue;" /><span style="color: blue;">2. Right Click on My Computer, go to properties</span><br style="color: blue;" /><span style="color: blue;">3. Then Go to Advanced tab.</span><br style="color: blue;" /><span style="color: blue;">4. Go to Environmental Variables tab.</span><br style="color: blue;" /><span style="color: blue;">5. Search for the Classpath, Click on edit.</span><br style="color: blue;" /><span style="color: blue;">6. Then add path of JDK bin folder as C:\program Files\Java\jdk1.7\lib</span><br style="color: blue;" /><span style="color: blue;">7. Finally Click Ok.</span><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">For servlets jar from Tomcat apache setting the classpath</span><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar</span><br style="color: blue;" /><br style="color: blue;" /><b style="color: red;">How Can we set Multiple Jar file in classpath :</b><br style="color: blue;" /><br style="color: blue;" /><b><span style="color: purple;">In Command Prompt:</span></b><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">Setting Classpath for Servlet-api.jar and Ojdbc.jar jars in Command Prompt.</span></span><br />
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><span style="color: blue;"> </span><br style="color: blue;" /><span style="color: blue;">Set <span style="color: purple;">classpath</span>=<span style="color: red;">C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar<span style="color: purple;">;</span></span><span style="color: purple;">E:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;.</span></span><br style="color: purple;" /><br style="color: blue;" /><b style="color: red;">In Enviromental Variables :</b><br style="color: blue;" /><br style="color: blue;" /><span style="color: blue;">Need to set Classpath from the above </span><br style="color: blue;" /><span style="color: blue;">1. Go to My Computer</span><br style="color: blue;" /><span style="color: blue;">2. Right Click on My Computer, go to properties</span><br style="color: blue;" /><span style="color: blue;">3. Then Go to Advanced tab.</span><br style="color: blue;" /><span style="color: blue;">4. Go to Environmental Variables tab.</span><br style="color: blue;" /><span style="color: blue;">5. Search for the Classpath, Click on edit.</span><br style="color: blue;" /><span style="color: blue;">6. Then add path of JDK bin folder as <span style="color: red;">C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar;E:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;.</span></span><br style="color: blue;" /><span style="color: blue;">7. Finally Click Ok.</span></span><br />
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><br /></span>
<br />
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="color: red; font-family: "Arial","sans-serif"; font-size: 13.5pt;"><a href="http://javajavax.blogspot.in/2013/07/how-to-set-path-classpath-in-windows-8.html" target="_blank"><span style="color: red;">Click Here For Setting Path &
Classpath in Command Prompt For Windows 8</span></a></span></b><span style="color: red; font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="color: red; font-family: "Arial","sans-serif"; font-size: 13.5pt;"><a href="http://javajavax.blogspot.in/2013/07/how-to-set-path-classpath-in-windows-8_29.html" target="_blank"><span style="color: red;">Click Here For Setting Path &
Classpath in Environmental Variables For Windows 8</span></a></span></b><span style="color: red; font-size: 13.5pt;"><o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<br /></div>
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><br /></span>
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;"><br style="color: blue;" /></span></div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-4659486499485735962013-07-23T04:51:00.000-07:002013-07-31T03:50:26.068-07:00Is java pure or 100% object oriented programming language or Not Why ?<div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<br />
<div class="MsoNormal" style="color: purple; font-family: Arial,Helvetica,sans-serif; line-height: normal;">
<b><span style="font-size: small;">Is
java is pure object oriented language or not, java is pure object oriented
language why, why java is not pure object oriented programming language,
why java is not 100 object oriented
language, why java not 100 pure oop language, Is java is
100% pure Object Oriented Language, Why Java is not pure object oriented
language </span></b></div>
<div class="MsoNormal" style="color: purple; font-family: Arial,Helvetica,sans-serif; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: purple; line-height: normal;">
<b><span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"> Is java pure or 100% object oriented programming language or Not Why ?</span></b></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<b><span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"></span></b><span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"> This article about Whether java is 100% purely
object oriented language or not.</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"> In most of the interview whether it would
be fresher, Experience of 2+, 3+, 4+, 5+, 6+ interviews. we can find this type of
question “Is Java is pure Object oriented programming language ? “ or We can
find the Question “ Why Java is not pure Java Object Oriented Programming
language ?”</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;">Is Java is pure Object Oriented Programming Language? or </span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;">Why Java is not Pure Java Object Oriented
Programming Language?</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN4TRiS3D7ttduUEuFVNvDtqqjxQMmcvmHkz8KKgLd6odw-CGJkT-NeyfAe_bU1ayTwcdWBO-iqC1l-lTBobOMoqDvkIAwz4Z8gSqFR-Q1Lfup3dmrTQEjTeKsODex_-Mbs_F1TnI_zOg/s1600/two_sided_java_on_board_mu1+%281%29.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN4TRiS3D7ttduUEuFVNvDtqqjxQMmcvmHkz8KKgLd6odw-CGJkT-NeyfAe_bU1ayTwcdWBO-iqC1l-lTBobOMoqDvkIAwz4Z8gSqFR-Q1Lfup3dmrTQEjTeKsODex_-Mbs_F1TnI_zOg/s320/two_sided_java_on_board_mu1+%281%29.jpg" width="310" /></a></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"> <div class="separator" style="clear: both; text-align: center;">
</div>
</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;">No, Java is not 100% pure object Oriented language. Few Reasons that Supports java is not a pure object oriented programming
language. </span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;">Some of the Valid Reasons Why Java is not Pure Object Oriented language.</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
</div>
<div class="MsoListParagraphCxSpFirst" style="color: blue; line-height: normal; text-indent: -0.25in;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"> 1)<span style="font: 7pt "Times New Roman";"> </span></span><span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;">Primitive data Types in Java</span></div>
<div class="MsoListParagraphCxSpMiddle" style="color: blue; line-height: normal; text-indent: -0.25in;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"> 2)<span style="font: 7pt "Times New Roman";"> </span></span><span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;">Operator Overloading is not there
in java.</span></div>
<div class="MsoListParagraphCxSpLast" style="color: blue; line-height: normal; text-indent: -0.25in;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"> 3)<span style="font: 7pt "Times New Roman";"> </span></span><span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;">Multiple Inheritance is not
allowed in java.</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"><b style="color: red;">Primitive Data Types in java :</b> </span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"> Initially Primitive
data types like int, float, double etc… using these types we are representing
the data in java. That’s why everything is not represented in the form of object. So Java is not 100% pure Object oriented language. But We Can achieve this From the Java
version 5.0 inclusion of Wrapper class are there such as Integer, Float, Double
etc.. these are used to perform implicit numeric algorithms that can convert to
string by using toString(), by using Wrapper class we can perform numeric
operations.</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"><b style="color: red;">Operator Overloading :</b> </span></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;">In java Operator Overloading is not supported, When
we operate on two Integer Objects, it always like to operate on actual integer
primitive types. The main difference in java that does not allow to operate on Integer,
int type directly. We need to override the intValue(), floatValue() methods to perform
the operations. Whatever C++ supports overloading of ‘+’, ‘-‘ operators to
apply on both object and primitive types. The main logic behind in java not
supports operator overloading is due automatic memory management that is
provided by JVM. Not similar to C++, Java supports automatic memory management,
which allows a daemon thread as garbage collector to work independently of the
JVM in dynamically for de allocation of memory space. The main Purpose or
reason that java does not support operator overloading to clean the memory
instantly in avoiding the potentials leaks, which is possibly occurs through
the use of operator overloading and pointers.</span></div>
<div class="MsoNormal" style="line-height: normal;">
<span style="color: blue; font-family: "Times New Roman","serif"; font-size: 13.5pt;"></span></div>
<div class="MsoNormal" style="line-height: normal;">
<span style="color: blue; font-family: "Times New Roman","serif"; font-size: 13.5pt;"></span></div>
<div class="MsoNormal" style="line-height: normal;">
<span style="color: blue; font-family: "Times New Roman","serif"; font-size: 13.5pt;"></span></div>
<div class="MsoNormal" style="line-height: normal;">
<span style="color: blue; font-family: "Times New Roman","serif"; font-size: 13.5pt;"></span></div>
<div class="MsoNormal" style="line-height: normal;">
<span style="color: blue; font-family: "Times New Roman","serif"; font-size: 13.5pt;"><br /> </span></div>
<div class="MsoNormal" style="line-height: normal;">
<span style="color: blue; font-family: "Times New Roman","serif"; font-size: 13.5pt;"><b style="color: red;">Multiple Inheritance :</b> </span></div>
<div class="MsoNormal" style="line-height: normal;">
<span style="color: blue; font-family: "Times New Roman","serif"; font-size: 13.5pt;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal;">
<span style="color: blue; font-family: "Times New Roman","serif"; font-size: 13.5pt;">Java Does not Supports Multiple Inheritance using classes, but we can achieve
it through Interface. If we concern interface we cannot create instance or
object for the Interface Directly. </span><br />
<br />
<br />
<div style="color: purple;">
<span style="font-family: "Times New Roman","serif"; font-size: 13.5pt;"><a href="http://javajavax.blogspot.in/2013/01/definition-of-multiple-inheritance.html" style="color: red;" target="_blank"><b>Multiple Inheritance Using Interface</b></a><span style="color: red;"> </span> </span><br />
<br />
<div>
<span style="color: purple; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 18px;"><b>Object Oriented Programming Principles or OOP Principles </b></span></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: purple; line-height: 18px;"><b><u><br /></u></b></span></span></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 33.75pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span style="color: blue; line-height: 115%;"><span style="font-size: small;">1)</span><span style="line-height: normal;"><span style="font-size: 7pt;"> <a href="http://javajavax.blogspot.in/2013/01/what-is-definition-of-classmember.html" target="_blank"> </a></span><a href="http://javajavax.blogspot.in/2013/01/what-is-definition-of-classmember.html" target="_blank">Class</a></span></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 33.75pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span style="color: blue; line-height: 115%;"><span style="font-size: small;">2)</span><span style="line-height: normal;"><span style="font-size: 7pt;"> </span><a href="http://javajavax.blogspot.in/2013/01/creating-class-and-object-definition-in.html">Object</a></span></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 33.75pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span style="color: blue;"><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">3)<span style="font-size: 7pt; line-height: normal;"> <a href="http://javajavax.blogspot.in/2013/01/definedefinition-offor-dataabstraction.html"> </a></span></span><span style="font-size: 12pt; line-height: 115%;"><a href="http://javajavax.blogspot.in/2013/01/definedefinition-offor-dataabstraction.html">Data Abstraction</a></span></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 33.75pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span style="color: blue;"><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">4)<span style="font-size: 7pt; line-height: normal;"> </span></span><span style="font-size: 12pt; line-height: 115%;"><a href="http://javajavax.blogspot.in/2013/01/definedefinitiondataexample-forof.html">Data Encapsulation</a></span></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 33.75pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span style="color: blue;"><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">5)<span style="font-size: 7pt; line-height: normal;"> </span></span><span style="font-size: 12pt; line-height: 115%;"><a href="http://javajavax.blogspot.in/2013/01/types-of-inheritance-in-java-with.html">Inheritance</a></span></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 33.75pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span style="color: blue;"><span style="font-size: 12pt; line-height: 115%;">6)<span style="font-size: 7pt; line-height: normal;"> <a href="http://javajavax.blogspot.in/2013/01/definedefinition-of-polymorphism-in.html"> </a></span></span><span style="font-size: 12pt; line-height: 115%;"><a href="http://javajavax.blogspot.in/2013/01/definedefinition-of-polymorphism-in.html">Polymorphism</a></span></span></div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 33.75pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span style="color: blue;"><span style="font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">7)<span style="font-size: 7pt; line-height: normal;"> </span></span><span style="font-size: 12pt; line-height: 115%;"><a href="http://javajavax.blogspot.in/2013/01/dynamic-binding-in-java-withfor.html">Dynamic Binding</a></span></span></div>
<br />
</div>
<br />
</div>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-59890961505685727492013-07-22T05:07:00.000-07:002013-07-25T23:04:19.575-07:00Java OOPs Concepts with Real Time Examples<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: small;"><b style="color: purple;">Java OOPS Concepts with Examples, Java OOPS Concepts with Real time examples, Java OOPs Concepts with real time examples in pdf format.</b></span><br />
<span style="font-size: small;"><br /></span>
<br />
<div style="color: blue;">
Java Object oriented programming concepts with real time examples </div>
<span style="color: blue;">OOPS Concepts are mainly 4 </span><br />
<br style="color: blue;" />
<span style="color: blue;"> 1.Abstraction</span><br />
<span style="color: blue;"> 2.Encapsulation</span><br />
<span style="color: blue;"> 3.Inheritance </span><br />
<span style="color: blue;"> 4.Polymorphism</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjchv1AxpVAcMe6Lxs-r9Xpe7DCLKNtoFSQWuFhBXzJOKyJw9Juso3qmWSsa-a3QeMfFQMAi-GHFBlomDXHr3ea__3udjNCyJPBNpWCIenf6fzlmW4lGarkhl0Iq2LKrzxJRZd6FG9k0Fo/s1600/Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjchv1AxpVAcMe6Lxs-r9Xpe7DCLKNtoFSQWuFhBXzJOKyJw9Juso3qmWSsa-a3QeMfFQMAi-GHFBlomDXHr3ea__3udjNCyJPBNpWCIenf6fzlmW4lGarkhl0Iq2LKrzxJRZd6FG9k0Fo/s200/Untitled.png" width="131" /></a></div>
<br />
<br style="color: blue;" />
<span style="color: blue;"><b style="color: purple;">Abstraction:-</b> Hiding un neccessary Details or features but exposing only essential details or features.</span><br />
<span style="color: blue;"> (or)</span><br />
<span style="color: blue;"> Covering or Hiding unnecessary data from the users details,is called abstraction.</span><br />
<br style="color: blue;" />
<div style="color: red;">
<b>Real Time Example :</b></div>
<br style="color: blue;" />
<span style="color: blue;">Hiding Unneccessary data from the user is called an Abstraction</span><br />
<br style="color: blue;" />
<span style="color: blue;">In Real Time if we consider the TV Remote or Computer or laptop Keyboard has Buttons in Structured format,those are only visible to us. But </span><br />
<span style="color: blue;">Hard ware materials like Inner Ciruit, Device all are invisible in same manner Abstraction will work.</span><br />
<br style="color: blue;" />
<br style="color: blue;" />
<span style="color: blue;"><b style="color: purple;">Encapsulation : </b>The process of binding or making unit the data and the codes that operates on the data into a single entity. </span><br />
<span style="color: blue;">That keeps the data in safe manner from outside of the interface and also to avoid misuse.</span><br />
<br style="color: blue;" />
<span style="color: blue;">Best feature to think about encapsulation is better way to prevents the data as a protective wrapper </span><br />
<span style="color: blue;">that prevents to access the code randomly accessed by other code that is defined at outside the wrapper.</span><br />
<br style="color: blue;" />
<div style="color: red;">
<b>Real Time Example: </b></div>
<span style="color: blue;">1) If We Consider the Ink is the important component in pen but it is hiding by some other material.</span><br />
<br />
<span style="color: blue;">2)Consider the Medical Tablet in which one drug is stored in bottom layer and another drug is stored in Upper </span><br />
<span style="color: blue;">layer these two layers are combined in single Tablet.</span><br />
<br style="color: blue;" />
<b style="color: purple;">Inheritance:</b><br />
<span style="color: blue;">The Process of inheriting the characters or features from one class to its sub class is called inheritance.</span><br />
<br style="color: blue;" />
<br style="color: blue;" />
<div style="color: red;">
<b>Real Time Example:</b></div>
<span style="color: blue;">1. Father and Son Relationship, Grandfather and GrandSon etc...</span><br />
<span style="color: blue;">Technical Example :</span><br />
<span style="color: blue;">Particular Technology is updating day to day, by enchancing the features.</span><br />
<br style="color: blue;" />
<br style="color: blue;" />
<div style="color: purple;">
<b>Polymorphism: </b></div>
<span style="color: blue;">Single Form can be exhibited in multiple forms or situations. Even in Technically Ascept</span><br />
<span style="color: blue;">One function can exhibit multiple charactes by using Overloading or Overriding.</span><br />
<br style="color: blue;" />
<div style="color: red;">
<b>Real Time Example:</b></div>
<span style="color: blue;">Consider a Women plays housewife role at her home, at same time she plays employee/ manager role at her office.</span><br />
<br />
<span style="color: blue;"> Consider another Person will play</span><br />
<span style="color: blue;"> a) Plays Parent Role with his/her children </span><br />
<span style="color: blue;"> b) Plays Employee or Job Role at his/her Office or Company.</span><br />
<span style="color: blue;"> c) Plays Public Citizen role.</span><br />
<span style="color: blue;"><br /></span>
<span style="color: blue;"><br /></span>
<span style="color: blue;"><a href="http://javajavax.blogspot.in/2013/01/basic-java-oops-concepts-with-examples.html" target="_blank"><b style="color: red;">Object Oriented Programming Principles</b></a></span><br />
<span style="color: blue;"><br /></span>
<span style="color: blue;"><br /></span>
<span style="color: blue;"><br /></span>
<span style="color: blue;"><br /></span>
<span style="color: blue;"><br /></span>
<span style="color: blue;"><br /></span>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-83504838550954434552013-07-22T04:15:00.000-07:002013-07-22T04:15:01.352-07:00Different Ways of Creating Object in java with Example<div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<br />
<div class="MsoNormal" style="line-height: normal;">
<span style="color: purple; font-size: large;"><b>Different ways of creating object in
java, ways of creating object in java, methods of creating object in java, example
of creating object in java, types of creating object in java, how many types of
creating object in java, how many ways to create object in java with examples,
ways of creating objects in java with example</b></span></div>
<div class="MsoNormal" style="color: purple; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: red; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: red; line-height: normal;">
<b>Different Ways of Creating An Object in Java </b></div>
<div class="MsoNormal" style="color: blue; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 0.0001pt;">
This Article about How to
Create a object in java ? In most of the Interviews we will get number of ways
of creating Objects in java. Most of them don’t know how many ways are for
creation of an Obect In Java. There are
Four ways of creating object in java.<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> </span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"><br />
1) <b>By Using new keyword</b><br />
2) <b>By Using Class.forName()</b><br />
3) <b>By Using clone()</b><br />
4) <b>By Using object deserialization</b><br />
<br />
</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;">Detailed explanation on different ways to create a object in
java:<br />
<br />
<b style="color: red;">Consider a class as shown below:</b></span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;">package <b>com</b>.<b>objectcreation</b>;</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;">public class <b>CreationOfObjects</b>
implements <b>Cloneable</b> {</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> public static void
main(String args[]) throws <b>InstantiationException,
IllegalAccessException, ClassNotFoundException, CloneNotSupportedException</b>
{</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> // <b style="color: purple;">1) Object
created using the new keyword</b></span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> CreationOfObjects
objectNew = new CreationOfObjects();</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> // <b style="color: purple;">2) Object created using Class.forName</b></span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> CreationOfObjects
objectClassForName = (WaysToCreateObject) Class.forName(</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;">
"com.objectcreation.WaysToCreateObject").newInstance();</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<br /></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> // <b style="color: purple;">3)Object
created using clone</b></span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> CreationOfObjects
objectClone = (WaysToCreateObject) objectNew.clone();</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;"> }</span></div>
<div class="MsoNormal" style="color: blue; line-height: normal; margin-bottom: 12pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12pt;">}</span><span style="font-family: "Courier New"; font-size: 9pt;"></span></div>
<div class="MsoNormal" style="color: blue;">
<br /></div>
<div class="MsoNormal" style="color: blue;">
<a href="http://javajavax.blogspot.in/2013/01/basic-java-oops-concepts-with-examples.html" target="_blank"><b style="color: red;"> Object Oriented Principles with Real Time Examples</b></a> </div>
<div class="MsoNormal">
<b><br /></b>
<br />
<b><a href="http://javajavax.blogspot.in/2013/06/scjp-core-java-class-room-pdf-study.html" target="_blank"><span style="color: red;">SCJP Material For Sun Certification Class Room Level Notes</span></a></b><br />
<b><br /></b>
<b><br /></b>
<b><br /></b></div>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0tag:blogger.com,1999:blog-1195631660823777475.post-40364063032308251452013-07-20T02:04:00.000-07:002013-07-20T02:04:05.510-07:00PreparedStatement in Java, JDBC Examples tutorials<div dir="ltr" style="text-align: left;" trbidi="on">
<link href="file:///C:%5CUsers%5Ckishore%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CUsers%5Ckishore%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CUsers%5Ckishore%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]--><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:10.0pt;
line-height:115%;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<br />
<div class="MsoNormal">
<o:p></o:p><span style="color: purple; font-family: Arial,Helvetica,sans-serif; font-size: small;"><b>Prepared Statement, prepared statement example, prepared
statement java, java prepared statement,<span>
</span>jdbc prepared statement, prepared statement in java, sql prepared
statement, prepared statement postgresql prepared statement, PreparedStatement
in java tutorial, PreparedStatement in JDBC, Difference between
PreparedStatement and Callable Statement, CallableStatement Vs Prepared
Statement.</b></span></div>
<div class="MsoNormal" style="color: purple;">
<br /></div>
<div class="MsoNormal" style="color: purple;">
<span style="font-size: small;"><b><o:p>Prepared Statement in JDBC : </o:p></b></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCW25urrSxtuMBLEiJU_ANQg5ZH31iqK6XcceXH2pvjwNs40pHG_qUO3bFKXy4inBf4hjKW3GeL4RMWeEVM3AIcvtF9HfPIz2KudFFMBCF-QdmRLqPMvO8hkWsypMqqNcOmkJjkgWIfDw/s1600/images.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="PreparedStatement" border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCW25urrSxtuMBLEiJU_ANQg5ZH31iqK6XcceXH2pvjwNs40pHG_qUO3bFKXy4inBf4hjKW3GeL4RMWeEVM3AIcvtF9HfPIz2KudFFMBCF-QdmRLqPMvO8hkWsypMqqNcOmkJjkgWIfDw/s320/images.jpg" title="PreparedStatement" width="266" /></a></div>
<div class="MsoNormal" style="color: purple;">
<span style="font-size: small;"><b><o:p><br /></o:p></b></span></div>
<div class="MsoNormal" style="color: blue;">
<br />Prepared Statement is an interface extended from Statement
interface. </div>
<div class="MsoNormal" style="color: blue;">
1) PreparedStatement transfers numbers, String, dates and
large objects between java application and database.</div>
<div class="MsoNormal" style="color: blue;">
2) PreparedStatement Pre Compiles an Sql statement and that
query can be executed from any number of times by recompilation again. It means
PreparedStatement increases the performance of an Application</div>
<div class="MsoNormal" style="color: blue;">
3) A Prepared Statement allows to put Parameters (?,?,?)
into sql query to make it as dynamic whenever we want to run same query for
multiple number of times, PreparedStatement Performance is better than
Statement.</div>
<div class="MsoNormal" style="color: blue;">
<br /></div>
<div class="MsoNormal" style="color: blue;">
<o:p><a href="http://javajavax.blogspot.in/2013/07/main-difference-between.html" target="_blank"><b style="color: red;">PreparedStatement Vs CallableStatement</b></a> </o:p></div>
<div class="MsoNormal" style="color: blue;">
<o:p></o:p><a href="http://javajavax.blogspot.in/2013/07/main-difference-between.html" target="_blank"><b style="color: red;">Main Differences Between reparedStatement Vs CallableStatement</b></a>
</div>
<div class="MsoNormal" style="color: blue;">
<b><span style="color: purple;">Example program for
Prepared Statement :</span><o:p></o:p></b></div>
<div class="MsoNormal" style="color: blue;">
<b>import
java.util.*;<span> </span>// Util package<o:p></o:p></b></div>
<div class="MsoNormal" style="color: blue;">
<b>import java.io.*; //
IO Pacakage<o:p></o:p></b></div>
<div class="MsoNormal" style="color: blue;">
<b>import java.sql.*; //
it is used for all JDBC Connection.<o:p></o:p></b></div>
<div class="MsoNormal" style="color: black;">
Class JdbcDemo1{</div>
<div class="MsoNormal" style="color: black;">
<span> </span>Public static void
main(String args[]) throws Exception{</div>
<div class="MsoNormal" style="color: black;">
Class.forName(“Oracle.jdbc.driver.OracelDriver”);</div>
<div class="MsoNormal" style="color: black;">
Connection
con=DriverManager.getConnection(“jdbc:oracle:thin:@localhost:XE”,”scott”,”tiger”);</div>
<div class="MsoNormal" style="color: black;">
<b>PreparedStatement
pstmt=con.preparedStatement(“insert<span> </span>into
emp values(?,?,?)”);<o:p></o:p></b></div>
<div class="MsoNormal" style="color: black;">
<b>// Inserting the data dynamically using “?”.<o:p></o:p></b></div>
<div class="MsoNormal" style="color: black;">
Scanner s=new Scanner(System.in);</div>
<div class="MsoNormal" style="color: black;">
System.out.println(“Enter the Company Id”);</div>
<div class="MsoNormal" style="color: black;">
Reading the data dynamically for <b>?,?,?</b></div>
<div class="MsoNormal" style="color: black;">
<span> </span>}</div>
<div class="MsoNormal" style="color: black;">
}</div>
</div>
Anonymoushttp://www.blogger.com/profile/03118011362454187993noreply@blogger.com0