<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6045246199335379558</id><updated>2024-08-28T03:15:02.253-07:00</updated><category term="Intelij"/><category term="build"/><category term="maven"/><category term="Abstraction in Java"/><category term="Encapsulation in java"/><category term="Exception handling in java"/><category term="Primitive and Non Primitive Data types"/><category term="clean"/><category term="deploy"/><category term="install"/><category term="Complete Guide for if  else Statement."/><category term="Concatenation and Substring"/><category term="Difference between primitive and non-primitive data types"/><category term="Enabling Debug level on in Logs"/><category term="Enabling Remote Debug"/><category term="Hello World  java program using Intellij"/><category term="How Abstraction works in java with example code"/><category term="How to use static keyword in Java"/><category term="Inheritance IS-A  Relationship in Java"/><category term="Interface in Java"/><category term="Interfaces in Java"/><category term="Introduction of String"/><category term="Java"/><category term="Java Program for Add Two Dates with time"/><category term="Loops in java With Example Code"/><category term="Method OverLoading in Java"/><category term="Method Overriding"/><category term="Polymorphism"/><category term="String Comparison"/><category term="Throw Keyword in java"/><category term="Throw keywords in Exception Handling in Java"/><category term="Types of Inheritance"/><category term="Web Browsing"/><category term="What is Java"/><category term="advancejava"/><category term="different types of Constructors"/><category term="introduction to advance java"/><category term="jdbc"/><category term="jdbc drivers"/><category term="jdbc odbc drivers"/><category term="mvn"/><category term="remote debug"/><category term="servlet"/><category term="servlet lifecycle"/><category term="tests"/><category term="unit"/><category term="version numbers of modules in a multi-module Maven project"/><category term="what is Inheritance"/><title type='text'>Learn With Reshu</title><subtitle type='html'>Learn With Reshu is here to help you all to get new Technological ideas and knowledge. I will try to create blogs on all technical topics and new tricks and tips. please do like share and subscribe Learn with Reshu to encourage me more for creating good help to others. &#xa;&#xa;Thanks,&#xa;Best Regards &#xa;#learnwithReshu</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-4246207365276440192</id><published>2022-12-14T01:37:00.001-08:00</published><updated>2022-12-14T01:37:46.559-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'></title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #222222; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 24px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.4; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Running and Building Gradle with Different JDKs - Sip of Java&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 15px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If you are using Gradle as the build tool for your projects and want to work with the latest JDK releases or early-access builds, you might think you are stuck until Gradle supports those versions of the JDK, which might take a few months. However, that’s not the case, and we will explore in this article how to run Gradle with one JDK version while building and testing with a different JDK version.&lt;/p&gt;&lt;h2 id=&quot;managing-multiple-jdks&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #222222; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 20px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.4; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Managing Multiple JDKs&lt;/h2&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 15px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;When working with multiple JDKs, using a tool like SDKMan or Jenv (for macOS) is highly recommended. These tools enable you to easily manage and switch between your local JDKs. This article assumes that you have multiple JDKs installed on your system: one for running Gradle, and the other for executing the tasks in the build. Be sure that the JDK installed to run Gradle is supported by Gradle. As of the time of this article, the latest Gradle version is 7.6 which supports JDK 19.&lt;/p&gt;&lt;h2 id=&quot;configuring-the-toolchain&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #222222; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 20px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.4; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Configuring the Toolchain&lt;/h2&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 15px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;By default, Gradle will use the JDK that is being used to run Gradle itself to execute the tasks in the build. This can be easily changed by configuring your toolchain. In the example below, Gradle will use JDK 20 to execute the tasks in the build regardless of the JDK version being used to run Gradle.&lt;/p&gt;&lt;div class=&quot;language-plaintext highlighter-rouge&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;code-toolbar&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;&lt;pre class=&quot;highlight language-plaintext&quot; style=&quot;background: rgb(45, 45, 45); border-radius: 4px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot; language-plaintext&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin: 0px; overflow-wrap: normal; padding: 0px; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot;&gt;java&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;{&lt;span class=&quot;token lf&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;toolchain&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;{&lt;span class=&quot;token lf&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;languageVersion.set(JavaLanguageVersion.of(20))&lt;span class=&quot;token lf&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;token space&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt; &lt;/span&gt;}&lt;span class=&quot;token lf&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;}&lt;span class=&quot;token lf&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;toolbar&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; opacity: 0; padding: 0px; position: absolute; right: 0.2em; top: 0.3em; transition: opacity 0.3s ease-in-out 0s; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;toolbar-item&quot; style=&quot;border: 0px; box-sizing: border-box; display: inline-block; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;button class=&quot;copy-to-clipboard-button&quot; data-copy-state=&quot;copy&quot; style=&quot;background: rgba(224, 224, 224, 0.2); border-color: initial; border-radius: 0.5em; border-style: initial; border-width: 0px; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 0px 0px; color: #bbbbbb; font-family: inherit; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; overflow: visible; padding: 0px 0.5em; user-select: none;&quot; type=&quot;button&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 15px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;There are a few default behaviors Gradle uses to find a JDK install. Depending on your OS and if you have a JDK manager installed, Gradle will check certain places on your system to see if it can find the requested JDK version. If it is unable to find the requested JDK version, Gradle will attempt to download the requested JDK version. Be sure to check the Toolchains link under the Additional Reading section which provides the full explanation of this lookup process.&lt;/p&gt;&lt;h2 id=&quot;setting-jdk-version-with-properties&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #222222; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 20px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.4; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Setting JDK Version with Properties&lt;/h2&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 15px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Gradle’s default behavior for looking up a JDK version can be disabled through properties if it doesn’t match your needs. This can be helpful if you are working with multiple JDKs of the same version or running builds on a shared system.&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 15px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To disable the auto-detection of a JDK, set the&amp;nbsp;&lt;code class=&quot; highlighter-rouge language-plaintext&quot; style=&quot;background: rgb(45, 45, 45); border-radius: 0.3em; border: 0px; box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin: 0px; overflow-wrap: normal; padding: 0.1em; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot;&gt;org.gradle.java.installations.auto-detect&lt;/code&gt;&amp;nbsp;property to&amp;nbsp;&lt;code class=&quot; highlighter-rouge language-plaintext&quot; style=&quot;background: rgb(45, 45, 45); border-radius: 0.3em; border: 0px; box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin: 0px; overflow-wrap: normal; padding: 0.1em; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot;&gt;false&lt;/code&gt;&amp;nbsp;like below:&lt;/p&gt;&lt;div class=&quot;language-plaintext highlighter-rouge&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;code-toolbar&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;&lt;pre class=&quot;highlight language-plaintext&quot; style=&quot;background: rgb(45, 45, 45); border-radius: 4px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot; language-plaintext&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin: 0px; overflow-wrap: normal; padding: 0px; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot;&gt;org.gradle.java.installations.auto-detect=false&lt;span class=&quot;token lf&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;toolbar&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; opacity: 0; padding: 0px; position: absolute; right: 0.2em; top: 0.3em; transition: opacity 0.3s ease-in-out 0s; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;toolbar-item&quot; style=&quot;border: 0px; box-sizing: border-box; display: inline-block; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;button class=&quot;copy-to-clipboard-button&quot; data-copy-state=&quot;copy&quot; style=&quot;background: rgba(224, 224, 224, 0.2); border-color: initial; border-radius: 0.5em; border-style: initial; border-width: 0px; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 0px 0px; color: #bbbbbb; font-family: inherit; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; overflow: visible; padding: 0px 0.5em; user-select: none;&quot; type=&quot;button&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 15px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;To disable the auto-downloading of a JDK, set the&amp;nbsp;&lt;code class=&quot; highlighter-rouge language-plaintext&quot; style=&quot;background: rgb(45, 45, 45); border-radius: 0.3em; border: 0px; box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin: 0px; overflow-wrap: normal; padding: 0.1em; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot;&gt;org.gradle.java.installations.auto-download&lt;/code&gt;&amp;nbsp;property to&amp;nbsp;&lt;code class=&quot; highlighter-rouge language-plaintext&quot; style=&quot;background: rgb(45, 45, 45); border-radius: 0.3em; border: 0px; box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin: 0px; overflow-wrap: normal; padding: 0.1em; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot;&gt;false&lt;/code&gt;&amp;nbsp;like below:&lt;/p&gt;&lt;div class=&quot;language-plaintext highlighter-rouge&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;code-toolbar&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;&lt;pre class=&quot;highlight language-plaintext&quot; style=&quot;background: rgb(45, 45, 45); border-radius: 4px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot; language-plaintext&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin: 0px; overflow-wrap: normal; padding: 0px; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot;&gt;org.gradle.java.installations.auto-download=false&lt;span class=&quot;token lf&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;toolbar&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; opacity: 0; padding: 0px; position: absolute; right: 0.2em; top: 0.3em; transition: opacity 0.3s ease-in-out 0s; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;toolbar-item&quot; style=&quot;border: 0px; box-sizing: border-box; display: inline-block; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;button class=&quot;copy-to-clipboard-button&quot; data-copy-state=&quot;copy&quot; style=&quot;background: rgba(224, 224, 224, 0.2); border-color: initial; border-radius: 0.5em; border-style: initial; border-width: 0px; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 0px 0px; color: #bbbbbb; font-family: inherit; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; overflow: visible; padding: 0px 0.5em; user-select: none;&quot; type=&quot;button&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 15px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Finally, you can configure Gradle to look in a specific location for a JDK by providing it with an environment property, like in this example below:&lt;/p&gt;&lt;div class=&quot;language-plaintext highlighter-rouge&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;DejaVu Sans&amp;quot;, &amp;quot;Bitstream Vera Sans&amp;quot;, &amp;quot;Luxi Sans&amp;quot;, Verdana, Arial, Helvetica; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;code-toolbar&quot; style=&quot;border: 0px; box-sizing: border-box; font: inherit; margin: 0px; padding: 0px; position: relative; vertical-align: baseline;&quot;&gt;&lt;pre class=&quot;highlight language-plaintext&quot; style=&quot;background: rgb(45, 45, 45); border-radius: 4px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot; language-plaintext&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; line-height: 1.5; margin: 0px; overflow-wrap: normal; padding: 0px; tab-size: 4; vertical-align: baseline; word-break: normal; word-spacing: normal;&quot;&gt;org.gradle.java.installations.fromEnv=JAVA20_HOME&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/4246207365276440192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2022/12/Running-and-Building-Gradle-with-Different-JDKs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4246207365276440192'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4246207365276440192'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2022/12/Running-and-Building-Gradle-with-Different-JDKs.html' title=''/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-2618261611913325951</id><published>2022-12-01T13:34:00.001-08:00</published><updated>2022-12-01T13:39:31.642-08:00</updated><title type='text'>Spring Core</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #666666; font-family: Roboto; font-size: 15px;&quot;&gt;The “Spring Framework” is a large project. Under the Spring Framework label are actually about 20 different Spring projects. Spring MVC, Spring Security, Spring Integration, etc. So, it would be easy to get confused about what “Spring Core” is.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #666666; font-family: Roboto; font-size: 15px; margin: 0px 0px 20px; padding: 0px;&quot;&gt;The official Spring documentation, contains this image:&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnBiwxooBiSlb6USOJMkwFTRHInJ6CZzri_BFgyQYxkh7ArF4EcH6jyciX0JHOLC3OmDjpCUw5cEq_YjqAlOvM5Itn7Q_uTLdl72kynH6vwsd_aJ5kgXRFKPaIfTUjqVs3MNSBg2iJF8KYFdTj1l5XHGd81J0nnK-SkOeN_i3CpHHERU-HxEpjI2SZ/s720/unnamed.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;720&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnBiwxooBiSlb6USOJMkwFTRHInJ6CZzri_BFgyQYxkh7ArF4EcH6jyciX0JHOLC3OmDjpCUw5cEq_YjqAlOvM5Itn7Q_uTLdl72kynH6vwsd_aJ5kgXRFKPaIfTUjqVs3MNSBg2iJF8KYFdTj1l5XHGd81J0nnK-SkOeN_i3CpHHERU-HxEpjI2SZ/w640-h480/unnamed.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #666666; font-family: Roboto; font-size: 15px; margin: 0px 0px 20px; padding: 0px;&quot;&gt;“Spring Core” is typically used to refer to the functionality of the Core container. Beans, Core, Context, and SpEL.&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #666666; font-family: Roboto; font-size: 15px; margin: 0px 0px 20px; padding: 0px;&quot;&gt;While there are about 30 Spring Framework projects, they all depend on this core container. Its this core functionality that has been around since the beginning of the Spring Framework. The core container, which has the Spring Context, manages dependency injection for us via Inversion of Control is used by all other Spring projects.&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #666666; font-family: Roboto; font-size: 15px; margin: 0px 0px 20px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #666666; font-family: Roboto; font-size: 15px; margin: 0px 0px 20px; padding: 0px;&quot;&gt;&lt;a href=&quot;https://youtu.be/Q0MiCfTZpMs&quot; target=&quot;_blank&quot;&gt;Spring Boot Application In Hindi&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;302&quot; src=&quot;https://www.youtube.com/embed/Q0MiCfTZpMs&quot; width=&quot;469&quot; youtube-src-id=&quot;Q0MiCfTZpMs&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #666666; font-family: Roboto; font-size: 15px; margin: 0px 0px 20px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #666666; font-family: Roboto; font-size: 15px; margin: 0px 0px 20px; padding: 0px;&quot;&gt;Cheers,&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #666666; font-family: Roboto; font-size: 15px; margin: 0px 0px 20px; padding: 0px;&quot;&gt;Learn with Reshu&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/2618261611913325951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2022/12/spring-core.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/2618261611913325951'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/2618261611913325951'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2022/12/spring-core.html' title='Spring Core'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnBiwxooBiSlb6USOJMkwFTRHInJ6CZzri_BFgyQYxkh7ArF4EcH6jyciX0JHOLC3OmDjpCUw5cEq_YjqAlOvM5Itn7Q_uTLdl72kynH6vwsd_aJ5kgXRFKPaIfTUjqVs3MNSBg2iJF8KYFdTj1l5XHGd81J0nnK-SkOeN_i3CpHHERU-HxEpjI2SZ/s72-w640-h480-c/unnamed.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-7704549900472202328</id><published>2021-06-30T14:37:00.008-07:00</published><updated>2021-07-01T00:55:56.259-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Web Browsing"/><title type='text'>Web Browsing || How does It works?</title><content type='html'>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
&lt;!DOCTYPE html&gt;
&lt;html b:css=&#39;false&#39; b:defaultwidgetversion=&#39;2&#39; b:layoutsVersion=&#39;3&#39; b:responsive=&#39;true&#39; b:templateUrl=&#39;vegeclub.xml&#39; b:templateVersion=&#39;1.3.0&#39; expr:dir=&#39;data:blog.languageDirection&#39; xmlns=&#39;http://www.w3.org/1999/xhtml&#39; xmlns:b=&#39;http://www.google.com/2005/gml/b&#39; xmlns:data=&#39;http://www.google.com/2005/gml/data&#39; xmlns:expr=&#39;http://www.google.com/2005/gml/expr&#39;&gt;
  &lt;head&gt;
    &lt;meta content=&#39;width=device-width, initial-scale=1&#39; name=&#39;viewport&#39;/&gt;
    &lt;link rel=&quot;canonical&quot; href=&quot;https://reshuallinone.blogspot.com/2021/06/Web-Browsing.html&quot; /&gt;
 &lt;/head&gt;

  &lt;body&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;b&gt;Web Browsing and How it Works?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfc-i-Fn-KxxzbdzWdO-bQoNkC2DLzKJpl7Di89i6WuR2fV-KWEM0_p6Gt0IaWkEGkWWlB_fVK-28w9MXsI0lAtohyphenhyphenbiS4VSbSakq8ykxqq5EiP_aPu2wjGb5VOkH8rGsSoo9ajcuReoM/s1853/Web+Browsing.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1019&quot; data-original-width=&quot;1853&quot; height=&quot;352&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfc-i-Fn-KxxzbdzWdO-bQoNkC2DLzKJpl7Di89i6WuR2fV-KWEM0_p6Gt0IaWkEGkWWlB_fVK-28w9MXsI0lAtohyphenhyphenbiS4VSbSakq8ykxqq5EiP_aPu2wjGb5VOkH8rGsSoo9ajcuReoM/w640-h352/Web+Browsing.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;A&amp;nbsp;&lt;b&gt;web browser&lt;/b&gt;&amp;nbsp;(commonly referred to as a&amp;nbsp;&lt;b&gt;browser&lt;/b&gt;) is&amp;nbsp;application software&amp;nbsp;for accessing the&amp;nbsp;World Wide Web. When a&amp;nbsp;user&amp;nbsp;requests a&amp;nbsp;web page&amp;nbsp;from a particular&amp;nbsp;website, the web browser retrieves the necessary content from a&lt;u&gt;&amp;nbsp;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/10/exception-handling-in-java.html&quot;&gt;web server&amp;nbsp;&lt;/a&gt;&lt;/u&gt;and then displays the page on the user&#39;s device.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;span&gt;A web browser is not the same thing as a&amp;nbsp;search &lt;a href=&quot;https://reshuallinone.blogspot.com/2020/10/Inheritance-IS-ARelationship-in-Java.html&quot;&gt;engine&lt;/a&gt;, though the two are often confused.&lt;/span&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt; &lt;/span&gt;&lt;span&gt;A search engine is a website that provides&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0645ad;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/10/Inheritance-IS-ARelationship-in-Java.html&quot;&gt;links&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/10/Inheritance-IS-ARelationship-in-Java.html&quot;&gt;&amp;nbsp;&lt;/a&gt;to other websites. However, to connect to a website&#39;s server and display its web pages, a user must have a web browser installed.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; font-family: sans-serif; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;color: #800180; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; font-family: sans-serif; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;color: #800180; font-size: large;&quot;&gt;&lt;b&gt;How Web Browsing Works?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;span face=&quot;Roboto, sans-serif&quot; style=&quot;color: #111111;&quot;&gt;How does a web browser work? A web browser&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Roboto, sans-serif&quot; style=&quot;color: #111111; font-weight: 700;&quot;&gt;takes you anywhere on the internet&lt;/span&gt;&lt;span face=&quot;Roboto, sans-serif&quot; style=&quot;color: #111111;&quot;&gt;. It retrieves information from other parts of the web and displays it on your desktop or mobile device. The information is transferred using the Hypertext Transfer Protocol, which defines how text, images and video are transmitted on the web.&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Suppose,&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;You need to request a google search engine page so what you will going to write on the URL will be &lt;b&gt;https://www.google.com.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;So you will get the Google search engine page directly. But Do you have any idea&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;What&#39;s the process behind that?&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;I real world this how its work&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; font-family: sans-serif; margin: 0.5em 0px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHaMyrdkZ1DjZYh_xCOG9NVURd-4uvtY7wcU0YYPvxwuRJ3WrpIqNYaZS0aYyIvQEKSsoH4MyoY3C4eoiP2MicQjM57UQOyj2fzgJISpUilwnCLvhMdQq1wJdTjyH5b3EQ8vuqhigAWLE/s1112/2.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;570&quot; data-original-width=&quot;1112&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHaMyrdkZ1DjZYh_xCOG9NVURd-4uvtY7wcU0YYPvxwuRJ3WrpIqNYaZS0aYyIvQEKSsoH4MyoY3C4eoiP2MicQjM57UQOyj2fzgJISpUilwnCLvhMdQq1wJdTjyH5b3EQ8vuqhigAWLE/w640-h328/2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;First our Request goes to ISP(Internet Service Provider), ISP then transfer our request to DNS.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; color: #202122; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;And Now question is &lt;b&gt;what is DNS?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;b style=&quot;color: #202122;&quot;&gt;DNS Is a kind of &lt;/b&gt;&lt;span face=&quot;sans-serif&quot; style=&quot;color: #202122;&quot;&gt;&lt;b&gt;Library&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #202122;&quot;&gt;&amp;nbsp;which holds number of IP Addresses and return the IP Address of the &lt;/b&gt;&lt;span face=&quot;sans-serif&quot; style=&quot;color: #202122;&quot;&gt;&lt;b&gt;particular&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #202122;&quot;&gt;&amp;nbsp;URL which has been questioned to it.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;span&gt;In this case its&lt;/span&gt; &lt;b&gt;https://www.google.com.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Then the request with some IP Address comes back to ISP and the ISP send the response to our client machine.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;But hold on, How its shown as a google search page.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;It has a separate story behind it.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRcN2XsWwLW2pRy9eEa1fEr231LM4Xfy2LXM3KT93dv_G42KOoMtPP6bk4EsLr54z1UGzZ4hPgBwUXRD_fIL4zaDanJVrnwyM8jnHHA4pCZxrkcmO2lLvJlILdRb1y5ZqK74mHnhUVdU8/s1107/3.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;600&quot; data-original-width=&quot;1107&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRcN2XsWwLW2pRy9eEa1fEr231LM4Xfy2LXM3KT93dv_G42KOoMtPP6bk4EsLr54z1UGzZ4hPgBwUXRD_fIL4zaDanJVrnwyM8jnHHA4pCZxrkcmO2lLvJlILdRb1y5ZqK74mHnhUVdU8/w640-h346/3.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;In the picture above the response returning with three files &lt;b&gt;HTML CSS and JavaScript&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Yes that&#39;s&amp;nbsp;the answer.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;We got response in the form of a web page which has built with a base made by HTML some beautiful page designs made by CSS and the functionality made by JavaScript.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Yes there are some other files to like images videos or some documents we get too. but that depends Totally on which request we a performing.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxwTHhgUY8cgcos7wM0iBW98squrcMMcSDTrXmQxJ3uA99iDrJri_DdRuAu0mfFmxNOFGof1y9KXP11blsDYbrPJ4ZLbut33e6PmSG3Otb9Etrp1bXKLP5XSVrGnnR95CUdTRzMr27SsM/s1103/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;523&quot; data-original-width=&quot;1103&quot; height=&quot;304&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxwTHhgUY8cgcos7wM0iBW98squrcMMcSDTrXmQxJ3uA99iDrJri_DdRuAu0mfFmxNOFGof1y9KXP11blsDYbrPJ4ZLbut33e6PmSG3Otb9Etrp1bXKLP5XSVrGnnR95CUdTRzMr27SsM/w640-h304/5.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;So as In the above picture we can see. that Google server has sent a response to the client machine in the form of Html CSS and Java script.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;And then we got what?&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEaphAjlahVXM9zqd4MGq9x1tA_OTzyhYPgD4pug0C_0iDzomneAgTGrKJTKudd2KFp4XThlHxfTiHTG-hxtDtqNVky9PXKgn6y2kXbaFRHAB5_vvrR8M-aQYnucWvUMZR29CDvxxSXnQ/s1106/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;601&quot; data-original-width=&quot;1106&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEaphAjlahVXM9zqd4MGq9x1tA_OTzyhYPgD4pug0C_0iDzomneAgTGrKJTKudd2KFp4XThlHxfTiHTG-hxtDtqNVky9PXKgn6y2kXbaFRHAB5_vvrR8M-aQYnucWvUMZR29CDvxxSXnQ/w640-h348/6.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;We got our response as &lt;b&gt;Google search page&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;So This is how Web browsing Works Hope you have enjoy the Blog. And If yes Please leave a nice comment for the motivation....&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;If you would Like to Listen this topic in Hindi on YouTube so you can visit my YouTube Channel.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg&quot;&gt;Learn With Reshu&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit; font-size: medium;&quot;&gt;Links for the video :-&amp;nbsp; &lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;320&quot; src=&quot;https://www.youtube.com/embed/xYlqedwzJps&quot; width=&quot;406&quot; youtube-src-id=&quot;xYlqedwzJps&quot;&gt;&lt;/iframe&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Thanks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Best Regards&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Reshu&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; margin: 0.5em 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/body&gt;
    &lt;/html&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/7704549900472202328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2021/06/Web-Browsing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7704549900472202328'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7704549900472202328'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2021/06/Web-Browsing.html' title='Web Browsing || How does It works?'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfc-i-Fn-KxxzbdzWdO-bQoNkC2DLzKJpl7Di89i6WuR2fV-KWEM0_p6Gt0IaWkEGkWWlB_fVK-28w9MXsI0lAtohyphenhyphenbiS4VSbSakq8ykxqq5EiP_aPu2wjGb5VOkH8rGsSoo9ajcuReoM/s72-w640-h352-c/Web+Browsing.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-6679265362659506838</id><published>2020-10-29T02:59:00.007-07:00</published><updated>2020-11-05T23:42:44.134-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Abstraction in Java"/><category scheme="http://www.blogger.com/atom/ns#" term="How Abstraction works in java with example code"/><title type='text'>Abstraction in Java, How Abstraction works in java with example code</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Abstraction in Java, How Abstraction works in java with example&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqU6bzRgXqSlb61dLvWOGoCF05oz4n_UY2X5zC0LAyY2Tjw37VyYVcZQEwjKDnT0aSE9PWgYrjYR_b4o9Il4ulVa0tC8gJ5dmjSAhEcyV7-hPqblPM8i8UWTryzsVAiqP2WhyphenhyphenA3nCme1w/s1600/1.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;731&quot; data-original-width=&quot;1310&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqU6bzRgXqSlb61dLvWOGoCF05oz4n_UY2X5zC0LAyY2Tjw37VyYVcZQEwjKDnT0aSE9PWgYrjYR_b4o9Il4ulVa0tC8gJ5dmjSAhEcyV7-hPqblPM8i8UWTryzsVAiqP2WhyphenhyphenA3nCme1w/s640/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;Class&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;Objects &amp;amp; Methods&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;Inheritance(IS-A)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;HAS-A Relationship Association&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;Aggregation&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;Composition&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;Polymorphism&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;Method Overloading&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;Method Overriding&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Abstraction in Java (Security)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Abstraction&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;div&gt;Data Hiding&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;div&gt;Encapsulation&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;div&gt;Tightly coupled Classes&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;h2&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;What is Abstraction&lt;/h2&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;abstraction is a process of hiding the implementation details from the user, only the functionality will be provided to the user. In other words, the user will have the information on what the object does instead of how it does it.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;How to achieve&amp;nbsp;Abstraction&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Abstract Class (0-100 %)&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Interfaces (100 %)&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqs8BHi79zxPGKdFqiM6ridbZ2qK7vcDHP8J8n02FwQaNGxVX5qsHtuIGtAx6LShky6bRWszEerx9CsCJfylrx-qa9I96aGC1BcRyYjtW4pWUiEYw_xvYgQkPANTO-k5J-0QnD-F514cg/s1600/5.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;724&quot; data-original-width=&quot;1268&quot; height=&quot;364&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqs8BHi79zxPGKdFqiM6ridbZ2qK7vcDHP8J8n02FwQaNGxVX5qsHtuIGtAx6LShky6bRWszEerx9CsCJfylrx-qa9I96aGC1BcRyYjtW4pWUiEYw_xvYgQkPANTO-k5J-0QnD-F514cg/s640/5.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;let&#39;s consider a Car, which abstracts the internal details and exposes to the driver only those details that are relevant to the interaction of the driver with the Car.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq-Qzj3kN-QM9WkNZHC0U6kqFMZMUaPuCXQIc474spUhXprQVGO_dGbXreRVB3M174iDb457Ly1R580qLH9FLI8fVwozQCwWXMdiGMMi1rwokQbBkd3_0IVJbNtRjEhv1vvaTRzZeMl48/s1600/6.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;723&quot; data-original-width=&quot;1257&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq-Qzj3kN-QM9WkNZHC0U6kqFMZMUaPuCXQIc474spUhXprQVGO_dGbXreRVB3M174iDb457Ly1R580qLH9FLI8fVwozQCwWXMdiGMMi1rwokQbBkd3_0IVJbNtRjEhv1vvaTRzZeMl48/s640/6.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;For Complete Explanation in Hindi Please visit My Youtube Channel&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/14CGkKa-DXU/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/14CGkKa-DXU?feature=player_embedded&quot; width=&quot;320&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;i&gt;Thanks For Watching!!!&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/6679265362659506838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Abstraction-in-Java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/6679265362659506838'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/6679265362659506838'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Abstraction-in-Java.html' title='Abstraction in Java, How Abstraction works in java with example code'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqU6bzRgXqSlb61dLvWOGoCF05oz4n_UY2X5zC0LAyY2Tjw37VyYVcZQEwjKDnT0aSE9PWgYrjYR_b4o9Il4ulVa0tC8gJ5dmjSAhEcyV7-hPqblPM8i8UWTryzsVAiqP2WhyphenhyphenA3nCme1w/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-7719658650021060670</id><published>2020-10-29T02:31:00.006-07:00</published><updated>2020-11-05T23:44:33.586-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interface in Java"/><title type='text'>Interface in Java</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Interface in Java&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;745&quot; data-original-width=&quot;1326&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfWzVfZGrHOK4QNZLKDav5zGOZWHv9xxSkll8ga3RkBcqSLVK6gQzMwhIN2ZLZFQILW1taIBgpGokWcpwO2AJyl8O7B49hyAvOKmyaIogm4Asl6PXtYgo9_k35eQswvagWBj6T_WyAnN0/s640/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h1 style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;What is Interfaces&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;Another way to achieve abstraction in Java, is with interfaces. It’s a blueprint of a class, which tells by class what to do not how to do.&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;An interface is a completely &quot;abstract class&quot; that is used to group related methods with empty bodies.&amp;nbsp;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Features of Interfaces&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;It is used to achieve abstraction.&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;It supports multiple inheritance.&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;It can be used to achieve loose coupling&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;Like abstract classes, interfaces cannot be used to create objects&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;Interface methods do not have a body - the body is provided by the &quot;implement&quot; class&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;On implementation of an interface, you must override all of its methods&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;Interface methods are by default abstract and public&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;Interface attributes are by default public, static and final&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div&gt;&lt;div&gt;An interface cannot contain a constructor (as it cannot be used to create objects)&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Why and When to use Interfaces&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;1) To achieve security - hide certain details and only show the important details of an object (interface).&lt;/div&gt;&lt;div&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2) Java does not support &quot;multiple inheritance&quot; (a class can only inherit from one superclass). However, it can be achieved with interfaces, because the class can implement multiple interfaces. Note: To implement multiple interfaces, separate them with a comma.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Ex. Class A implements B, C, D{&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Java Interface Example&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;In this example, the Printable interface has only one method, and its implementation is provided in the A6 class.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;interface&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;printable{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;print();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;A6&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;implements&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;printable{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;print(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Hello&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;A6&amp;nbsp;obj&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;A6();&amp;nbsp;&amp;nbsp;&lt;/span&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;obj.print();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); font-family: verdana; margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Hello&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;For Complete Explanation in Hindi Please visit My Youtube Channel&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/x18XnKgK9_8/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/x18XnKgK9_8?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &amp;quot;calibri light&amp;quot;; font-size: 58.6667px; font-style: italic; font-weight: 700;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks For Watching!!!&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/7719658650021060670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/interface-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7719658650021060670'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7719658650021060670'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/interface-in-java.html' title='Interface in Java'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfWzVfZGrHOK4QNZLKDav5zGOZWHv9xxSkll8ga3RkBcqSLVK6gQzMwhIN2ZLZFQILW1taIBgpGokWcpwO2AJyl8O7B49hyAvOKmyaIogm4Asl6PXtYgo9_k35eQswvagWBj6T_WyAnN0/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-8854277915111200289</id><published>2020-10-29T02:21:00.002-07:00</published><updated>2020-11-05T23:45:56.516-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Loops in java With Example Code"/><title type='text'>Loops in java With Example Code</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style=&quot;font-family: &amp;quot;tw cen mt&amp;quot;; font-size: large; font-style: italic; text-transform: uppercase; vertical-align: baseline;&quot;&gt;LOOPS IN JAVA WITH EXAMPLE CODE&lt;/span&gt;&lt;/h2&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNrki-EJtHkT2nTHeo7NJIm9BPpEsFayu8JmKNCoFq1gfOBdvv6dir5jwP6qaXYhoTb6TRt73A0YklYplmYb3Pl_9wNZD-QVcaI8Yj_Sp-MwgdGfAJN7FxIjONinuNKw2wVEFw4I0eDwc/s1600/1.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;736&quot; data-original-width=&quot;1304&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNrki-EJtHkT2nTHeo7NJIm9BPpEsFayu8JmKNCoFq1gfOBdvv6dir5jwP6qaXYhoTb6TRt73A0YklYplmYb3Pl_9wNZD-QVcaI8Yj_Sp-MwgdGfAJN7FxIjONinuNKw2wVEFw4I0eDwc/s640/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;In programming languages, loops are used to execute a set of instructions/functions repeatedly when some conditions become true. There are three types of loops in Java.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;for loop&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;while loop&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;do-while loop&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;font-family: times; font-size: x-large; text-align: left; text-transform: uppercase;&quot;&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 25px; line-height: 1.3em; text-transform: none;&quot;&gt;Java For Loop vs While Loop vs Do While Loop&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi93oYzaV3lcOXZSDt7Gk_fLwYe9CnLM0X-MsUJCuFSoK0Ej6C5fkbRGAWO3PbYUiKp7YhdvkJ3hzhVJR_chqj81pvqAFJWnESr19CwP3P5TAKLiMLkPxOzL8eE5tec6RjsZYEXpz7C0ew/s1244/Compsrision+between+loops.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;617&quot; data-original-width=&quot;1244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi93oYzaV3lcOXZSDt7Gk_fLwYe9CnLM0X-MsUJCuFSoK0Ej6C5fkbRGAWO3PbYUiKp7YhdvkJ3hzhVJR_chqj81pvqAFJWnESr19CwP3P5TAKLiMLkPxOzL8eE5tec6RjsZYEXpz7C0ew/s16000/Compsrision+between+loops.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Java For Loop&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The Java for loop is used to iterate a part of the program several times. If the number of iteration is fixed, it is recommended to use for loop.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;There are three types of for loops in java&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Simple For Loop&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;For-each or Enhanced For Loop&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;Labeled For Loop&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.75); font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.75); font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.75); font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;01. Simple For Loop&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.75); font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Java&amp;nbsp;Program&amp;nbsp;to&amp;nbsp;demonstrate&amp;nbsp;the&amp;nbsp;example&amp;nbsp;of&amp;nbsp;for&amp;nbsp;loop&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//which&amp;nbsp;prints&amp;nbsp;table&amp;nbsp;of&amp;nbsp;1&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;ForExample&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String[]&amp;nbsp;args)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Code&amp;nbsp;of&amp;nbsp;Java&amp;nbsp;for&amp;nbsp;loop&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;i=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;i&amp;lt;=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;i++){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(i);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.75); font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); font-family: verdana; margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1
2
3
4
5
6
7
8
9
10&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.75); font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: rgba(0, 0, 0, 0.75); font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;02.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;For-each or Enhanced For Loop&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: verdana; font-size: 13px;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;/Java&amp;nbsp;For-each&amp;nbsp;loop&amp;nbsp;example&amp;nbsp;which&amp;nbsp;prints&amp;nbsp;the&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//elements&amp;nbsp;of&amp;nbsp;the&amp;nbsp;array&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;ForEachExample&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String[]&amp;nbsp;args)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Declaring&amp;nbsp;an&amp;nbsp;array&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;arr[]={&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;44&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;56&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;};&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Printing&amp;nbsp;array&amp;nbsp;using&amp;nbsp;for-each&amp;nbsp;loop&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;i:arr){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(i);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); font-family: verdana; margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;12
23
44
56
78&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 style=&quot;clear: both;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;03. Labeled For Loop&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//A&amp;nbsp;Java&amp;nbsp;program&amp;nbsp;to&amp;nbsp;demonstrate&amp;nbsp;the&amp;nbsp;use&amp;nbsp;of&amp;nbsp;labeled&amp;nbsp;for&amp;nbsp;loop&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;LabeledForExample&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String[]&amp;nbsp;args)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Using&amp;nbsp;Label&amp;nbsp;for&amp;nbsp;outer&amp;nbsp;and&amp;nbsp;for&amp;nbsp;loop&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aa:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;i=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;i&amp;lt;=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;i++){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bb:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;j=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;j&amp;lt;=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;j++){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;(i==&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;amp;&amp;amp;j==&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;aa;&amp;nbsp;&amp;nbsp;&lt;/span&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(i+&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;+j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); font-family: verdana; margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1 1
1 2
1 3
2 1&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;h1 style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Java While Loop&lt;/span&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The Java while loop is used to iterate a part of the program several times. If the number of iteration is not fixed, it is recommended to use while loop.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border: none; margin: 0px; padding: 0px; text-align: start;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;WhileExample&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String[]&amp;nbsp;args)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;i=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;(i&amp;lt;=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(i);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i++;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;p style=&quot;background-color: white; text-align: start;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); font-family: verdana; margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; text-align: start; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1
2
3
4
5
6
7
8
9
10&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Java do-while Loop&lt;/span&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The Java do-while loop is used to iterate a part of the program several times. If the number of iteration is not fixed and you must have to execute the loop at least once, it is recommended to use do-while loop.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The Java do-while loop is executed at least once because condition is checked after loop body.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;DoWhileExample&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String[]&amp;nbsp;args)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;i=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; margin: 0px; padding: 0px;&quot;&gt;do&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(i);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i++;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; margin: 0px; padding: 0px;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;(i&amp;lt;=&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px !important; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; text-align: start;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); font-family: verdana; margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; text-align: start; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1
2
3
4
5
6
7
8
9
10&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;For Complete Explanation in Hindi Please visit My Youtube Channel&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/MSpnpXFWaaM/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/MSpnpXFWaaM?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &amp;quot;calibri light&amp;quot;; font-size: 58.6667px; font-style: italic; font-weight: 700; text-align: left;&quot;&gt;Thanks For Watching!!!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/8854277915111200289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/loops-in-java-with-example-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/8854277915111200289'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/8854277915111200289'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/loops-in-java-with-example-code.html' title='Loops in java With Example Code'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNrki-EJtHkT2nTHeo7NJIm9BPpEsFayu8JmKNCoFq1gfOBdvv6dir5jwP6qaXYhoTb6TRt73A0YklYplmYb3Pl_9wNZD-QVcaI8Yj_Sp-MwgdGfAJN7FxIjONinuNKw2wVEFw4I0eDwc/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-4855149581024793732</id><published>2020-10-29T02:04:00.001-07:00</published><updated>2020-11-05T23:47:09.019-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exception handling in java"/><title type='text'> Exception Handling in Java</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-style: italic;&quot;&gt;Exception Handling in Java&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-style: italic; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ6JV07so_q3xA-BokKPXiFyAF1gZTXx9UG8Uz6xJNygY56v7bw2kwZPtUmJPSgTdk1Fep1K-IF_qH97J_bh2s6llOCvIx9lWEookUPCqhdrnwcKTU18p1vvESJFZkCK08uSTSRSDVO7Y/s1600/1.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;727&quot; data-original-width=&quot;1295&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ6JV07so_q3xA-BokKPXiFyAF1gZTXx9UG8Uz6xJNygY56v7bw2kwZPtUmJPSgTdk1Fep1K-IF_qH97J_bh2s6llOCvIx9lWEookUPCqhdrnwcKTU18p1vvESJFZkCK08uSTSRSDVO7Y/s640/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: x-large; font-style: italic;&quot;&gt;&lt;strong style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-style: normal; margin: 0px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;What is an Exception?&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-style: italic; font-weight: bold;&quot;&gt;&lt;span color=&quot;rgba(0 , 0 , 0 , 0.84)&quot; face=&quot;&amp;quot;roboto&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-style: normal; font-weight: 400;&quot;&gt;An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow of the program’s instructions.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTY0NsPqODno0mJPIA00KlSLdGYdNbkDc8XMRzTAg524X7R5c6PsTCMntTrt5KHQL7-61ZIXJi_ln2XP9TBXvjRNA2n2aXC3qrTcb-jfs4PC5fTA213GE3rVRpQuy_YH4CJalhfLqEjVY/s1600/2.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;742&quot; data-original-width=&quot;1314&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTY0NsPqODno0mJPIA00KlSLdGYdNbkDc8XMRzTAg524X7R5c6PsTCMntTrt5KHQL7-61ZIXJi_ln2XP9TBXvjRNA2n2aXC3qrTcb-jfs4PC5fTA213GE3rVRpQuy_YH4CJalhfLqEjVY/s640/2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Error vs Exception&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Error:&lt;/span&gt;&lt;/strong&gt;&lt;strong style=&quot;border: 0px; font-size: 16px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;An Error indicates serious problem that a reasonable application should not try to catch.&lt;/span&gt;&lt;br /&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Exception:&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Exception indicates conditions that a reasonable application might try to catch.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjyXjgNkilX3eOHxkEOETV6lH4p_An4trsc1OFAtPzZGF1LU5OZQIrqM-8jD-bvk_cqxOfX-dAW-WMPSyiBe_7oZcBiTbnW4lHC9IlD_YQivvNyjCLq-5m2tKdhlaqZAeCTFV3GrdlW3o/s1600/4.PNG&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;739&quot; data-original-width=&quot;1308&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjyXjgNkilX3eOHxkEOETV6lH4p_An4trsc1OFAtPzZGF1LU5OZQIrqM-8jD-bvk_cqxOfX-dAW-WMPSyiBe_7oZcBiTbnW4lHC9IlD_YQivvNyjCLq-5m2tKdhlaqZAeCTFV3GrdlW3o/s640/4.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Exception Hierarchy&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;All exception and errors types are sub classes of class&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Throwable&lt;/strong&gt;, which is base class of hierarchy.One branch is headed by&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Exception&lt;/strong&gt;. This class is used for exceptional conditions that user programs should catch. NullPointerException is an example of such an exception.Another branch,&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Error&lt;/strong&gt;&amp;nbsp;are used by the Java run-time system(JVM) to indicate errors having to do with the run-time environment itself(JRE). StackOverflowError is an example of such an error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxwj3eL2lqNTKMQhk3WwcHH0ScjwOla4WHAwB6EFnpC326yJaBI0zUGut8nufapQnGXn_pnvJFi5SEDtJ2v8ggHpO5iuatlK4B_YAyMYeHWjMnwCFIMfhycbpNS1jnmVNMJKGTP0AFBOk/s1600/5.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1311&quot; height=&quot;362&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxwj3eL2lqNTKMQhk3WwcHH0ScjwOla4WHAwB6EFnpC326yJaBI0zUGut8nufapQnGXn_pnvJFi5SEDtJ2v8ggHpO5iuatlK4B_YAyMYeHWjMnwCFIMfhycbpNS1jnmVNMJKGTP0AFBOk/s640/5.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;How JVM handle an Exception?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Default Exception Handling&lt;/span&gt;&amp;nbsp;:&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Whenever inside a method, if an exception has occurred, the method creates an Object known as Exception Object and hands it off to the run-time system(JVM). The exception object contains name and description of the exception, and current state of the program where exception has occurred. Creating the Exception Object and handling it to the run-time system is called throwing an Exception.There might be the list of the methods that had been called to get to the method where exception was occurred. This ordered list of the methods is called&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Call Stack&lt;/strong&gt;.Now the following procedure will happen.&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; list-style-image: initial; list-style-position: outside; margin: 0px 0px 24px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The run-time system searches the call stack to find the method that contains block of code that can handle the occurred exception. The block of the code is called&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Exception handler&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The run-time system starts searching from the method in which exception occurred, proceeds through call stack in the reverse order in which methods were called.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If it finds&amp;nbsp; appropriate handler then it passes the occurred exception to it. Appropriate handler means the type of the exception object thrown matches the type of the exception object it can handle.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If run-time system searches all the methods on call stack and couldn’t have found the appropriate handler then run-time system handover the Exception Object to&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;default exception handler&amp;nbsp;&lt;/strong&gt;, which is part of run-time system. This handler prints the exception information in the following format and terminates program&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;abnormally&lt;/strong&gt;.&lt;/span&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre style=&quot;background-color: #e0e0e0; border-radius: 10px; border: 0px; color: rgba(0, 0, 0, 0.9); font-family: Consolas, monospace; font-size: 15px; line-height: 1.58; margin-bottom: 10px; overflow: auto; padding: 10px; vertical-align: baseline;&quot;&gt;Exception in thread &quot;xxx&quot; Name of Exception : Description
... ...... ..  // Call Stack&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKOVbRmFj5xcVYR68zvmBi45ZfwoZdhSegHyoVTomGCMZEh4Fkbnl33ImCVvk58JdlXMqiPzcKzVGTSMfb0AwYrULCsSwSggp10eoGt0yj7XWFVaQ9KrgMJlAE-w9tRAfb2ApMa8nayAU/s1600/3.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1304&quot; height=&quot;364&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKOVbRmFj5xcVYR68zvmBi45ZfwoZdhSegHyoVTomGCMZEh4Fkbnl33ImCVvk58JdlXMqiPzcKzVGTSMfb0AwYrULCsSwSggp10eoGt0yj7XWFVaQ9KrgMJlAE-w9tRAfb2ApMa8nayAU/s640/3.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;strong style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;strong style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example&lt;/strong&gt;&lt;span color=&quot;rgba(0 , 0 , 0 , 0.84)&quot; face=&quot;&amp;quot;roboto&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 16px;&quot;&gt;&amp;nbsp;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;code-block&quot; style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); display: flex; flex-direction: row; margin: 0px 0px 10px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;code-container&quot; style=&quot;border: 0px; flex: 1 1 0%; margin: 0px; min-width: 0px; overflow-y: hidden; padding: 0px; vertical-align: baseline; width: 890.594px;&quot;&gt;&lt;div class=&quot;syntaxhighlighter nogutter&quot; id=&quot;highlighter_665719&quot; style=&quot;border: 0px; margin: 1em 0px; overflow: auto; padding: 0px; position: relative; vertical-align: baseline; width: 890.594px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none; border-collapse: collapse; border-radius: 0px; border-spacing: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: rgba(0, 0, 0, 0.84); direction: ltr; float: none; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 0.99em; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 890px;&quot;&gt;&lt;tbody style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 0.99em; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 0.99em; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: 890px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 5px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;span&gt;// Java program to demonstrate how exception is thrown. &lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;span&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;ExecptionExample{ &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;span&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;span&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;main(String args[]){ &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;span&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;span&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;String str = &lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;null&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;; &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;span&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;System.out.println(str.length()); &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;span&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;span&gt;&lt;code class=&quot;undefined spaces&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;} &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px 1em 0px 0em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.2em; margin: 0px; min-height: auto; outline: 0px; overflow: hidden; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;span&gt;} &lt;/span&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;Output :&lt;/div&gt;&lt;pre style=&quot;background-color: #e0e0e0; border-radius: 10px; border: 0px; color: rgba(0, 0, 0, 0.9); line-height: 1.58; margin-bottom: 10px; overflow: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Exception in thread &quot;main&quot; java.lang.NullPointerException
    at ExecptionExample.main(File.java:8)&lt;/span&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;How to use try-catch clause&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;pre style=&quot;background-color: #e0e0e0; border-radius: 10px; border: 0px; color: rgba(0, 0, 0, 0.9); line-height: 1.58; margin-bottom: 10px; overflow: auto; padding: 10px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;try {
// block of code to monitor for errors
// the code you think can raise an exception
}
catch (ExceptionType1 exOb) {
// exception handler for ExceptionType1
}
catch (ExceptionType2 exOb) {
// exception handler for ExceptionType2
}
// optional
finally {
// block of code to be executed after try block ends
}&lt;/span&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; text-align: center; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;How Programmer handles an exception?&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Customized Exception Handling&lt;/span&gt;&lt;/strong&gt;&lt;strong style=&quot;border: 0px; font-size: 16px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;:&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Java exception handling is managed via five keywords:&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;try&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;catch&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot; target=&quot;_blank&quot;&gt;throw&lt;/a&gt;&lt;/strong&gt;,&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot; target=&quot;_blank&quot;&gt;throws&lt;/a&gt;&lt;/strong&gt;, and&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;finally&lt;/strong&gt;. Briefly, here is how they work. Program statements that you think can raise exceptions are contained within a try block. If an exception occurs within the try block, it is thrown. Your code can catch this exception (using catch block) and handle it in some rational manner. System-generated exceptions are automatically thrown by the Java run-time system. To manually&amp;nbsp;&lt;b&gt;throw&amp;nbsp;&lt;/b&gt;an exception, use the keyword&amp;nbsp;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot; target=&quot;_blank&quot;&gt;throw&lt;/a&gt;. Any exception that is thrown out of a method must be specified as such by a&amp;nbsp;&lt;b&gt;&lt;span style=&quot;border-color: initial; border-image: initial; border-style: initial; outline-color: initial; outline-width: initial;&quot;&gt;throws&lt;/span&gt;&amp;nbsp;&lt;/b&gt;clause. Any code that absolutely must be executed after a try block completes is put in a finally block.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;package com.exception.examples;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;public class Unchecked_Demo {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;public static void main(String args[]) {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;try&lt;/b&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; int num[] = {1, 2, 3, 4};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(num[5]);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;}&lt;b&gt;catch&lt;/b&gt;(ArrayIndexOutOfBoundsException e) {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;System.out.println(&quot;num[] has exceed limits&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;e.printStackTrace();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWarDFF-RcLkcHEXm_efcqqfeHs-paL2Ss-fEhyaiNi0lF5ZqLryeWfFLbty8qQsX5837z9htMIl0NnFPP2uvciB_YxC_AAQ3yddKAlx0ufLLDWLWeTbDiSWCi-3sLzpZO3Csc7Chthxc/s1600/6.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1305&quot; height=&quot;364&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWarDFF-RcLkcHEXm_efcqqfeHs-paL2Ss-fEhyaiNi0lF5ZqLryeWfFLbty8qQsX5837z9htMIl0NnFPP2uvciB_YxC_AAQ3yddKAlx0ufLLDWLWeTbDiSWCi-3sLzpZO3Csc7Chthxc/s640/6.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Points to be Noted:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;ul style=&quot;background-color: white; border: 0px; color: rgba(0, 0, 0, 0.84); line-height: 1.71429; list-style-image: initial; list-style-position: outside; margin: 0px 0px 24px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;border: 0px; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;In a method, there can be more than one statements that might throw exception, So put all these statements within its own&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;try&lt;/strong&gt;&amp;nbsp;block and provide separate exception handler within own&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;catch&lt;/strong&gt;&amp;nbsp;block for each of them.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;If an exception occurs within the&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;try&lt;/strong&gt;&amp;nbsp;block, that exception is handled by the exception handler associated with it. To associate exception handler, we must put&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;catch&lt;/strong&gt;&amp;nbsp;block after it. There can be more than one exception handlers. Each&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;catch&lt;/strong&gt;&amp;nbsp;block is a exception handler that handles the exception of the type indicated by its argument. The argument, ExceptionType declares the type of the exception that it can handle and must be the name of the class that inherits from&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Throwable&lt;/strong&gt;&amp;nbsp;class.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;For each try block there can be zero or more catch blocks, but&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;only one&lt;/strong&gt;&amp;nbsp;finally block.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: 0px; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The finally block is optional.It always gets executed whether an exception occurred in try block or not . If exception occurs, then it will be executed after&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;try and catch blocks.&lt;/strong&gt;&amp;nbsp;And if exception does not occur then&amp;nbsp;it will be executed after the&amp;nbsp;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;try&lt;/strong&gt;&amp;nbsp;block.&amp;nbsp;The finally block in java is used to put important codes such as clean up code e.g. closing the file or closing the connection.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgIFhb_yqS-YG84-JezBtyq2X_B8pfzlhBDkP-_HKZaVFonkhFOuc26s5vEcTze0ewOEJyG_iHT-KqtbgT-awmtOtPFET9jZ10mBf5fBmqxHWPl4PWdkU5zs6FkbNTKeSZYgthcmn1wWU/s1600/7.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;727&quot; data-original-width=&quot;1295&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgIFhb_yqS-YG84-JezBtyq2X_B8pfzlhBDkP-_HKZaVFonkhFOuc26s5vEcTze0ewOEJyG_iHT-KqtbgT-awmtOtPFET9jZ10mBf5fBmqxHWPl4PWdkU5zs6FkbNTKeSZYgthcmn1wWU/s640/7.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=yBsPh9-iBOc&amp;amp;t=14s&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;&lt;/a&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/c/LearnWithReshu5/&quot; target=&quot;_blank&quot;&gt;For Complete Explanation in Hindi Please visit My Youtube Channel&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/yBsPh9-iBOc/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/yBsPh9-iBOc?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &amp;quot;calibri light&amp;quot;; font-size: 58.6667px; font-style: italic; font-weight: 700; text-align: left;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=yBsPh9-iBOc&amp;amp;t=14s&quot; target=&quot;_blank&quot;&gt;Thanks For Watching!!!&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/4855149581024793732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/exception-handling-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4855149581024793732'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4855149581024793732'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/exception-handling-in-java.html' title=' Exception Handling in Java'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ6JV07so_q3xA-BokKPXiFyAF1gZTXx9UG8Uz6xJNygY56v7bw2kwZPtUmJPSgTdk1Fep1K-IF_qH97J_bh2s6llOCvIx9lWEookUPCqhdrnwcKTU18p1vvESJFZkCK08uSTSRSDVO7Y/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-4874641179847317014</id><published>2020-10-29T02:00:00.003-07:00</published><updated>2020-10-29T02:00:45.208-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Throw keywords in Exception Handling in Java"/><title type='text'> Throw keywords in Exception Handling in Java</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: xx-large; font-style: italic; font-weight: bold;&quot;&gt;Throw&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: xx-large; font-style: italic; font-weight: bold;&quot;&gt;keywords in Exception Handling in Java&lt;/span&gt;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: calibri light; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_iHXJeAa_WRvBpLgb3mWzdaa9J5dCR9Hpds1prwHDdtKFl9UpaGRnZnl5nF3gJlKVuR1q_Bt-vBq5VQQQUFvuPf6pO788ENZ-g3dWpdvy3QVRApNCnAaF720Yw_AemMh_yjatK6ZGrxM/s1600/thumbnail.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;797&quot; data-original-width=&quot;1600&quot; height=&quot;314&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_iHXJeAa_WRvBpLgb3mWzdaa9J5dCR9Hpds1prwHDdtKFl9UpaGRnZnl5nF3gJlKVuR1q_Bt-vBq5VQQQUFvuPf6pO788ENZ-g3dWpdvy3QVRApNCnAaF720Yw_AemMh_yjatK6ZGrxM/s640/thumbnail.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h1 class=&quot;h1&quot; style=&quot;background-color: white; color: #610b38; font-family: erdana, helvetica, arial, sans-serif; font-size: 29px; font-weight: 400; line-height: 1.3em; margin-top: 5px;&quot;&gt;&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 25px; line-height: 1.3em;&quot;&gt;Java throw keyword&lt;/h2&gt;&lt;h2 style=&quot;background-color: white; line-height: 1.3em; margin-top: 5px;&quot;&gt;&lt;div style=&quot;font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The Java throw keyword is used to explicitly throw an exception.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;We can throw either checked or uncheked exception in java by throw keyword. The throw keyword is mainly used to throw custom exception. We will see custom exceptions later.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: 400;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The syntax of java throw keyword is given below.&lt;/span&gt;&lt;/div&gt;&lt;/h2&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-style: italic; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGCrMBIUS9cYptpz29OpCfa7HZOmGH2_6XXaQWc8kYdihpl05mVH_Qmex444qUFnf04LnYBbLtUSFtvK57ttOdtS6LAxn0TtweExYZ_es3bAEPabzmXjLWg-GYZtJlrlkHWHxMxuB3uwY/s1600/1.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;732&quot; data-original-width=&quot;1295&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGCrMBIUS9cYptpz29OpCfa7HZOmGH2_6XXaQWc8kYdihpl05mVH_Qmex444qUFnf04LnYBbLtUSFtvK57ttOdtS6LAxn0TtweExYZ_es3bAEPabzmXjLWg-GYZtJlrlkHWHxMxuB3uwY/s640/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; color: #610b4b; font-weight: 400; line-height: 1.3em;&quot;&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; color: black; margin-bottom: 8px; padding-left: 0px; width: 1233px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;throw&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;exception;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Let&#39;s see the example of throw IOException.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; color: black; margin-bottom: 8px; padding-left: 0px; width: 1233px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/throw-keyword#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/throw-keyword#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/throw-keyword#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;throw&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;IOException(&quot;sorry&amp;nbsp;device&amp;nbsp;error);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/h3&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;Example&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Suppose You have a Voting system and the condition to vote is age should be greater then 18 so Code vill be like below.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;Example&lt;/h3&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;package com.exception.examples;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;import java.util.Scanner;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span&gt;public class VotingSystem {&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: mediumblue; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void vote() throws AgeException&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: mediumblue; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;Scanner s = new Scanner(System.in);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&amp;nbsp; System.out.println(&quot;Enter your Age&amp;nbsp; :&quot;);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&amp;nbsp; int age = s.nextInt();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(age &amp;lt; 18) {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;throw new AgeException(&quot;Age is not vailid&quot;);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&amp;nbsp;}else {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&amp;nbsp; System.out.println(&quot;your Age is eligible for&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voting&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;hello &quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: mediumblue; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Here the program throw&amp;nbsp; Custom Exception&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;AgeException which is defile like below&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;courier new&amp;quot;; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: mediumblue; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;courier new&amp;quot;; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; margin: 10px 0px;&quot;&gt;Example&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;package com.exception.examples;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;public class AgeException extends RuntimeException{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;public AgeException(String msg){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;color: mediumblue; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;super(msg);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;public class Caller {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;public static void main(String args[]){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&amp;nbsp; &lt;/span&gt;VotingSystem vs = new VotingSystem();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp;vs.vote();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue; font-family: times; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px; margin-top: 16px; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;&lt;span style=&quot;color: mediumblue;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre style=&quot;font-family: verdana; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Exception in thread main com.exception.examples.&lt;span style=&quot;background-color: white; color: mediumblue; white-space: normal;&quot;&gt;AgeException&amp;nbsp;&lt;/span&gt;:Age is not vailid&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: verdana; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: red; font-family: roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;I Hope You Understand the Trow Keyword and how can we use it.&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: red; font-family: roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;background-color: white; color: red; font-family: roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;For Complete Explanation with example code in Hindi Please visit My Youtube Channel&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large; text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/VeptIJDRgjw/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/VeptIJDRgjw?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &amp;quot;calibri light&amp;quot;; font-size: 58.6667px; font-style: italic; font-weight: 700; text-align: left;&quot;&gt;Thanks For Watching!!!&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/4874641179847317014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Throw-keywords-in-exception-handling-in-Java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4874641179847317014'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4874641179847317014'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Throw-keywords-in-exception-handling-in-Java.html' title=' Throw keywords in Exception Handling in Java'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_iHXJeAa_WRvBpLgb3mWzdaa9J5dCR9Hpds1prwHDdtKFl9UpaGRnZnl5nF3gJlKVuR1q_Bt-vBq5VQQQUFvuPf6pO788ENZ-g3dWpdvy3QVRApNCnAaF720Yw_AemMh_yjatK6ZGrxM/s72-c/thumbnail.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-8170219543812999146</id><published>2020-10-29T01:55:00.002-07:00</published><updated>2020-10-29T01:55:15.887-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Inheritance IS-A  Relationship in Java"/><title type='text'>Inheritance IS-A  Relationship in Java</title><content type='html'>&lt;h1 style=&quot;background: white; margin-top: 3.75pt;&quot;&gt;&lt;span&gt;&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;Inheritance in Java&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj912mFVnF5RfTSOWyDIQkGVkE66J5dD5OKlww0ETf4GHb1MWcxkA6JBWfMO5Wq4QZTtA5Xkeg7f7Mr3Fk_cM_HpS498kMCqUwjdZ0xoe7kDddl2k54PXpA0hJ-cwF0xvhuJusBJ6K1-f4/s1600/Title.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;657&quot; data-original-width=&quot;1168&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj912mFVnF5RfTSOWyDIQkGVkE66J5dD5OKlww0ETf4GHb1MWcxkA6JBWfMO5Wq4QZTtA5Xkeg7f7Mr3Fk_cM_HpS498kMCqUwjdZ0xoe7kDddl2k54PXpA0hJ-cwF0xvhuJusBJ6K1-f4/s640/Title.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin-top: 3.75pt; mso-line-height-alt: 15.6pt; mso-margin-bottom-alt: auto; mso-outline-level: 1;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #610b38;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=bYENZaxWk3g&amp;amp;t=381s&quot; style=&quot;font-size: x-large; text-indent: -18pt;&quot; target=&quot;_blank&quot;&gt;Inheritance&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=7Rh5Gozk8R8&amp;amp;t=524s&quot; target=&quot;_blank&quot;&gt;Types of Inheritance&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=7Rh5Gozk8R8&amp;amp;t=524s&quot; style=&quot;font-size: x-large; text-indent: -18pt;&quot; target=&quot;_blank&quot;&gt;Why multiple inheritance is not possible in Java in case of class?&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.75pt; margin-left: 43.5pt; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 15.75pt; margin-left: 43.5pt; margin-top: 3pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; text-indent: -18pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Inheritance in Java&amp;nbsp;is a mechanism in which one object acquires all the properties and behaviors of a parent object. It is an important part of&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: green; mso-ansi-language: EN-US;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot; target=&quot;_blank&quot;&gt;OOPs&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;(Object Oriented programming system).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: large;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;The idea behind inheritance in Java is that you can create new&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: green; mso-ansi-language: EN-US;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot; target=&quot;_blank&quot;&gt;classes&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;that are built upon existing classes. When you inherit from an existing class, you can reuse methods and fields of the parent class. Moreover, you can add new methods and fields in your current class also.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span face=&quot;&amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: large;&quot;&gt;Inheritance represents the&amp;nbsp;IS-A relationship&amp;nbsp;which is also known as a&amp;nbsp;&lt;i&gt;parent-child&lt;/i&gt;&amp;nbsp;relationship.&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Why use inheritance in java&lt;/span&gt;&lt;/h3&gt;&lt;ul class=&quot;points&quot; style=&quot;background-color: white; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; list-style: circle;&quot;&gt;&lt;li style=&quot;line-height: 21px; margin-top: 4px; padding: 0.2em;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot; target=&quot;_blank&quot;&gt;For&amp;nbsp;Method Overriding&amp;nbsp;(so&amp;nbsp;&lt;span style=&quot;color: black; text-decoration-line: none;&quot;&gt;runtime polymorphism&lt;/span&gt;&amp;nbsp;can be achieved).&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;line-height: 21px; margin-top: 4px; padding: 0.2em;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;For Code Reusability.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 21px; line-height: 1.3em;&quot;&gt;The syntax of Java Inheritance&lt;/h3&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 1233px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Subclass-name&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Superclass-name&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//methods&amp;nbsp;and&amp;nbsp;fields&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The&amp;nbsp;&lt;strong style=&quot;color: rgba(0, 0, 0, 0.75);&quot;&gt;extends keyword&lt;/strong&gt;&amp;nbsp;indicates that you are making a new class that derives from an existing class. The meaning of &quot;extends&quot; is to increase the functionality.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;In the terminology of Java, a class which is inherited is called a parent or superclass, and the new class is called child or subclass.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-size: x-large;&quot;&gt;Types of inheritance in java&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-family: times; font-size: large;&quot;&gt;On the basis of class, there can be 5 types of inheritance in java: single, multilevel and hierarchical, hybrid and multilevel inheritance.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif&quot; style=&quot;font-family: times; font-size: large;&quot;&gt;In java programming, multiple and hybrid inheritance is supported through interface only. We will learn about&amp;nbsp;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot; target=&quot;_blank&quot;&gt;interfaces&lt;/a&gt;&amp;nbsp;later.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMlC_jxHSP5d9RVWEtmGcLjlODh0BOCOlUAJJHZPWddzckhEHLiLA_6f6jug0whe5RPrommMbKJp3pvOzOUvelASVNbjzUukF7Vx1DGfbJ7h8SfBrWajjGaysNbaROXq1qt1pbBk2M9Mo/s1600/java-types-of-inheritance.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;713&quot; data-original-width=&quot;1089&quot; height=&quot;419&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMlC_jxHSP5d9RVWEtmGcLjlODh0BOCOlUAJJHZPWddzckhEHLiLA_6f6jug0whe5RPrommMbKJp3pvOzOUvelASVNbjzUukF7Vx1DGfbJ7h8SfBrWajjGaysNbaROXq1qt1pbBk2M9Mo/s640/java-types-of-inheritance.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Single Inheritance Example&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;When a class inherits another class, it is known as a&amp;nbsp;&lt;em&gt;single inheritance&lt;/em&gt;. In the example given below, Dog class inherits the Animal class, so there is the single inheritance.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;filename&quot; style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-style: italic;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;File: MyInheritance.java&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;filename&quot; style=&quot;background-color: white; font-style: italic;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 1233px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Animal{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;eat(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;eating...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Dog&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Animal{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;bark(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;barking...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;MyInheritance{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;Dog&amp;nbsp;d=&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Dog();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;d.bark();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;d.eat();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;barking...
eatin&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Multilevel Inheritance Example&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;When there is a chain of inheritance, it is known as&amp;nbsp;&lt;em&gt;multilevel inheritance&lt;/em&gt;. As you can see in the example given below, BabyDog class inherits the Dog class which again inherits the Animal class, so there is a multilevel inheritance.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;filename&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;File: MyInheritance2.java&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;filename&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 1233px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Animal{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;eat(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;eating...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Dog&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Animal{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;bark(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;barking...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;BabyDog&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Dog{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;weep(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;weeping...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;MyInheritance2{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;BabyDog&amp;nbsp;d=&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;BabyDog();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;d.weep();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;d.bark();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;d.eat();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; font-family: verdana; font-size: 13px; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; font-family: verdana; font-size: 13px; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;weeping...
barking...
eating...&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Hierarchical Inheritance Example&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;When two or more classes inherits a single class, it is known as&amp;nbsp;&lt;em&gt;hierarchical inheritance&lt;/em&gt;. In the example given below, Dog and Cat classes inherits the Animal class, so there is hierarchical inheritance.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;filename&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;File: MyInheritance3.java&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;filename&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 1233px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Animal{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;eat(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;eating...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Dog&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Animal{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;bark(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;barking...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Cat&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Animal{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;meow(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;meowing...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&amp;nbsp; My&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;Inheritance3{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;Cat&amp;nbsp;c=&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;Cat();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;c.meow();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;c.eat();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//c.bark();//C.T.Error&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;font-family: verdana; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;meowing...
eating...&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Why does multiple inheritance is not supported in java?&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;To reduce the complexity and simplify the language, multiple inheritance is not supported in java.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Consider a scenario where A, B, and C are three classes. The C class inherits A and B classes. If A and B classes have the same method and you call it from child class object, there will be ambiguity to call the method of A or B class.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Since compile-time errors are better than runtime errors, Java renders compile-time error if you inherit 2 classes. So whether you have same method or different, there will be compile time error.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 1233px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/inheritance-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;A{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;msg(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Hello&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;B{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;msg(){System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Welcome&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;C&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;A,B{&lt;/span&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//suppose&amp;nbsp;if&amp;nbsp;it&amp;nbsp;were&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;C&amp;nbsp;obj=&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;C();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;obj.msg();&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Now&amp;nbsp;which&amp;nbsp;msg()&amp;nbsp;method&amp;nbsp;would&amp;nbsp;be&amp;nbsp;invoked?&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;&lt;pre style=&quot;font-size: 13px;&quot;&gt;&lt;/pre&gt;&lt;pre style=&quot;font-size: 13px;&quot;&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;b&gt;Compile Time Error&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;I hope you understand the concept of Inheritance&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;For Complete Explanation in Hindi Please visit My Youtube Channel&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/bYENZaxWk3g/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/bYENZaxWk3g?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: &amp;quot;calibri light&amp;quot;; font-size: 58.6667px; font-style: italic; font-weight: 700; text-align: left;&quot;&gt;Thanks For Watching!!!&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/8170219543812999146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Inheritance-IS-ARelationship-in-Java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/8170219543812999146'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/8170219543812999146'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Inheritance-IS-ARelationship-in-Java.html' title='Inheritance IS-A  Relationship in Java'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj912mFVnF5RfTSOWyDIQkGVkE66J5dD5OKlww0ETf4GHb1MWcxkA6JBWfMO5Wq4QZTtA5Xkeg7f7Mr3Fk_cM_HpS498kMCqUwjdZ0xoe7kDddl2k54PXpA0hJ-cwF0xvhuJusBJ6K1-f4/s72-c/Title.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-2246734457975356395</id><published>2020-10-29T01:40:00.004-07:00</published><updated>2020-10-29T01:40:32.157-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Concatenation and Substring"/><category scheme="http://www.blogger.com/atom/ns#" term="String Comparison"/><title type='text'>String Comparison, Concatenation and Substring</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;String Comparison, Concatenation and&lt;br /&gt;&lt;/span&gt;&lt;b style=&quot;font-size: xx-large;&quot;&gt;Substring&lt;/b&gt;&lt;/h2&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipRm5PugBvyspCrzkCjo03vg9fmjG64pYrkZTBELXubcrsgz00gNu2y0ickj_xoBUExGfNJW4LGnheMEuqAXmWO3NiHIV7E2cVroUKDFcRZ4bgAnuyy5_jcVY94G6b-xrUNTJInKIh3V4/s1700/thumbnail.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;952&quot; data-original-width=&quot;1700&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipRm5PugBvyspCrzkCjo03vg9fmjG64pYrkZTBELXubcrsgz00gNu2y0ickj_xoBUExGfNJW4LGnheMEuqAXmWO3NiHIV7E2cVroUKDFcRZ4bgAnuyy5_jcVY94G6b-xrUNTJInKIh3V4/w640-h356/thumbnail.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b style=&quot;font-size: xx-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;There&#39;s a lot to say about Strings, from the ways you can initialize them to the String Literal Pool, however in this article we&#39;ll focus on common operations, rather than the class itself.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Simply put, a String is used to store text, i.e. a sequence of characters. Java&#39;s most used class is the String class, without a doubt, and with such high usage, it&#39;s mandatory for Java developers to be thoroughly acquainted with the class and its common operations.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;font-size: xx-large;&quot;&gt;Java String comparison&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;We can compare string in java on the basis of content and reference.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It is used in authentication (by equals() method),&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;sorting (by compareTo() method),&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;reference matching (by == operator) etc&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;There are three ways to compare string in java:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;By equals() method&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;By = = operator&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;By compareTo() method&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;font-size: xx-large;&quot;&gt;&lt;b&gt;1.Java String equals()&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: xx-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The java string equals() method compares the two given strings based on the content of the string. If any character is not matched, it returns false. If all characters are matched, it returns true.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The String equals() method overrides the equals() method of Object class.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 21px; line-height: 1.3em;&quot;&gt;Internal implementation&lt;/h3&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;boolean&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;equals(Object&amp;nbsp;anObject)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;(&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;==&amp;nbsp;anObject)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;(anObject&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;instanceof&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;String)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;anotherString&amp;nbsp;=&amp;nbsp;(String)&amp;nbsp;anObject;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;n&amp;nbsp;=&amp;nbsp;value.length;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;(n&amp;nbsp;==&amp;nbsp;anotherString.value.length)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;v1[]&amp;nbsp;=&amp;nbsp;value;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;v2[]&amp;nbsp;=&amp;nbsp;anotherString.value;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;(n--&amp;nbsp;!=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;(v1[i]&amp;nbsp;!=&amp;nbsp;v2[i])&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i++;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 21px; line-height: 1.3em;&quot;&gt;Signature&lt;/h3&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;boolean&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;equals(Object&amp;nbsp;anotherObject)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 21px; line-height: 1.3em;&quot;&gt;Parameter&lt;/h3&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b style=&quot;color: rgba(0, 0, 0, 0.75);&quot;&gt;anotherObject&lt;/b&gt;&amp;nbsp;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;another object i.e. compared with this string.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Returns&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;true if characters of both strings are equal otherwise false.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span face=&quot;erdana, helvetica, arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Overrides&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span face=&quot;erdana, helvetica, arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 21px; font-weight: normal;&quot;&gt;equals() method of java Object class.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Java String equals() method example&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;EqualsExample{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;String&amp;nbsp;s1=&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;learnwithreshu&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;String&amp;nbsp;s2=&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;learnwithreshu&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;String&amp;nbsp;s3=&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;LEARNWITHRESHU&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;String&amp;nbsp;s4=&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;python&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;System.out.println(s1.equals(s2));&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//true&amp;nbsp;because&amp;nbsp;content&amp;nbsp;and&amp;nbsp;case&amp;nbsp;is&amp;nbsp;same&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;System.out.println(s1.equals(s3));&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//false&amp;nbsp;because&amp;nbsp;case&amp;nbsp;is&amp;nbsp;not&amp;nbsp;same&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;System.out.println(s1.equals(s4));&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//false&amp;nbsp;because&amp;nbsp;content&amp;nbsp;is&amp;nbsp;not&amp;nbsp;same&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;erdana, helvetica, arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;erdana, helvetica, arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 21px;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;true
false
false&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Java String equals() Method Example 2&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The equals() method compares two strings and can be used in if-else control structure.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;EqualsExample&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String[]&amp;nbsp;args)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;s1&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;learnwithreshu&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;s2&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;learnwithreshu&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;s3&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;learnwithreshu&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(s1.equals(s2));&amp;nbsp;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//&amp;nbsp;True&amp;nbsp;because&amp;nbsp;content&amp;nbsp;is&amp;nbsp;same&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;(s1.equals(s3))&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;both&amp;nbsp;strings&amp;nbsp;are&amp;nbsp;equal&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;System.out.println(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;both&amp;nbsp;strings&amp;nbsp;are&amp;nbsp;unequal&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;OutPut&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;
&lt;/span&gt;&lt;span&gt;both strings are unequal&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Java String equals() Method Example 3&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Let&#39;s see one more example to test the equality of string present in the list.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/java-string-equals#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;java.util.ArrayList;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;EqualsExample3&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String[]&amp;nbsp;args)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;str1&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Mukesh&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ArrayList&amp;lt;String&amp;gt;&amp;nbsp;list&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;ArrayList&amp;lt;&amp;gt;();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;list.add(&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Ravi&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;list.add(&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Mukesh&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;list.add(&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Ramesh&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;list.add(&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Ajay&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;(String&amp;nbsp;str&amp;nbsp;:&amp;nbsp;list)&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;(str.equals(str1))&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Mukesh&amp;nbsp;is&amp;nbsp;present&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;codeblock3&quot; style=&quot;background: rgb(249, 251, 249); border: 1px solid rgb(213, 221, 198); margin: 8px 0px 0px; overflow-x: scroll; padding: 0px 0px 0px 5px; width: 850px;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Mukesh is present&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: xx-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;background-color: white; font-weight: 700;&quot;&gt;2.&lt;/span&gt;&lt;span face=&quot;Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif&quot; style=&quot;background-color: white; font-weight: 700;&quot;&gt;The ==&amp;nbsp;Operator&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span face=&quot;Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif&quot; style=&quot;background-color: white; font-family: times; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;When you use the equality operator with primitive types, you’re just comparing their values. Take a look at the following examples:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;wp-block-preformatted prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 4px; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #555555; line-height: 1.7; margin-bottom: 1.313em; margin-top: 0px; outline: none; overflow-wrap: break-word; padding: 0.786em 1.071em; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; font-family: consolas, &amp;quot;andale mono wt&amp;quot;, &amp;quot;andale mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;lucida sans typewriter&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;nimbus mono l&amp;quot;, monaco, &amp;quot;courier new&amp;quot;, courier, monospace; font-size: x-large; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// comparing ints&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; x&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; y&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666; outline: none;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666; outline: none;&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;x &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; y&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// prints &#39;false&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// comparing chars&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;char&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; a&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; b&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;a &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;b &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;a &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; b&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// prints &#39;true&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// comparing booleans&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;boolean&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; t&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; f&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;t &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;f &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;t &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; f&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// prints &#39;false&#39;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;background-color: white; box-sizing: border-box; font-weight: 400; line-height: 1; margin: 2em 0px 0.7em; outline: none; text-rendering: optimizelegibility;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: 700; outline: none;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Using the == Operator With Object Types&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;When it comes to object types, the == operator is used to perform a referential equality comparison. What does that mean? It means that when you use the operator with object types, what you’re actually doing is testing whether the two variables have references that point to the same space in memory. Even if the objects referenced by the variables are identical in regards to their values, the results will still be false. This is somewhat unintuitive, and it can be a source of confusion—and bugs—especially for beginners. Let’s illustrate that with a code example. Suppose you have a Person class, like the one below:&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;box-sizing: border-box; outline: none;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;box-sizing: border-box; outline: none;&quot;&gt;&lt;pre class=&quot;wp-block-preformatted prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 4px; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #555555; line-height: 1.7; margin-bottom: 1.313em; margin-top: 0px; outline: none; overflow-wrap: break-word; padding: 0.786em 1.071em; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;private&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;final&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;private&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;final&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; age&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; getName&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; getAge&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; age&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; age&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;name &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;age &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; age&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; margin: 0px 0px 1em; outline: none; text-rendering: optimizelegibility;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; margin: 0px 0px 1em; outline: none; text-rendering: optimizelegibility;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Now, consider the following&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 700; outline: none;&quot;&gt;main&lt;/span&gt;&amp;nbsp;method:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; margin: 0px 0px 1em; outline: none; text-rendering: optimizelegibility;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;wp-block-preformatted prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 4px; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #555555; line-height: 1.7; margin-bottom: 1.313em; margin-top: 0px; outline: none; overflow-wrap: break-word; padding: 0.786em 1.071em; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; font-family: consolas, &amp;quot;andale mono wt&amp;quot;, &amp;quot;andale mono&amp;quot;, &amp;quot;lucida console&amp;quot;, &amp;quot;lucida sans typewriter&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;nimbus mono l&amp;quot;, monaco, &amp;quot;courier new&amp;quot;, courier, monospace; font-size: large; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;[]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; args&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; p &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;Alice&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666; outline: none;&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; p2 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;Alice&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666; outline: none;&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
 &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;p &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; p2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;What do you think our little program will print when we run it? If your answer is false, then you’ve got it right. But why is that the case?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It has to do with references. When we initialize the p variable, we create a new instance of the Person class, which will live somewhere in the memory. The content of p is a reference (an “address”) to the location where the object resides.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;When we utilize the p2 variable, we create another instance of Person. However, this instance will live at a different location in memory, and it’s this location that gets assigned to the variable. When using the == operator to compare the variables, we’re actually comparing the references they store, which are obviously different, so we get false as a result.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;When using the operator to compare object types, the arguments must be compatible. That means that you can compare arguments of the same type, but also of types that have a child/parent relationship. If the arguments aren’t of the same type neither extend from one another, and you’ll get a compiler error. An example would show this more clearly. Consider the excerpt of code below:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;wp-block-preformatted prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 4px; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #555555; line-height: 1.7; margin-bottom: 1.313em; margin-top: 0px; outline: none; overflow-wrap: break-word; padding: 0.786em 1.071em; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Student&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;extends&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;private&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;final&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; school&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Student&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; age&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; school&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;super&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; age&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;school &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; school&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; getSchool&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; school&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The example above features a new class, Student, that extends from the Person class shown in the first example. Now, take a look at the example below, that shows how we can compare instances of the two classes:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;wp-block-preformatted prettyprinted&quot; style=&quot;background-color: #f7f7f9; border-radius: 4px; border: 1px solid rgb(225, 225, 232); box-sizing: border-box; color: #555555; line-height: 1.7; margin-bottom: 1.313em; margin-top: 0px; outline: none; overflow-wrap: break-word; padding: 0.786em 1.071em; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;&lt;span style=&quot;font-family: consolas, andale mono wt, andale mono, lucida console, lucida sans typewriter, dejavu sans mono, bitstream vera sans mono, liberation mono, nimbus mono l, monaco, courier new, courier, monospace; font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; p &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;Alice&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666; outline: none;&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; p1 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;Alice&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666; outline: none;&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Student&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; s &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Student&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;Alice&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666; outline: none;&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;Hogwarts&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Student&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; s1 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Student&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;Alice&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;box-sizing: border-box; color: #006666; outline: none;&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;Hogwarts&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;Person&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; p2 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; s&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;p &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; p1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// prints &#39;false&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;p2 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; s&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// prints &#39;true&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;s &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; s1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// prints &#39;false&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;p &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; s1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// prints &#39;false&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;box-sizing: border-box; color: #660066; outline: none;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;box-sizing: border-box; color: #000088; outline: none;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt;p &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #008800; outline: none;&quot;&gt;&quot;test&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;box-sizing: border-box; color: #666600; outline: none;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;box-sizing: border-box; color: black; outline: none; padding-left: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;box-sizing: border-box; color: #880000; outline: none;&quot;&gt;// compiler error&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The first comparison returns false. Both arguments have the same type (Person). They point to objects which have the exact same values for their fields. But even though their values are equal, they’re not the same objects. They don’t share the same place in memory, and that’s what the operator is comparing.&lt;br /&gt;&lt;br /&gt;The second comparison results in true. Here we’re comparing two variables that are of different, but compatible types, since Person is the parent of Student. The comparison returns true because both variables point to the same object.&lt;br /&gt;&lt;br /&gt;The third comparison checks two variables of type Student. The variables point to objects that have the exact same values. Yet, the comparison returns false, since the objects don’t share the same reference.&lt;br /&gt;&lt;br /&gt;Following next, we have a comparison between an instance of Person and an instance of Student. The types are compatible, but the result is false since the objects the variables point to aren’t the same.&lt;br /&gt;&lt;br /&gt;Finally, we have a comparison between an instance of Person and a string. Since these types aren’t compatible, we get a compiler error.&lt;/span&gt;&lt;div style=&quot;font-size: xx-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: xx-large;&quot;&gt;&lt;b&gt;3.compareTo method&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The compareTo() method lexicographically compares our String with another. The actual comparison of the two strings is based on the Unicode value of each character in the string. The method returns either a positive number, a negative number, or 0.&lt;br /&gt;&lt;br /&gt;If all characters in our string were all lower case (or all uppercase) letters, the return value of the compareTo() method can be interpreted as &quot;if the return value was negative, my string would come before the other string in a dictionary&quot;.&lt;br /&gt;&lt;br /&gt;I emphasize the point that the letters would need to be in the same case, since the function might produce unexpected output otherwise.&lt;br /&gt;&lt;br /&gt;The compareTo() method doesn&#39;t go through all the characters in our strings, it returns as soon as it reaches the end of any of the strings, or as soon as it finds a non-matching character. In which case the function returns (Unicode value of the mismatched character in our string) - (Unicode value of the mismatched character in the given string).&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;System.out.println(&quot;a&quot;.compareTo(&quot;a&quot;));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;System.out.println(&quot;a&quot;.compareTo(&quot;b&quot;));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;System.out.println(&quot;1&quot;.compareTo(&quot;12345678&quot;));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;System.out.println(&quot;2&quot;.compareTo(&quot;12345678&quot;));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;System.out.println(&quot;abcd&quot;.compareTo(&quot;abgggggggggg&quot;));&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Output :-&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;-1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;-7&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;-4&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;On the third line of the code above, in this case compareTo returns the difference in string lengths, since it didn&#39;t find a mismatched character before it &quot;ran out&quot; of characters in one string.&lt;br /&gt;&lt;br /&gt;And in the last line we see -4 is printed because of &#39;c&#39; - &#39;g&#39;, since that&#39;s the first mismatch it found, and it doesn&#39;t care about the rest.&lt;br /&gt;&lt;br /&gt;Note: The &quot;unexpected&quot; part when using compareTo() happens when we compare strings with different cases.&lt;br /&gt;&lt;br /&gt;System.out.println(&quot;ORANGE&quot;.compareTo(&quot;apple&quot;));&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We might expect the method to return a positive value, since &quot;apple&quot; should come before &quot;ORANGE&quot;. However, the Unicode value for &#39;O&#39; is less than the Unicode value for &#39;a&#39;.&lt;br /&gt;&lt;br /&gt;This might sometimes be preferred behavior, but in case it isn&#39;t - we use compareToIgnoreCase(). That method does essentially the same thing as compareTo(), it just pretends that everything is in the same case, and gives us a &quot;proper&quot; dictionary order.&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;compareTo() and compareToIgnoreCase() are often used when we make a Comparator for a custom class.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: xx-large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;String Concatenation in Java&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;In java, string concatenation forms a new string that is the combination of multiple strings. There are two ways to concat string in java:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;By + (string concatenation) operator&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;By concat() method&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: xx-large;&quot;&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 25px; line-height: 1.3em;&quot;&gt;1) String Concatenation by + (string concatenation) operator&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Java string concatenation operator (+) is used to add strings. For Example:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;TestStringConcatenation1{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;s=&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Sachin&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;&amp;nbsp;Tendulkar&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(s);&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Sachin&amp;nbsp;Tendulkar&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Output:Sachin Tendulkar&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The Java compiler transforms above code to this:&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border: none; margin: 0px; padding: 0px; white-space: normal;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;String&amp;nbsp;s=(&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;StringBuilder()).append(&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Sachin&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;).append(&quot;&amp;nbsp;Tendulkar).toString();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;pre&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 21px; line-height: 1.3em; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;h3 class=&quot;h3&quot; style=&quot;background-color: white; line-height: 1.3em; white-space: normal;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;2) String Concatenation by concat() method&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;pre&gt;&lt;p style=&quot;background-color: white; white-space: normal;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The String concat() method concatenates the specified string to the end of current string. Syntax:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; white-space: normal;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; white-space: normal; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;String&amp;nbsp;concat(String&amp;nbsp;another)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; white-space: normal;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Let&#39;s see the example of String concat() method.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; white-space: normal;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; white-space: normal; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/string-concatenation-in-java#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;TestStringConcatenation3{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;s1=&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Sachin&amp;nbsp;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;s2=&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;Tendulkar&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;s3=s1.concat(s2);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(s3);&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Sachin&amp;nbsp;Tendulkar&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; font-family: times; font-size: large; margin: 0px; padding: 0px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Sachin Tendulkar&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;Substring in Java&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;A part of string is called&amp;nbsp;substring. In other words, substring is a subset of another string. &lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;In case of substring startIndex is inclusive and endIndex is exclusive.&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;You can get substring from the given string object by one of the two methods:
public String substring(int startIndex): This method returns new String object&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;containing the substring of the given string from specified startIndex (inclusive).
public String substring(int startIndex, int endIndex): This method returns new String object &lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;containing the substring of the given string from specified startIndex to endIndex.

In case of string:
startIndex:&amp;nbsp;inclusive
endIndex:&amp;nbsp;exclusive&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; white-space: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Let&#39;s understand the startIndex and endIndex by the code given below.&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; white-space: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; white-space: normal; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/substring#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/substring#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/substring#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;String&amp;nbsp;s=&lt;/span&gt;&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;hello&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;System.out.println(s.substring(&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//he&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; font-family: verdana; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;In the above substring, 0 points to h but 2 points to e (because end index is exclusive).&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;h2 class=&quot;h2&quot; style=&quot;background-color: white; font-family: erdana, helvetica, arial, sans-serif; font-size: 25px; line-height: 1.3em; white-space: normal;&quot;&gt;Example of java substring&lt;/h2&gt;&lt;div class=&quot;codeblock&quot; style=&quot;background-color: rgba(220, 206, 206, 0.3); border-color: rgb(213, 221, 198) rgb(213, 221, 198) rgb(213, 221, 198) rgba(149, 156, 147, 0.67); border-image: initial; border-style: solid; border-width: 1px 1px 1px 4px; box-shadow: rgb(212, 212, 212) 6px 3px 8px; margin-bottom: 8px; padding-left: 0px; white-space: normal; width: 857.333px;&quot;&gt;&lt;div class=&quot;dp-highlighter&quot; style=&quot;margin: 8px 0px; overflow: scroll hidden; padding-top: 0px; width: 850px;&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;font-family: verdana; font-size: 13px; padding-left: 45px;&quot;&gt;&lt;div class=&quot;tools&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;a href=&quot;https://www.javatpoint.com/substring#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/substring#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.javatpoint.com/substring#&quot; style=&quot;background: 0px 0px; border: none; color: green; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;TestSubstring{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;keyword&quot; style=&quot;background-color: inherit; border: none; color: #006699; font-weight: 700; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;main(String&amp;nbsp;args[]){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String&amp;nbsp;s=&lt;span class=&quot;string&quot; style=&quot;background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;&quot;&gt;&quot;SachinTendulkar&quot;&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(s.substring(&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Tendulkar&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(s.substring(&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;number&quot; style=&quot;background-color: inherit; border: none; color: #c00000; margin: 0px; padding: 0px;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;comment&quot; style=&quot;background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;&quot;&gt;//Sachin&lt;/span&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;alt&quot; style=&quot;border: none; line-height: 21px; margin: 4px 0px 0px; padding: 0px 3px 0px 10px; width: 850px;&quot;&gt;&lt;span style=&quot;background-color: inherit; border: none; margin: 0px; padding: 0px;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: verdana; font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;pre&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Output&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Tendulkar
Sachin&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #3e3f3c; white-space: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-family: times; font-size: x-large; line-height: 19.9733px;&quot;&gt;If you like this article please subscribe my blogs to&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #3e3f3c; white-space: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-family: times; font-size: x-large; line-height: 19.9733px;&quot;&gt;encourage me to create more content like this.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: lora, serif; white-space: normal;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg&quot; target=&quot;_blank&quot;&gt;If you want to understand this in hindi Please click the play button.&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/_pVbkOTI1kk&quot; width=&quot;320&quot; youtube-src-id=&quot;_pVbkOTI1kk&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: lora, serif; font-size: 20px; white-space: normal;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;line-height: 17.12px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Thanks for Watching!!!!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Best Regards&lt;br /&gt;Learn with Reshu&lt;br /&gt;#learnwithreshu&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/2246734457975356395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/String-Comparison-Concatenation-and-Substring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/2246734457975356395'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/2246734457975356395'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/String-Comparison-Concatenation-and-Substring.html' title='String Comparison, Concatenation and Substring'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipRm5PugBvyspCrzkCjo03vg9fmjG64pYrkZTBELXubcrsgz00gNu2y0ickj_xoBUExGfNJW4LGnheMEuqAXmWO3NiHIV7E2cVroUKDFcRZ4bgAnuyy5_jcVY94G6b-xrUNTJInKIh3V4/s72-w640-h356-c/thumbnail.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-6027005504235711984</id><published>2020-10-29T01:24:00.002-07:00</published><updated>2020-10-29T01:24:13.566-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Difference between primitive and non-primitive data types"/><category scheme="http://www.blogger.com/atom/ns#" term="Primitive and Non Primitive Data types"/><title type='text'>Primitive and Non Primitive Data types ,Difference between primitive and non-primitive data types</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;b&gt;&lt;i&gt;Primitive and Non Primitive Data types&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8kiifbK7khxVYopgG7HDNY4wVNZUWGV-V64ONpkoi-DG0GWMhMEdvRaJYdkc2ppzYX6MFEULdOMiQD14S7a7_w_oKKWHmt6fYEtGHA6gR3HREg-bPGVwzi6ahmBoldENBWVzGqSLNjEM/s1600/3.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;874&quot; data-original-width=&quot;1600&quot; height=&quot;344&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8kiifbK7khxVYopgG7HDNY4wVNZUWGV-V64ONpkoi-DG0GWMhMEdvRaJYdkc2ppzYX6MFEULdOMiQD14S7a7_w_oKKWHmt6fYEtGHA6gR3HREg-bPGVwzi6ahmBoldENBWVzGqSLNjEM/s640/3.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; text-align: justify;&quot;&gt;A&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #4a4a4a; font-weight: bolder; text-align: justify;&quot;&gt;data type&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #4a4a4a; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #4a4a4a; text-align: justify;&quot;&gt;is an attribute of a&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; text-align: justify;&quot;&gt;variable&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #4a4a4a; text-align: justify;&quot;&gt;&amp;nbsp;which tells the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; text-align: justify;&quot;&gt;compiler&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #4a4a4a; text-align: justify;&quot;&gt;&amp;nbsp;or&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; text-align: justify;&quot;&gt;interpreter&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #4a4a4a; text-align: justify;&quot;&gt;&amp;nbsp;how the programmer intends to use the&amp;nbsp;variables. It&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #4a4a4a; text-align: justify;&quot;&gt;defines the operations that can be done on the data and what type of values can be stored. In this article, I will give you a brief insight into the different data&amp;nbsp;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;PrimitiveDataTypes&quot; style=&quot;background-color: transparent; box-sizing: border-box;&quot;&gt;&lt;/a&gt;types in&amp;nbsp;&lt;b&gt;java&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #4a4a4a; text-align: justify;&quot;&gt;According to the properties they possess, data types are divided into two groups&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; text-align: justify;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;color: #2b00fe; font-family: times; font-size: large;&quot;&gt;Primitive Data Types&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;color: #2b00fe; font-family: times; font-size: large;&quot;&gt;Non-Primitive Data Types&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: #6fa8dc; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;box-sizing: border-box; font-weight: bolder; text-align: justify;&quot;&gt;Primitive Data Types:&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: #4a4a4a; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;A primitive data type is pre-defined by the programming language. The size and type of variable values are specified, and it has no additional methods.&lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; line-height: 1.7; margin-bottom: 1rem; text-align: justify; word-break: break-word;&quot;&gt;&lt;span style=&quot;color: #2b00fe; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;Non-Primitive Data Types&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-family: Open Sans, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;These data types are not actually defined by the programming language but are created by the programmer. They are also called “reference variables” or “object references” since they reference a memory location which stores the data.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Now, let’s move further and get into the details of Primitive Data Types.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;h2 style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;color: #2b00fe; font-family: times; font-size: large;&quot;&gt;Primitive Data Types&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Data types in Java are classified into 4 aspects as int, float, character and boolean. But, in general, there are 8 data types. They are as follows:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul class=&quot;points&quot; style=&quot;box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;data type&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;boolean&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;data type&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;char&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;data type&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;short&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;&lt;/span&gt;data type&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;data type&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;long&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;&lt;/span&gt;data type&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;&lt;/span&gt;data type&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;data type&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0jAi0EGoi6j5K6H1h1BEu1HhwvwCY4TaQD8dQHfDtFzj2FpKucSoXdDb0i6VuWA6UtyeDNYRsIFlNuNwDmiH8hKjtau9aRap9X5pcoU3DHqF4o-we4qllN0DP2zD-b7aE2jYAI8Tcc7U/s1600/2.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;966&quot; data-original-width=&quot;1492&quot; height=&quot;414&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0jAi0EGoi6j5K6H1h1BEu1HhwvwCY4TaQD8dQHfDtFzj2FpKucSoXdDb0i6VuWA6UtyeDNYRsIFlNuNwDmiH8hKjtau9aRap9X5pcoU3DHqF4o-we4qllN0DP2zD-b7aE2jYAI8Tcc7U/s640/2.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: orange;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;You can refer to the below figure to understand the&amp;nbsp;different data types with respect to the memory allocated to them, and there defaults values&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCpdcUG3o9QcntvzxRF9UXxmKNuOoWfNFDGJ6XjzG1Kyyjxg-G1KDu8OOxjOhJZxvQB6MUYJWaWakTf1yiRweWkmL2TIASqnJBEG3nJiDhVcmlO4IJWVx37zD3nOQ00Il6ZGnxgjdAY4g/s1600/1.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;872&quot; data-original-width=&quot;1600&quot; height=&quot;344&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCpdcUG3o9QcntvzxRF9UXxmKNuOoWfNFDGJ6XjzG1Kyyjxg-G1KDu8OOxjOhJZxvQB6MUYJWaWakTf1yiRweWkmL2TIASqnJBEG3nJiDhVcmlO4IJWVx37zD3nOQ00Il6ZGnxgjdAY4g/s640/1.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large; font-weight: normal;&quot;&gt;That was all about the data type. I hope you understood it. Now let’s understand each of these data types in depth&amp;nbsp;i.e. byte data type.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;box-sizing: border-box; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;01. Byte data type&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;This is an example of a primitive data type. It is an 8-bit signed two’s complement integer. It stores whole numbers that lie between -128 to 127. A byte data type is helpful for saving memory in large amounts. Now let’s write a small program and understand how it works.&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;syntaxhighlighter java&quot; id=&quot;highlighter_108707&quot; style=&quot;background-color: white; box-sizing: border-box; font-size: 1em; margin: 1em 0px; overflow: auto hidden; position: relative; width: 745px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none; border-collapse: collapse; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 807px;&quot;&gt;&lt;tbody style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: #008dd9; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; background: none rgb(0, 141, 217); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: white; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: center; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
6&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
7&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
8&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
9&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: 771px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 1140px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;ByteDatatype {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;main(String[] args) {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;byte a&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;, b;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;a = &lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;127&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;b=&lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;177&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(a); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// prints 127&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(b); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// throws an error because it cannot store more than 127 bits&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Now let’s understand what is boolean data type.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;02. boolean data type&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;A boolean data type comprises of a bit of information and can store only true or false values. This data type is used to track true/false conditions. Now let’s write a small program and understand how it works.&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;syntaxhighlighter java&quot; id=&quot;highlighter_398703&quot; style=&quot;background-color: white; box-sizing: border-box; font-size: 1em; margin: 1em 0px; overflow: auto hidden; position: relative; width: 745px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none; border-collapse: collapse; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 745px;&quot;&gt;&lt;tbody style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: #008dd9; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; background: none rgb(0, 141, 217); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: white; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: center; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
6&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
7&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
8&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
9&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-size: 1em;&quot;&gt;10&lt;/span&gt;
&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: 700px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 1140px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-size: 1em;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;boolean{&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;main(String args[]){&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;boolean&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;language = &lt;/code&gt;&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;true&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;boolean&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;Number= &lt;/code&gt;&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;false&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(language);&amp;nbsp; &amp;nbsp;&lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// Output will be true&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(Number);&amp;nbsp; &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// Output will be false&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: #4a4a4a;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: #4a4a4a;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span&gt;&lt;b&gt;&lt;!--more--&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: #4a4a4a;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: #4a4a4a;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;That was all about the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;background-color: white; color: #4a4a4a;&quot;&gt;boolean&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: #4a4a4a;&quot;&gt;data type. Now let’s move further and comprehend the following data type i.e.&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: #4a4a4a;&quot;&gt;short&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;open sans&amp;quot; , sans-serif&quot; style=&quot;color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;03. short data type&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;box-sizing: border-box; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;A short data type is greater than byte in terms of size and less than a integer. It stores the value that ranges from -32,768 to 32767. The default size of this data type: 2 bytes. Let’s take an example and understand the short data type.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-collapse: collapse; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #4a4a4a; direction: ltr; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 745px;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: #008dd9; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; background: none rgb(0, 141, 217); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: white; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: center; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
3&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
5&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
6&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: 709px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 1140px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;Short {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;void&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;main(String[] args) {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;short&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;c= &lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;3435&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;,&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(c); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// prints the value present in n i.e. 3435&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;!--more--&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;Moving ahead, let’s move further and look at the next data type i.e. i char data type&lt;/b&gt;&lt;/span&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;04. char data type&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;This data type is used to store a single character. The character must be enclosed within single quotes, like ‘F’ or ‘f’. Alternatively, you can also use ASCII values to display certain characters. Let’s take a small example and see how it works.&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;syntaxhighlighter java&quot; id=&quot;highlighter_529636&quot; style=&quot;box-sizing: border-box; margin: 1em 0px; overflow: auto hidden; position: relative; width: 745px;&quot;&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-collapse: collapse; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 745px;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: #008dd9; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; background: none rgb(0, 141, 217); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: white; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: center; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
6&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
7&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
8&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: 709px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 1140px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-size: 1em;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;char&lt;/code&gt;&amp;nbsp; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;beta = &lt;/code&gt;&lt;code class=&quot;java string&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: blue; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;&#39;J&#39;&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;char&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;a = &lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;65&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;, b = &lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;66&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;, c = &lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;67&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(beta ); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// prints J&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(a); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// Displays 65&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(b); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// Displays 66&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(c); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// Displays 67&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;!--more--&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;That was all about the char data type. I hope you understood it. Now let’s move further and understand the next data type on the list i.e. long data type.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;05. long data type&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;This data type is a 64-bit two’s complement integer. By default, the size of a long data type is 64 bit and its value ranges from -263 to 263-1.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: times; font-size: medium;&quot;&gt;&lt;b&gt;For example:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;syntaxhighlighter java&quot; id=&quot;highlighter_377476&quot; style=&quot;background-color: white; box-sizing: border-box; font-size: 1em; margin: 1em 0px; overflow: auto hidden; position: relative; width: 745px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none; border-collapse: collapse; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 745px;&quot;&gt;&lt;tbody style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: #008dd9; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; background: none rgb(0, 141, 217); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: white; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: center; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: 709px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 1140px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-size: 1em;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;long&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;number = 15000000000L;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(number ); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// prints 15000000000&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;!--more--&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;That was all about the long data type. Now let’s move and see int data types.&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;06. int data type&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;This data type can store whole numbers from -2147483648 to 2147483647. Generally, int is the preferred data type when you create variables. with a numeric value.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: times; font-size: medium;&quot;&gt;&lt;b&gt;For example:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;syntaxhighlighter java&quot; id=&quot;highlighter_81775&quot; style=&quot;background-color: white; box-sizing: border-box; font-size: 1em; margin: 1em 0px; overflow: auto hidden; position: relative; width: 745px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none; border-collapse: collapse; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 745px;&quot;&gt;&lt;tbody style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: #008dd9; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; background: none rgb(0, 141, 217); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: white; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: center; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: 709px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 1140px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;int&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;number = &lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;5464564&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(number ); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// prints 5464564&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;!--more--&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Having understood this, now let’s see which is the next data type in the list.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;07. Floating Datatypes&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;You should use a floating point type whenever you need a number with a decimal, such as 8.88 or 3.14515.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;h3 style=&quot;box-sizing: border-box; color: #4a4a4a; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;01. float data type&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;This data type can store fractional numbers from 3.4e−038 to 3.4e+038. Note that you should end the value with an “f”. Let’s take a small example and understand this data type in a detailed manner.&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;syntaxhighlighter java&quot; id=&quot;highlighter_428167&quot; style=&quot;background-color: white; box-sizing: border-box; font-size: 1em; margin: 1em 0px; overflow: auto hidden; position: relative; width: 745px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none; border-collapse: collapse; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 745px;&quot;&gt;&lt;tbody style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: #008dd9; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; background: none rgb(0, 141, 217); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: white; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: center; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: 709px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 1140px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-size: 1em;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;float&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;num =&lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;67&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(num); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// prints the floating number value&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;!--more--&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;So this is how you can use the float data type. Now let’s see one more floating data type i.e. double&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;h3 style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;02. double data type&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The double data type can store fractional numbers from 1.7e−308 to 1.7e+308. Note that you should end the value with a “d”:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;syntaxhighlighter java&quot; id=&quot;highlighter_811940&quot; style=&quot;background-color: white; box-sizing: border-box; font-size: 1em; margin: 1em 0px; overflow: auto hidden; position: relative; width: 745px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background: none; border-collapse: collapse; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; table-layout: auto; top: auto; vertical-align: baseline; width: 745px;&quot;&gt;&lt;tbody style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: #008dd9; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; background: none rgb(0, 141, 217); border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: white; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: center; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #afafaf; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;
1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: initial; border-left-style: initial; border-radius: 0px; border-right-color: rgb(108, 226, 108); border-right-style: solid; border-top-color: initial; border-top-style: initial; border-width: 0px 3px 0px 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 0.5em 0px 1em; position: static; right: auto; text-align: right; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
2&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; text-align: left; top: auto; vertical-align: baseline; width: 709px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; max-width: 1140px; outline: 0px; overflow: visible; padding: 0px; position: relative; right: auto; top: auto; vertical-align: baseline; width: auto;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java keyword&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #006699; direction: ltr; display: inline; float: none; font-weight: bold; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;double&lt;/code&gt; &lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;num = &lt;/code&gt;&lt;code class=&quot;java value&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #009900; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;79&lt;/code&gt;&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;.678d;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;
&lt;code class=&quot;java plain&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: black; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;System.out.println(num); &lt;/code&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;// prints double value&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background: none white; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; direction: ltr; float: none; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px 1em; position: static; right: auto; top: auto; vertical-align: baseline; white-space: pre; width: auto;&quot;&gt;&lt;code class=&quot;java comments&quot; style=&quot;background: none; border-radius: 0px; border: 0px; bottom: auto; box-shadow: none; box-sizing: content-box; color: #008200; direction: ltr; display: inline; float: none; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 1em; height: auto; left: auto; line-height: 1.1em; margin: 0px; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; vertical-align: baseline; width: auto; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; text-align: justify; word-break: break-word;&quot;&gt;&lt;!--more--&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #ff00fe; font-family: times; font-size: large;&quot;&gt;That was all about Double data type and this brings us to the end of Primitive Datatypes. Now let’s figure out the difference between primitive and non-primitive data types.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #ffa400;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 style=&quot;box-sizing: border-box; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: large;&quot;&gt;Difference between primitive and non-primitive data types&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;span style=&quot;color: #ffa400; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;The&amp;nbsp; difference between&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;primitive&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;&lt;/span&gt;and&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;non-primitive&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;&lt;/span&gt;data types are as follows:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;box-sizing: border-box; color: #4a4a4a; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Primitive types are predefined in&amp;nbsp;&lt;b style=&quot;text-align: justify;&quot;&gt;java&lt;/b&gt;. Non-primitive types are created by the programmer and is not defined by Java.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Non Primitive types can be used to call methods to perform certain operations, while primitive types cannot.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;A primitive type always has a value, whereas non-primitive types can be&amp;nbsp;null.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;A primitive type starts with a lowercase letter, while non-primitive types start with an uppercase letter.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;The size of a primitive type depends on the data type, while non-primitive types have all the same size.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 1.7; margin-bottom: 1rem; text-align: justify; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;box-sizing: border-box; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Non-Primitive Datatypes&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Non-Primitive data types refer to objects and hence they are called reference types. Examples of non-primitive types include Strings, Arrays, Classes, Interface, etc. Below image depicts various non-primitive data types.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH8l8UIIcz6VzE0OVrniu15r3pb4A6A7VUv5nFan1jbL42TwaLhRie6z0Nzsu5XoK_yB7LX9L-IujxkJPrLxFb_z7fOxRWF51sKYAA8xBZ_ThUMQ3LZI79hxqey_KCRCmMX34D8p0RDKQ/s1600/4.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;485&quot; data-original-width=&quot;1085&quot; height=&quot;284&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH8l8UIIcz6VzE0OVrniu15r3pb4A6A7VUv5nFan1jbL42TwaLhRie6z0Nzsu5XoK_yB7LX9L-IujxkJPrLxFb_z7fOxRWF51sKYAA8xBZ_ThUMQ3LZI79hxqey_KCRCmMX34D8p0RDKQ/s640/4.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 1.7; margin-bottom: 1rem; text-align: justify; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 16px; line-height: 1.7; margin-bottom: 1rem; text-align: justify; word-break: break-word;&quot;&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Let’s now understand these non-primitive data types in short.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 style=&quot;box-sizing: border-box; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;color: #4a4a4a; font-size: large;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: times;&quot;&gt;&lt;b&gt;Strings:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Open Sans, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;String is a sequence of characters. But in Java, a string is an object that represents a sequence of characters. The java.lang.String class is used to create a string object.&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: times; font-weight: bolder;&quot;&gt;Arrays:&lt;/span&gt;&lt;span style=&quot;font-family: Open Sans, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Arrays in Java are homogeneous data structures implemented in Java as objects. Arrays store one or more values of a specific data type and provide indexed access to store the same. A specific element in an array is accessed by its index.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: times; font-weight: bolder;&quot;&gt;Classes:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;A class in Java is a blueprint which includes all your data. A class contains fields(variables) and methods to describe the behavior of an object.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: times;&quot;&gt;&lt;b&gt;Structure&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: times; font-size: large;&quot;&gt;Non-primitive not just store a value, but rather a collection of values in various formats&lt;/span&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.7; margin-bottom: 1rem; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;b&gt;So that was all about the non-primitive data types.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: #4a4a4a; line-height: 1.7; margin-bottom: 1rem; text-align: justify; word-break: break-word;&quot;&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;I Hope you understand different types of data types and there differences For Explanation in hindi please visit my Youtube channel&amp;nbsp;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;In This blog I will explain&amp;nbsp;about different types of Data types&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: times; font-size: x-large;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;Please&amp;nbsp;Keep watching and enjoy my video..&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/ihwL6kCvLDo/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/ihwL6kCvLDo?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Thanks for watching!!!!&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-family: times;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;h1&gt;Recommended Posts:&lt;/h1&gt;&lt;div&gt;&lt;h2 style=&quot;border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;ul&gt;&lt;li&gt;Errors V/s Exceptions In Java&lt;/li&gt;&lt;li&gt;Built-in Exceptions in Java with examples&lt;/li&gt;&lt;li&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/li&gt;&lt;li&gt;Overriding in Java&lt;/li&gt;&lt;li&gt;Overloading in Java&lt;/li&gt;&lt;li&gt;Interfaces in Java&lt;/li&gt;&lt;li&gt;Loops in Java&lt;/li&gt;&lt;li&gt;Variables in Java&lt;/li&gt;&lt;li&gt;Advanced Java Programming&lt;/li&gt;&lt;li&gt;Abstraction in Java&lt;/li&gt;&lt;li&gt;Encapsulation in java&lt;/li&gt;&lt;li&gt;Learn Complete OOPS Concepts in one Project&lt;/li&gt;&lt;li&gt;What is Java&lt;/li&gt;&lt;li&gt;Hello World Program in Java in Hindi&lt;/li&gt;&lt;li&gt;Install Java on Computer from beginning&lt;/li&gt;&lt;li&gt;Types of Inheritance and Constructors&lt;/li&gt;&lt;li&gt;How to use static keyword in Java&lt;/li&gt;&lt;li&gt;Complete Guide for if else Statement&lt;/li&gt;&lt;li&gt;Introduction of some maven commands&lt;/li&gt;&lt;li&gt;Hello World java program using Intellij&lt;/li&gt;&lt;li&gt;Enabling Remote Debug&lt;/li&gt;&lt;li&gt;How do I ENABLE DEBUG level logging?&lt;/li&gt;&lt;li&gt;Updating version numbers of modules in a multi-module Maven project&lt;/li&gt;&lt;li&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/li&gt;&lt;li&gt;Java Program for Add Two Dates with time&lt;/li&gt;&lt;/ul&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/6027005504235711984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Primitive-and-Non-Primitive-Data-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/6027005504235711984'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/6027005504235711984'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Primitive-and-Non-Primitive-Data-types.html' title='Primitive and Non Primitive Data types ,Difference between primitive and non-primitive data types'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8kiifbK7khxVYopgG7HDNY4wVNZUWGV-V64ONpkoi-DG0GWMhMEdvRaJYdkc2ppzYX6MFEULdOMiQD14S7a7_w_oKKWHmt6fYEtGHA6gR3HREg-bPGVwzi6ahmBoldENBWVzGqSLNjEM/s72-c/3.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-3787715225986019501</id><published>2020-10-29T00:56:00.002-07:00</published><updated>2020-10-29T00:56:20.018-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="different types of Constructors"/><category scheme="http://www.blogger.com/atom/ns#" term="Types of Inheritance"/><category scheme="http://www.blogger.com/atom/ns#" term="what is Inheritance"/><title type='text'>Types of Inheritance, what is Inheritance, different types of Constructors</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;i&gt;&lt;u&gt;Types of Inheritance and Constructors&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h3 style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;In this video I have explain full detail of Inheritance and constructor&lt;br /&gt;&lt;br /&gt;Please watch the video and Learn something new!!!!!&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/7Rh5Gozk8R8/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/7Rh5Gozk8R8?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;Thanks for watching!!!&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;&lt;div&gt;&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #838383;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #838383;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span&gt;Overriding in Java&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span&gt;Overloading in Java&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span&gt;Interfaces in Java&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span&gt;Loops in Java&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;font-family: roboto, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span&gt;Variables in Java&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: roboto, sans-serif;&quot;&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/h2&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; face=&quot;roboto, sans-serif&quot; style=&quot;text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;span&gt;Abstraction in Java&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span&gt;Encapsulation in java&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span&gt;What is Java&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;span&gt;Introduction of some maven commands&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span&gt;Enabling Remote Debug&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt;&quot;&gt;Java Program for Add Two Dates with time&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/h2&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/3787715225986019501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Types-of-Inheritance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/3787715225986019501'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/3787715225986019501'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Types-of-Inheritance.html' title='Types of Inheritance, what is Inheritance, different types of Constructors'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/7Rh5Gozk8R8/default.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-2086055550972843550</id><published>2020-10-29T00:51:00.004-07:00</published><updated>2020-10-29T00:51:59.171-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Complete Guide for if  else Statement."/><title type='text'>Complete Guide for if  else Statement.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;i&gt;Complete Guide for if&amp;nbsp; else Statement.&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_RWNaNBJXiK4j0k7lQsG8uMY28kTBkdxSxxz3uNjUra5HN5LFB32nDD08vu3JXXaFis8fVnN1YCDoFehU2wBsIhu3BbVDDF59kRxrbJLhlBezN-oOyyEBjiIkzULyKD3yQwFN6IxL0DM/s1600/2.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;856&quot; data-original-width=&quot;1600&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_RWNaNBJXiK4j0k7lQsG8uMY28kTBkdxSxxz3uNjUra5HN5LFB32nDD08vu3JXXaFis8fVnN1YCDoFehU2wBsIhu3BbVDDF59kRxrbJLhlBezN-oOyyEBjiIkzULyKD3yQwFN6IxL0DM/s640/2.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Java has the following conditional statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Use&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 10pt;&quot;&gt;if&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&amp;nbsp;to specify a block of code to be executed, if a specified condition is true&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Use&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 10pt;&quot;&gt;else&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&amp;nbsp;to specify a block of code to be executed, if the same condition is false&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Use&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 10pt;&quot;&gt;else if&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&amp;nbsp;to specify a new condition to test, if the first condition is false&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Use&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 10pt;&quot;&gt;switch&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&amp;nbsp;to specify many alternative blocks of code to be executed&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;&lt;span style=&quot;font-size: 15.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Java supports the usual logical conditions from mathematics:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Less than:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt;&quot;&gt;a &amp;lt; b&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Less than or equal to:&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt;&quot;&gt;a &amp;lt;= b&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Greater than:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt;&quot;&gt;a &amp;gt; b&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Greater than or equal to:&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt;&quot;&gt;a &amp;gt;= b&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Equal to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt;&quot;&gt;a == b&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Not Equal to:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 12pt;&quot;&gt;a != b&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;You can use these conditions to perform different actions for different decisions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUmJDNiDzQSPL0K8FwLpkuxCGcU5BeqHKHhGGO9KcjnY48DsZgejgG9xUxPMiv8lIKRzNdAgAtxjZlh6dwPajK94Bc-QhYuM5Me2Q5P-ldUk8p8H5-RuQKS7PbVvbCAAeLY6BjVPodQk/s1600/if_else_statement.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;348&quot; data-original-width=&quot;596&quot; height=&quot;372&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUmJDNiDzQSPL0K8FwLpkuxCGcU5BeqHKHhGGO9KcjnY48DsZgejgG9xUxPMiv8lIKRzNdAgAtxjZlh6dwPajK94Bc-QhYuM5Me2Q5P-ldUk8p8H5-RuQKS7PbVvbCAAeLY6BjVPodQk/s640/if_else_statement.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 7.5pt; margin-left: 0cm; margin-right: 0cm; margin-top: 7.5pt; margin: 7.5pt 0cm; mso-outline-level: 2;&quot;&gt;&lt;span face=&quot;&amp;quot;segoe ui&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 24pt;&quot;&gt;The if Statement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: normal; margin-bottom: 14.4pt; margin-left: 0cm; margin-right: 0cm; margin-top: 14.4pt; margin: 14.4pt 0cm;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;Use the&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 10pt;&quot;&gt;if&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;&amp;nbsp;statement to specify a block of Java code to be executed if a condition is&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241, 241, 241); color: crimson; font-family: &amp;quot;consolas&amp;quot;; font-size: 10pt;&quot;&gt;true&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 11.5pt;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;Syntax&lt;/h3&gt;&lt;pre class=&quot;w3-white language-java&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot;language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;condition&lt;/em&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;// block of code to be executed if the condition is true&lt;/em&gt;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: #ffffcc; font-size: 15px;&quot;&gt;Note that&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;if&lt;/code&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: #ffffcc; font-size: 15px;&quot;&gt;&amp;nbsp;is in lowercase letters. Uppercase letters (If or IF) will generate an error.&lt;/span&gt;&lt;br /&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: #ffffcc; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: #ffffcc; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;In the example below, we test two values to find out if 21 is greater than 19. If the condition is&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;true&lt;/code&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;, print some text:&lt;/span&gt;&lt;br /&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;Example&lt;/h3&gt;&lt;pre class=&quot;w3-white language-java&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot;language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot; style=&quot;box-sizing: inherit; color: #990055;&quot;&gt;21 &lt;/span&gt;&lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token number&quot; style=&quot;box-sizing: inherit; color: #990055;&quot;&gt;19&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;21 is greater than 19&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;As Same way w&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;e can also test variables:&lt;/span&gt;&lt;br /&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;w3-example&quot; style=&quot;background-color: #f1f1f1; box-shadow: none; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin: 24px -20px; padding: 8px 20px;&quot;&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;Example&lt;/h3&gt;&lt;pre class=&quot;w3-white language-java&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;code class=&quot;language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-int&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;int&lt;/span&gt; x &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot; style=&quot;box-sizing: inherit; color: #990055;&quot;&gt;22&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword keyword-int&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;int&lt;/span&gt; y &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #990055;&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;x &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;&amp;gt;&lt;/span&gt; y&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;x is greater than y&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;h4 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 20px; font-weight: 400; margin: 10px 0px;&quot;&gt;Example explained&lt;/h4&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;In the example above we use two variables,&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;box-sizing: inherit; font-size: 15px; font-weight: bolder;&quot;&gt;x&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;and&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;box-sizing: inherit; font-size: 15px; font-weight: bolder;&quot;&gt;y&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;, to test whether x is greater than y (using the&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;&amp;gt;&lt;/code&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;operator). As x is 22, and y is 20, and we know that 22 is greater than 20, we print to the screen that &quot;x is greater than y&quot;.&lt;/span&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;No turn comes for&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 32px; font-weight: 400; margin: 10px 0px;&quot;&gt;The else Statement&lt;/h2&gt;&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 32px; font-weight: 400; margin: 10px 0px;&quot;&gt;We use&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;else&lt;/code&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 15px;&quot;&gt;statement to specify a block of code to be executed if the condition in if&amp;nbsp; is&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;false&lt;/code&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;font-size: 15px;&quot;&gt;.&lt;/span&gt;&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 32px; font-weight: 400; margin: 10px 0px;&quot;&gt;&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;Syntax&lt;/h3&gt;&lt;pre class=&quot;w3-white language-java&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot;language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;condition&lt;/em&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;// block of code to be executed if the condition is true&lt;/em&gt;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword keyword-else&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;// block of code to be executed if the condition is false&lt;/em&gt;&lt;/span&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 32px; font-weight: 400; margin: 10px 0px;&quot;&gt;}&lt;/h2&gt;&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 32px; font-weight: 400; margin: 10px 0px;&quot;&gt;&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;Example&lt;/h3&gt;&lt;pre class=&quot;w3-white language-java&quot; data-line=&quot;4&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot;language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-int&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;int&lt;/span&gt; number &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #990055;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(number&lt;/span&gt; &lt;span style=&quot;color: #9a6e3a;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;token number&quot; style=&quot;box-sizing: inherit; color: #990055;&quot;&gt;18&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;Hello.&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword keyword-else&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;Bye.&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 32px; font-weight: 400; margin: 10px 0px;&quot;&gt;// Outputs &quot;Bye.&quot;&lt;b style=&quot;background-color: transparent;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;h4 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 20px; font-weight: 400; margin: 10px 0px;&quot;&gt;Example explained&lt;/h4&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;In the example above, number (10) is less than 18, so the condition is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: crimson; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;courier new&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: #f1f1f1; font-size: 15.75px;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 15px;&quot;&gt;. Because of this, we move on to the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;else&lt;/code&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;condition and print to the screen &quot;Bye&quot;. If the number was greater than 18, the program would print &quot;Hello&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 32px; font-weight: 400; margin: 10px 0px;&quot;&gt;The else if Statement&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We u&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;se the&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;else if&lt;/code&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&amp;nbsp;statement to specify a new condition if the first condition defined in if is&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;false&lt;/code&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;Syntax&lt;/h3&gt;&lt;pre class=&quot;w3-white language-java&quot; data-keep-tags=&quot;em&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot;language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;condition1&lt;/em&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;// block of code to be executed if condition1 is true&lt;/em&gt;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword keyword-else&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;condition2&lt;/em&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;// block of code to be executed if the condition1 is false and condition2 is true&lt;/em&gt;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword keyword-else&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;// block of code to be executed if the condition1 is false and condition2 is false&lt;/em&gt;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;Example&lt;/h3&gt;&lt;pre class=&quot;w3-white language-java&quot; data-line=&quot;4&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot;language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-int&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;int&lt;/span&gt; number &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token number&quot; style=&quot;box-sizing: inherit; color: #990055;&quot;&gt;22&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(number&lt;/span&gt; &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;token number&quot; style=&quot;box-sizing: inherit; color: #990055;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;Good morning.&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword keyword-else&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token keyword keyword-if&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(number&lt;/span&gt; &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;token number&quot; style=&quot;box-sizing: inherit; color: #990055;&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;Good day.&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword keyword-else&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;Good evening.&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;// Outputs &quot;Good evening.&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 20px; font-weight: 400; margin: 10px 0px;&quot;&gt;Example explained&lt;/h4&gt;&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;In the example above, number (22) is greater than 10, so the&amp;nbsp;&lt;span style=&quot;box-sizing: inherit; font-weight: bolder;&quot;&gt;first condition&lt;/span&gt;&amp;nbsp;is&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;false&lt;/code&gt;. The next condition, in the&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;else if&lt;/code&gt;&amp;nbsp;statement, is also&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;false&lt;/code&gt;, so we move on to the&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;else&lt;/code&gt;&amp;nbsp;condition since&amp;nbsp;&lt;span style=&quot;box-sizing: inherit; font-weight: bolder;&quot;&gt;condition1&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;box-sizing: inherit; font-weight: bolder;&quot;&gt;condition2&lt;/span&gt;&amp;nbsp;is both&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;false&lt;/code&gt;&amp;nbsp;- and print to the screen &quot;Good evening&quot;.&lt;/div&gt;&lt;span face=&quot;&amp;quot;verdana&amp;quot; , sans-serif&quot; style=&quot;background-color: white; font-size: 15px;&quot;&gt;However, if the number was 14, our program would print &quot;Good day.&quot;&lt;/span&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;800&quot; data-original-width=&quot;1000&quot; height=&quot;512&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyMsp6cQfUjU3G-9kldyfGIjrzvmQmhAUxKJ4trSa7Idiw1Hfhb2nFMO3ewDscom8t64ZuFq1tBvIDuVCwplo_tEWkKZPuAoTS0knBUshX_sBgkivaKxsLjeB_H0ysYFDS3ONdGTTkod8/s640/1.png&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLf7Ohl58PlCq3wQQs2EyvmIOPBRxP4diW&quot; target=&quot;_blank&quot;&gt;Nested If Else statement&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;a href=&quot;https://youtu.be/36RG9eKF1Qg&quot; target=&quot;_blank&quot;&gt;Please click on play and learn if else statement&amp;nbsp;&lt;/a&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLf7Ohl58PlCq3wQQs2EyvmIOPBRxP4diW&quot; target=&quot;_blank&quot;&gt;for free with good code example..&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/36RG9eKF1Qg/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/36RG9eKF1Qg?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;&lt;div&gt;&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/h2&gt;&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; face=&quot;roboto, sans-serif&quot; style=&quot;color: #838383; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;How to use static keyword in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span face=&quot;&amp;quot;arial&amp;quot; , sans-serif&quot; style=&quot;color: red; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/h2&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/2086055550972843550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Complete-Guide-for-if -else-Statement..html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/2086055550972843550'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/2086055550972843550'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/10/Complete-Guide-for-if -else-Statement..html' title='Complete Guide for if  else Statement.'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_RWNaNBJXiK4j0k7lQsG8uMY28kTBkdxSxxz3uNjUra5HN5LFB32nDD08vu3JXXaFis8fVnN1YCDoFehU2wBsIhu3BbVDDF59kRxrbJLhlBezN-oOyyEBjiIkzULyKD3yQwFN6IxL0DM/s72-c/2.JPG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Sweden</georss:featurename><georss:point>60.128161000000013 18.643501</georss:point><georss:box>31.817927163821167 -16.512749 88.438394836178858 53.799751</georss:box></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-1025714214926911273</id><published>2020-09-17T02:18:00.006-07:00</published><updated>2020-09-17T02:20:41.625-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Introduction of String"/><title type='text'>Introduction of String</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Introduction of String&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_JVUkC6BQOzCPGyyalk3hGrccozVzx8VDTCJlKfnZ4HwxBTFaBpxFTiw7tCsFibBSLRdxH_FCvBsNwPGsvAEOwly7g5qfg8mNsB4vu6FHo42jCS93Ffk6XTRhTgyHvGzMa6iMwy0FhU8/s1691/Introduction_to_String.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;942&quot; data-original-width=&quot;1691&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_JVUkC6BQOzCPGyyalk3hGrccozVzx8VDTCJlKfnZ4HwxBTFaBpxFTiw7tCsFibBSLRdxH_FCvBsNwPGsvAEOwly7g5qfg8mNsB4vu6FHo42jCS93Ffk6XTRhTgyHvGzMa6iMwy0FhU8/s320/Introduction_to_String.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;In Java, string is basically an object that represents sequence of char values. An array of characters works same as Java string.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;For example:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;char[] ch={’l&#39;,’e&#39;,’a&#39;,’r&#39;,’w&#39;,’i&#39;,’t&#39;,’h&#39;,’r&#39;,’e’,’s’,’h’,’u’};&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;String s=new String(ch);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;is same as:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;String s=”learnwithreshu&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: xx-large;&quot;&gt;The java.lang.String class implements Serializable, Comparable and CharSequence interfaces.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggUPP1k8VuL8Pz3NqrtSw1rRTRTuExOHCZ8aZ-ctClFqcOkG-mJSGZLAG5MWk_PZIB8EMLKiQ-T9PqmAr7M-LbCq0NLvSaljl092RAM3talqUgdba0tLo-jBTSGiPkQ8zvB80LXjidrDg/s669/1.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;370&quot; data-original-width=&quot;669&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggUPP1k8VuL8Pz3NqrtSw1rRTRTuExOHCZ8aZ-ctClFqcOkG-mJSGZLAG5MWk_PZIB8EMLKiQ-T9PqmAr7M-LbCq0NLvSaljl092RAM3talqUgdba0tLo-jBTSGiPkQ8zvB80LXjidrDg/w640-h354/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: xx-large;&quot;&gt;&lt;b&gt;What is String in java?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Generally, String is a sequence of characters. But in Java, string is an object that represents a sequence of characters. The java.lang.String class is used to create a string object. then Question arises that&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;How to create a string object?&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;There are two ways to create String object:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;By string literal&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;By new keyword&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;String Literal&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Java String literal is created by using double quotes.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;For Example:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;String s=”Reshu&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Each time you create a string literal, the JVM checks the &quot;string constant pool&quot; first. If the string already exists in the pool, a reference to the pooled instance is returned. If the string doesn&#39;t exist in the pool, a new string instance is created and placed in the pool. For example:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;String s1=“Welcome&quot;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; String s2=“Welcome&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; s2 doesn&#39;t create a new instance&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjczhb9oQC45Ah7QALQO_kVZbBjlYYeEoF-ymkavpOBKxZK32plIDb1nqtnYlUuj-mtMrrFixXepLkF0zirZSM2yPXClGmm0rqUXxyu5ASiDXmqpY62WSey4bTk9qfrkkOxI-lZaCqrKMw/s818/2.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;621&quot; data-original-width=&quot;818&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjczhb9oQC45Ah7QALQO_kVZbBjlYYeEoF-ymkavpOBKxZK32plIDb1nqtnYlUuj-mtMrrFixXepLkF0zirZSM2yPXClGmm0rqUXxyu5ASiDXmqpY62WSey4bTk9qfrkkOxI-lZaCqrKMw/s320/2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;String objects are stored in a special&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;memory area known as the&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;string constant pool&quot;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;By new keyword&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;In such case, JVM will create a new string object in normal (non-pool) heap memory, and the literal &quot;Welcome&quot; will be placed in the string constant pool. The variable s will refer to the object in a heap (non-pool).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;String s=new String(&quot;Welcome&quot;); //creates two objects and one reference variable&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 19.9733px; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;If you like this article please subscribe my blogs to encourage me to create more content like this.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;a href=&quot;https://youtu.be/uR8JiLrHgLk&quot; target=&quot;_blank&quot;&gt;If you want to understand this in hindi Please click the play button.&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/uR8JiLrHgLk&quot; width=&quot;320&quot; youtube-src-id=&quot;uR8JiLrHgLk&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;line-height: 17.12px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Thanks for Watching!!!!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 19.9733px; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Best Regards&lt;br /&gt;Learn with Reshu&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;#learnwithreshu&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: xx-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/1025714214926911273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/09/Introduction-of-String.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/1025714214926911273'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/1025714214926911273'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/09/Introduction-of-String.html' title='Introduction of String'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_JVUkC6BQOzCPGyyalk3hGrccozVzx8VDTCJlKfnZ4HwxBTFaBpxFTiw7tCsFibBSLRdxH_FCvBsNwPGsvAEOwly7g5qfg8mNsB4vu6FHo42jCS93Ffk6XTRhTgyHvGzMa6iMwy0FhU8/s72-c/Introduction_to_String.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-7028174710534556266</id><published>2020-09-17T01:30:00.004-07:00</published><updated>2020-11-05T23:48:41.921-08:00</updated><title type='text'>Java IO Tutorial</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 24pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Java IO
Tutorial&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US;&quot;&gt;Hi Friends In, this tutorial i will going to explain
about Java I/O. Basically Java I/O (Input and Output) is used to process the
input and produce the output. Java uses the concept of a stream to make I/O
operation fast. The java.io package contains all the classes required for input
and output operations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUU3LkGFalx4cFu6NRYga4PF2tFBsAGRvyfObl5ZzJrMBHwFdUcL_QumM9bqBXygdJ3ikrk6q18sPWrVNo3eCyfBoB-zHz509_2M-8c1ZOipJQDNnfc2ewJZ-yHOG90dLDWEyT0f6uskI/s1204/1.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;402&quot; data-original-width=&quot;1204&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUU3LkGFalx4cFu6NRYga4PF2tFBsAGRvyfObl5ZzJrMBHwFdUcL_QumM9bqBXygdJ3ikrk6q18sPWrVNo3eCyfBoB-zHz509_2M-8c1ZOipJQDNnfc2ewJZ-yHOG90dLDWEyT0f6uskI/w640-h214/1.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 18pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 18pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Java IO
Overview&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;A good place
to start learning about Java IO is the Java IO Overview tutorial. That tutorial
gives you a quick overview of the central concepts in the Java IO API, and an
overview of all the central classes in the Java IO API.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Java IO is
an API that comes with Java which is targeted at reading and writing data
(input and output). Most applications need to process some input and produce
some output based on that input. For instance, read data from a file or over
network, and write to a file or write a response back over the network.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;The Java IO
API is in the Java IO package (java.io). If you look at the Java IO classes in
the java.io package the vast amount of choices can be rather confusing. What is
the purpose of all these classes? Which one should you choose for a given task?
How do you create your own classes to plugin? etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;The purpose
of this tutorial is to try to give you an overview of how all information related
to Java I/O and the classes which are grouped in this package, and the purpose
behind them, so you don&#39;t have to wonder whether you chose the right class, or
whether a class already exists for your purpose.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/raNdtjBuPuE&quot; width=&quot;320&quot; youtube-src-id=&quot;raNdtjBuPuE&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;The java.io
package contains nearly every class you might ever need to perform input and
output (I/O) in Java. All these streams represent an input source and an output
destination. The stream in the java.io package supports many data such as
primitives, object, localized characters, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 18pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Java IO
Class Overview Table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;background: white; color: black; font-size: 13.5pt; line-height: 107%; mso-ansi-language: EN-US;&quot;&gt;Here is a table listing most (if not all) Java IO classes divided by
input, output, being byte based or character based, and any more specific
purpose they may be addressing, like buffering, parsing etc.&lt;/span&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 18pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrEqFIbUc7IxASCEpYk3lJbE3G3qUVnZI3CSTIrMPe7Ypc5FJXQSFVQAIsYOmMCP93gY4T3hOP2zTUqgZG1kAFSqvXQxj9wURdjWLys_chdfmQfLoHpKTZl_csLPEBraUdQUzIiglKW-Y/s838/Java_io.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;487&quot; data-original-width=&quot;838&quot; height=&quot;373&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrEqFIbUc7IxASCEpYk3lJbE3G3qUVnZI3CSTIrMPe7Ypc5FJXQSFVQAIsYOmMCP93gY4T3hOP2zTUqgZG1kAFSqvXQxj9wURdjWLys_chdfmQfLoHpKTZl_csLPEBraUdQUzIiglKW-Y/w640-h373/Java_io.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Stream&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;A stream can
be defined as a sequence of data.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;There are two kinds of Streams −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;InPutStream&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt; − The InputStream is used to read data
from a source.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK6ETzAABOdKSQPrlo42oepYXaAarGSqEHCMFcesqVSKu5sz94pv9yV_mBRtZPHdeoxaoTFdrmdMRKOYnIRjQqNT5cIVUs0vZrmBjA6aSYOVzf9qmvd-3Ef8X0VOURixzcYStgUr3PvdU/s1287/3.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;522&quot; data-original-width=&quot;1287&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK6ETzAABOdKSQPrlo42oepYXaAarGSqEHCMFcesqVSKu5sz94pv9yV_mBRtZPHdeoxaoTFdrmdMRKOYnIRjQqNT5cIVUs0vZrmBjA6aSYOVzf9qmvd-3Ef8X0VOURixzcYStgUr3PvdU/w640-h261/3.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 106.35pt; text-indent: -106.35pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 106.35pt; text-indent: -106.35pt;&quot;&gt;&lt;b style=&quot;text-indent: -141.8px;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 19.9733px;&quot;&gt;OutPutStream&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span face=&quot;Arial, sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 19.9733px; text-indent: -141.8px;&quot;&gt;− The OutputStream is used for writing data to a destination.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 106.35pt; text-indent: -106.35pt;&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHolL9H4uvKbrKMwbwDdnPCyZyoHV-gkLi7KOxh0Bv55fRpDEALiZ1S-07588o5nmoYep9Bgf5-ZD4lRKgG5_9cB9thgEY-9TtH9ga-h10xTwXBhdJ94RKvzFctNJ5LnckSqNEvRkwhbs/s1288/2.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;514&quot; data-original-width=&quot;1288&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHolL9H4uvKbrKMwbwDdnPCyZyoHV-gkLi7KOxh0Bv55fRpDEALiZ1S-07588o5nmoYep9Bgf5-ZD4lRKgG5_9cB9thgEY-9TtH9ga-h10xTwXBhdJ94RKvzFctNJ5LnckSqNEvRkwhbs/w640-h256/2.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 106.35pt; text-indent: -106.35pt;&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 16pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Byte Streams&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Java byte
streams are used to perform input and output of 8-bit bytes. Though there are
many classes related to byte streams, but the most frequently used classes are,
FileInputStream and FileOutputStream. Following is an example which makes use
of these two classes to copy an input file into an output file −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: arial, verdana, tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prettyprint notranslate prettyprinted&quot; style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(136, 136, 136); color: rgba(0, 0, 0, 0.87); font-family: monospace, monospace; font-size: 15px; margin-top: -5px; overflow-x: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; java&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;io&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.*;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;CopyFileTo&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

   &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; args&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[])&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;throws&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;IOException&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;  
      &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileInputStream&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileOutputStream&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileInputStream&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;input.txt&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileOutputStream&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;output.txt&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; c&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;c &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;read&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;())&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;finally&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt;&quot;&gt;Now let&#39;s
have a file input.txt with the following content −&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;result notranslate&quot; style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(214, 214, 214); color: rgba(0, 0, 0, 0.87); font-family: monospace, monospace; font-size: 15px; overflow-x: auto; padding: 5px;&quot;&gt;This is test for copy file.&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;As a next
step, compile the above program and execute it, which will result in creating
output.txt file with the same content as we have in input.txt. So let&#39;s put the
above code in CopyFile.java file and do the following −&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;result notranslate&quot; style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(214, 214, 214); color: rgba(0, 0, 0, 0.87); font-family: monospace, monospace; font-size: 15px; overflow-x: auto; padding: 5px;&quot;&gt;$javac CopyFile.java
$java CopyFile&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 16pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Character Streams&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 16pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Java Byte
streams are used to perform input and output of 8-bit bytes, whereas Java
Character streams are used to perform input and output for 16-bit unicode.
Though there are many classes related to character streams, but the most
frequently used classes are, FileReader and FileWriter. Though internally
FileReader uses FileInputStream and FileWriter uses FileOutputStream but here
the major difference is that FileReader reads two bytes at a time and
FileWriter writes two bytes at a time.&lt;o:p&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 16pt;&quot;&gt;We can
re-write the above example, which makes the use of these two classes to copy an
input file (having unicode characters) into an output file −&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: arial, verdana, tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prettyprint notranslate prettyprinted&quot; style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(136, 136, 136); color: rgba(0, 0, 0, 0.87); font-family: monospace, monospace; font-size: 15px; margin-top: -5px; overflow-x: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; java&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;io&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.*;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;CopyFileTo&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

   &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; args&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[])&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;throws&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;IOException&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileReader&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileWriter&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

      &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileReader&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;input.txt&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileWriter&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;output.txt&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; c&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;c &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;read&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;())&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;finally&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
            &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Now let&#39;s
have a file input.txt with the following content -&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;result notranslate&quot; style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(214, 214, 214); color: rgba(0, 0, 0, 0.87); font-family: monospace, monospace; font-size: 15px; overflow-x: auto; padding: 5px;&quot;&gt;This is test for copy file.&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;As a next
step, compile the above program and execute it, which will result in creating
output.txt file with the same content as we have in input.txt. So let&#39;s put the
above code in CopyFile.java file and do the following −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;result notranslate&quot; style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(214, 214, 214); color: rgba(0, 0, 0, 0.87); font-family: monospace, monospace; font-size: 15px; overflow-x: auto; padding: 5px;&quot;&gt;$javac CopyFile.java
$java CopyFile&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;color: rgba(0, 0, 0, 0.87); font-family: arial, verdana, tahoma; font-size: 23px; line-height: 2rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;Reading and Writing File&lt;/h2&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;As described
earlier, a stream can be defined as a sequence of data. The InputStream is used
to read data from a source and the OutputStream is used for writing data to a
destination.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;The two
important streams are FileInputStream and FileOutputStream, which would be
discussed in this tutorial.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;b&gt;FileInputStream&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;This stream
is used for reading data from the files. Objects can be created using the
keyword new and there are several types of constructors available.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Following
constructor takes a file name as a string to create an input stream object to
read the file –&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;InputStream
f = new FileInputStream(&quot;C:/java/hello&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Following
constructor takes a file object to create an input stream object to read the
file. First we create a file object using File() method as follows File f = new
File(&quot;C:/java/hello&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;InputStream
f = new FileInputStream(f);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;




&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;






&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Once you
have InputStream object in hand, then there is a list of helper methods which
can be used to read to stream or to do other operations on the stream.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;There are
other important input streams available, for more detail you can refer to the
following links −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;b&gt;ByteArrayInputStream&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;



&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;b&gt;DataInputStream&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: SimSun; mso-fareast-language: ZH-CN; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-bidi;&quot;&gt;FileOutputStream&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;FileOutputStream
is used to create a file and write data into it. The stream would create a
file, if it doesn&#39;t already exist, before opening it for output.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt;&quot;&gt;Here are two
constructors which can be used to create a FileOutputStream object.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Following
constructor takes a file name as a string to create an input stream object to
write the file −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;OutputStream
f = new FileOutputStream(&quot;C:/java/hello&quot;) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Following
constructor takes a file object to create an output stream object to write the
file. First, we create a file object using File() method as follows −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;File f = new
File(&quot;C:/java/hello&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;OutputStream
f = new FileOutputStream(f);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;


&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;




&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;







&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%;&quot;&gt;Once
you have OutputStream object in hand, then there is a list of helper methods,
which can be used to write to stream or to do other operations on the stream.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: 14pt;&quot;&gt;There are
other important output streams available, for more detail you can refer to the
following links −&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;ByteArrayOutputStream&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;





&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;DataOutputStream&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;font-family: arial, verdana, tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-weight: 640;&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: arial, verdana, tahoma; font-size: 16px; margin: 0.5em 0.2em 0.6em; padding: 0px; text-align: justify;&quot;&gt;Following is the example to demonstrate InputStream and OutputStream −&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prettyprint notranslate prettyprinted&quot; style=&quot;background: rgb(238, 238, 238); border: 1px solid rgb(136, 136, 136); color: rgba(0, 0, 0, 0.87); font-family: monospace, monospace; font-size: 15px; margin-top: -5px; overflow-x: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; java&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;io&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.*;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; fileStream &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
   &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; args&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[])&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
   
      &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;byte&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; bWrite &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;21&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;40&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;};&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;OutputStream&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; os &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileOutputStream&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;test1.txt&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; x &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; x &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; bWrite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;length &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; x&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;++)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            os&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; bWrite&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;// writes the bytes&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         os&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
     
         &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;InputStream&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;FileInputStream&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;test2.txt&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; size &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;available&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-gm+f-2f-4s+i4&quot;
     data-ad-client=&quot;ca-pub-4450369071696954&quot;
     data-ad-slot=&quot;7597459850&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; i &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; i &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; size&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; i&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;++)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;char&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;read&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;  &quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;is&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;catch&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;IOException&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; e&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
         &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Exception&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;	
   &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;The above code would create file test.txt and
would write given numbers in binary format. Same would be the output on the
stdout screen.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;If you like this article please subscribe my blogs to encourage me to create more content like this.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;a href=&quot;https://youtu.be/raNdtjBuPuE&quot; target=&quot;_blank&quot;&gt;If you want to understand this in hindi Please click the play button.&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/sZW6ZLroAyk&quot; width=&quot;320&quot; youtube-src-id=&quot;sZW6ZLroAyk&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;line-height: 107%;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Thanks for Watching!!!!!!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Best Regards&lt;br /&gt;Learn with Reshu&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;#learnwithreshu&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span face=&quot;&amp;quot;Arial&amp;quot;,sans-serif&quot; lang=&quot;EN-US&quot; style=&quot;font-size: 14pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/7028174710534556266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/09/java-iotutorial-hi-friends-in-this.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7028174710534556266'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7028174710534556266'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/09/java-iotutorial-hi-friends-in-this.html' title='Java IO Tutorial'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUU3LkGFalx4cFu6NRYga4PF2tFBsAGRvyfObl5ZzJrMBHwFdUcL_QumM9bqBXygdJ3ikrk6q18sPWrVNo3eCyfBoB-zHz509_2M-8c1ZOipJQDNnfc2ewJZ-yHOG90dLDWEyT0f6uskI/s72-w640-h214-c/1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-6289016525028128376</id><published>2020-09-07T03:25:00.001-07:00</published><updated>2020-09-08T00:46:40.304-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Program for Add Two Dates with time"/><title type='text'>Java Program for Add Two Dates with time</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 28px; margin: 0px 0px 16px; padding: 0px; text-align: left;&quot;&gt;
&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;Java Program for Add Two Dates with time&lt;/i&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h4 style=&quot;background-color: #f9fafc; box-sizing: border-box; color: rgba(37, 38, 94, 0.7); font-family: euclid_circular_a, &amp;quot;Source Sans Pro&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 28px; margin: 0px 0px 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;background-color: #f9fafc; box-sizing: border-box; font-weight: 500; line-height: 28px; margin: 0px 0px 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;In this program, I am going to explain how to add two dates in Java using Calendar.&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;If you want understand this example, you should have the knowledge of the following&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline-color: initial; outline-width: initial; transition-duration: 0.2s; transition-property: color;&quot;&gt;Java programming&lt;/span&gt;&amp;nbsp;topics:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: #f9fafc; box-sizing: border-box; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px; padding: 0px 0px 0px 24px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; line-height: 30px; margin: 0px 0px 12px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;Java Basic Input and Output&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; line-height: 30px; margin: 0px 0px 12px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;Java Class and Objects&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: #f9fafc;&quot;&gt;Since, Java epoch is 1970, any time represented in a&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(211, 220, 230); box-sizing: border-box; display: inline-block; line-height: 20px; margin: 0px; padding: 0px 8px;&quot;&gt;Date&lt;/code&gt;&lt;span style=&quot;background-color: #f9fafc;&quot;&gt;&amp;nbsp;object will not work. This means, your Dates will start from 1970 and when two&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(211, 220, 230); box-sizing: border-box; display: inline-block; line-height: 20px; margin: 0px; padding: 0px 8px;&quot;&gt;Date&lt;/code&gt;&lt;span style=&quot;background-color: #f9fafc;&quot;&gt;&amp;nbsp;objects are added, the sum misses by about 1970 years. So, we use&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(211, 220, 230); box-sizing: border-box; display: inline-block; line-height: 20px; margin: 0px; padding: 0px 8px;&quot;&gt;Calendar&lt;/code&gt;&lt;span style=&quot;background-color: #f9fafc;&quot;&gt;&amp;nbsp;instead.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #f9fafc; color: rgba(37 , 38 , 94 , 0.7); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: #f9fafc; box-sizing: border-box; color: #25265e; font-family: euclid_circular_a, &amp;quot;Source Sans Pro&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 24px; line-height: 36px; margin: 0px 0px 12px; padding: 0px;&quot;&gt;
Example: Java program for add two dates&lt;/h2&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(211, 220, 230); box-sizing: border-box; color: #25265e; font-family: &amp;quot;Droid Sans Mono&amp;quot;, Inconsolata, Menlo, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, Courier, monospace; font-size: 14px; line-height: 20px; margin-bottom: 16px; overflow: auto; padding: 16px;&quot;&gt;&lt;code style=&quot;border-radius: 4px; border: none; box-sizing: border-box; display: inline-block; font-family: &amp;quot;Droid Sans Mono&amp;quot;, Inconsolata, Menlo, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, Courier, monospace; line-height: 20px; margin: 0px; padding: 0px;&quot;&gt;import java.util.Calendar;

public class AddDatesandtime {

    public static void main(String[] args) {

        Calendar c1 = Calendar.getInstance();
        Calendar c2 = Calendar.getInstance();
        Calendar cTotal = (Calendar) c1.clone();

        cTotal.add(Calendar.YEAR, c2.get(Calendar.YEAR));
        cTotal.add(Calendar.MONTH, c2.get(Calendar.MONTH) + 1); // Zero-based months
        cTotal.add(Calendar.DATE, c2.get(Calendar.DATE));
        cTotal.add(Calendar.HOUR_OF_DAY, c2.get(Calendar.HOUR_OF_DAY));
        cTotal.add(Calendar.MINUTE, c2.get(Calendar.MINUTE));
        cTotal.add(Calendar.SECOND, c2.get(Calendar.SECOND));
        cTotal.add(Calendar.MILLISECOND, c2.get(Calendar.MILLISECOND));

        System.out.format(&quot;%s + %s = %s&quot;, c1.getTime(), c2.getTime(), cTotal.getTime());

    }
}&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; color: rgba(37, 38, 94, 0.7); font-family: euclid_circular_a, &amp;quot;Source Sans Pro&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: bolder; margin: 0px; padding: 0px;&quot;&gt;Output&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Mon Sep 07 12:22:38 CEST 2020 + Mon Sep 07 12:22:38 CEST 2020 = Sat Jun 15 00:45:16 CEST 4041&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;In the above program,&amp;nbsp;&lt;var style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(211, 220, 230); box-sizing: border-box; display: inline-block; font-style: normal; line-height: 20px; margin: 0px; padding: 0px 8px;&quot;&gt;c1&lt;/var&gt;&amp;nbsp;and&amp;nbsp;&lt;var style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(211, 220, 230); box-sizing: border-box; display: inline-block; font-style: normal; line-height: 20px; margin: 0px; padding: 0px 8px;&quot;&gt;c2&lt;/var&gt;&amp;nbsp;stores the current date. Then, we simply clone&amp;nbsp;&lt;var style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(211, 220, 230); box-sizing: border-box; display: inline-block; font-style: normal; line-height: 20px; margin: 0px; padding: 0px 8px;&quot;&gt;c1&lt;/var&gt;&amp;nbsp;and add&amp;nbsp;&lt;var style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(211, 220, 230); box-sizing: border-box; display: inline-block; font-style: normal; line-height: 20px; margin: 0px; padding: 0px 8px;&quot;&gt;c2&lt;/var&gt;&#39;s each DateTime properties one after the other.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times&amp;quot; , &amp;quot;times new roman&amp;quot; , serif; font-size: large;&quot;&gt;As you can see, we&#39;ve added 1 to the months. This is because months start with 0 in Java.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; color: #838383; font-family: Roboto, sans-serif; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 3.75pt 0cm; vertical-align: baseline;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 18pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In
Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in
Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and
instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Variables in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_12.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Inheritance(IS-A) in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS
Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non
Primitive Data types (Difference between primitive and non-primitive data
types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in
Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer
from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword
in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else
Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program
using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG
level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers
of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10.0pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf()
in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;Java
Program for Add Two Dates with time&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;ul style=&quot;background-color: white; border: 0px; font-family: Roboto, sans-serif; line-height: 1.71429; list-style-image: initial; list-style-position: outside; margin: 0px 0px 24px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; line-height: 1.58; list-style: none; margin-bottom: 4px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #f9fafc; box-sizing: border-box; line-height: 30px; margin-bottom: 16px; padding: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-size: 18px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: rgba(37 , 38 , 94 , 0.701960784313725); font-family: &amp;quot;euclid_circular_a&amp;quot; , &amp;quot;source sans pro&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/6289016525028128376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/6289016525028128376'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/6289016525028128376'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html' title='Java Program for Add Two Dates with time'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-7285198754094924507</id><published>2020-08-31T12:43:00.002-07:00</published><updated>2020-09-08T00:50:34.608-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="advancejava"/><category scheme="http://www.blogger.com/atom/ns#" term="introduction to advance java"/><category scheme="http://www.blogger.com/atom/ns#" term="jdbc"/><category scheme="http://www.blogger.com/atom/ns#" term="jdbc drivers"/><category scheme="http://www.blogger.com/atom/ns#" term="jdbc odbc drivers"/><category scheme="http://www.blogger.com/atom/ns#" term="servlet"/><category scheme="http://www.blogger.com/atom/ns#" term="servlet lifecycle"/><title type='text'>Advanced Java Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt; &amp;nbsp;Advanced Java Programming&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDq1eMkJ6y9C4dMGpJgAH8cwXTfR_FI0ozn1X37e6TINoA9KnkHlu20wo8oAMKR9PzdFjoROX3Wg8fhoG6vZ3Ibb5zPqBPNJpitovRwcutGI18VzEPR8VobNrJn21RXaoVuDENkdqJM74/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;advanced java,
advanced java interview questions,
advanced java youtube,
advanced java in hindi,
advanced java online training,
what is advanced java topics,
advanced java interview questions for freshers,
advanced java programming syllabus,
advanced java j2ee interview questions,
introduction to advanced java,
introduction to advanced java programming,
advanced for java,
advanced java skills,
advanced java basic concepts,
is advanced java and j2ee same,
advanced java course online free,
advanced java web technologies,
advanced java development,
where to learn advanced java,
advanced java online training free,
advanced java introduction,
how to learn advanced java at home,
advanced java for beginners,
beginner to advanced java,
advanced java programming,
advanced java concepts youtube,
how much time it takes to learn advanced java,
what is core and advanced java,
advanced java 8 tutorial,
advanced java web development,
advanced java interview questions youtube,
how to run advanced java program in eclipse,
advanced java free course,
advanced java full tutorial,
advanced java and core java difference,
advanced java jsp tutorial,
advanced java web application,
java 7 advanced interview questions,
learn advanced java in 7 days,
software for advanced java,
advanced java definition,
advanced java and core,
what does advanced java consists of,
eclipse for advanced java,
java 6 advanced,
advanced java uses,
what does advanced java include,
advanced java vs core,
advanced java best tutorials,
advanced java programming handwritten notes,
advanced java jdbc program,
what are advanced java topics,
how to run advanced java program in netbeans,
java 9 advanced features,
advanced java coding,
java 8 advanced concepts,
advanced java mini projects,
advanced java language,
advanced java compiler,
why use advanced java,
advanced java and j2ee syllabus,
advanced java coding questions,
java 1.8 advanced interview questions,
what is jsp in advanced java,
java 8 advanced topics,
advanced java jdbc&quot; border=&quot;0&quot; data-original-height=&quot;855&quot; data-original-width=&quot;1600&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDq1eMkJ6y9C4dMGpJgAH8cwXTfR_FI0ozn1X37e6TINoA9KnkHlu20wo8oAMKR9PzdFjoROX3Wg8fhoG6vZ3Ibb5zPqBPNJpitovRwcutGI18VzEPR8VobNrJn21RXaoVuDENkdqJM74/s640/1.JPG&quot; title=&quot;advanced java,
advanced java interview questions,
advanced java youtube,
advanced java in hindi,
advanced java online training,
what is advanced java topics,
advanced java interview questions for freshers,
advanced java programming syllabus,
advanced java j2ee interview questions,
introduction to advanced java,
introduction to advanced java programming,
advanced for java,
advanced java skills,
advanced java basic concepts,
is advanced java and j2ee same,
advanced java course online free,
advanced java web technologies,
advanced java development,
where to learn advanced java,
advanced java online training free,
advanced java introduction,
how to learn advanced java at home,
advanced java for beginners,
beginner to advanced java,
advanced java programming,
advanced java concepts youtube,
how much time it takes to learn advanced java,
what is core and advanced java,
advanced java 8 tutorial,
advanced java web development,
advanced java interview questions youtube,
how to run advanced java program in eclipse,
advanced java free course,
advanced java full tutorial,
advanced java and core java difference,
advanced java jsp tutorial,
advanced java web application,
java 7 advanced interview questions,
learn advanced java in 7 days,
software for advanced java,
advanced java definition,
advanced java and core,
what does advanced java consists of,
eclipse for advanced java,
java 6 advanced,
advanced java uses,
what does advanced java include,
advanced java vs core,
advanced java best tutorials,
advanced java programming handwritten notes,
advanced java jdbc program,
what are advanced java topics,
how to run advanced java program in netbeans,
java 9 advanced features,
advanced java coding,
java 8 advanced concepts,
advanced java mini projects,
advanced java language,
advanced java compiler,
why use advanced java,
advanced java and j2ee syllabus,
advanced java coding questions,
java 1.8 advanced interview questions,
what is jsp in advanced java,
java 8 advanced topics,
advanced java jdbc&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&lt;i&gt;&lt;b&gt;Advanced Java Programming :-&lt;/b&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;Introduction to advance java&lt;/i&gt;&lt;i style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i style=&quot;font-weight: normal;&quot;&gt;As most of us already know that if we want to make normal applications it &amp;nbsp;can be easily built using core Java concepts. But, when it we need to develop web applications, advanced Java fundamentals, like JSP, Servlets, JDBC etc. needed, so to add capabilities and features of the application advance java is essential for developers. Through the motive of this blog is to explain about Advanced Java, I will be giving you a complete insight into the fundamental concepts of Advance Java.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAEUOxmABeIxd3ALVmYEDAXiWupiVOOUEDsPpqtc5LSuiVjni8ExqAcQ49_hnS_eiyOqoV3X34GCYR3mBxR1z4xl_55ETCfD48OfiMNF9PxPlKXQ-GDj3YedeBCJS1CWvefTMcuWePbEc/s1600/2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;854&quot; data-original-width=&quot;1600&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAEUOxmABeIxd3ALVmYEDAXiWupiVOOUEDsPpqtc5LSuiVjni8ExqAcQ49_hnS_eiyOqoV3X34GCYR3mBxR1z4xl_55ETCfD48OfiMNF9PxPlKXQ-GDj3YedeBCJS1CWvefTMcuWePbEc/s640/2.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 1.2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;If you want to see complete video on this please&amp;nbsp; have a look the video below.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt; &lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Learn with Resh&lt;/span&gt;&lt;/a&gt;u&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/pPa58coZxeo/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/pPa58coZxeo?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLf7Ohl58PlCpb5B-wQsiSHyet8Hi3cDo2&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; color: purple; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLf7Ohl58PlCpb5B-wQsiSHyet8Hi3cDo2&quot; target=&quot;_blank&quot;&gt;                 Advanced Java Programming Course&lt;/a&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH2TRW8-wkylKQPU2mJcVgva-T3g4DBt5UsmPasEfQBy_29zmbnQ08la8zJu6DEEi8mvqEfzZR-D79v2J9v7Q4uo-hn0quJHh2H1m2aXZmkFGZfbyHO0-rYi6kRhLWoTLkkOWKNAb0jXU/s1600/3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;concepts of Advance Java.&quot; border=&quot;0&quot; data-original-height=&quot;878&quot; data-original-width=&quot;1600&quot; height=&quot;350&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH2TRW8-wkylKQPU2mJcVgva-T3g4DBt5UsmPasEfQBy_29zmbnQ08la8zJu6DEEi8mvqEfzZR-D79v2J9v7Q4uo-hn0quJHh2H1m2aXZmkFGZfbyHO0-rYi6kRhLWoTLkkOWKNAb0jXU/s640/3.JPG&quot; title=&quot;concepts of Advance Java.&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 1.3&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;I hope you understood by the slide why Advanced Java is essential. For your better understanding, I have divided this article into two sections.&amp;nbsp;Each of these section deals with one of the most important concepts of advanced Java:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: normal; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;i&gt;&lt;span style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-style: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;JDBC &amp;nbsp;(Java DataBase Connectivity&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i style=&quot;color: #4a4a4a;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Java Servlets&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;!--[if !supportLists]--&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;So, now let’s begin our&amp;nbsp;discussion and understand the concept of Java Database Connectivity, a helpful tool to interact with the database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgZaWWQzbrJEgxv1ARQ8Ows2MDfS9HptHlVCtpzL9vvwVka4_ZoIJjHAAcDtbQt5DpMic1QANxVjj2444dBsiJEMyzxxd-eLb7KySe16yvqZ1OYTEWy9eSY7hB3Gh78MCQ5NhTLMoL_dM/s1600/4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;869&quot; data-original-width=&quot;1600&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgZaWWQzbrJEgxv1ARQ8Ows2MDfS9HptHlVCtpzL9vvwVka4_ZoIJjHAAcDtbQt5DpMic1QANxVjj2444dBsiJEMyzxxd-eLb7KySe16yvqZ1OYTEWy9eSY7hB3Gh78MCQ5NhTLMoL_dM/s640/4.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 1.4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-outline-level: 4; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;Common JDBC Components&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-outline-level: 4; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;The JDBC API provides the following interfaces and classes −&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: #4a4a4a; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;DriverManager&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&amp;nbsp;is used to manage a list of database drivers. The first      driver that recognizes a certain subprotocol under JDBC will be used to      establish a database Connection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: #4a4a4a; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;Driver&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&amp;nbsp;is an interface that&amp;nbsp;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;JDBCApplication&quot;&gt;&lt;/a&gt;handles      the communications with the database server. It also abstracts the details      associated with working with Driver objects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: #4a4a4a; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;Connection&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&amp;nbsp;is an&amp;nbsp;interface that consists all the methods required      to connect to a database. The connection object represents communication      context, i.e., all communication with the database is through connection      object only.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;h2 style=&quot;box-sizing: border-box; color: #4a4a4a; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.125rem; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&amp;nbsp; &amp;nbsp;JDBC Driver Types&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj92ywpbc3vckg0R7a34NJHE-vLVFoRYm-4yJIXEg1uGF4YsgCXj_GDB4SrI7lTUT-8UZ1-_GWjFAfl752GmdTQAyIxtmctRrFxzS0N3nSp2HyOJHy_T6JBKSge1WohTCIxshp-I5DS-uk/s1600/6.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;898&quot; data-original-width=&quot;1600&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj92ywpbc3vckg0R7a34NJHE-vLVFoRYm-4yJIXEg1uGF4YsgCXj_GDB4SrI7lTUT-8UZ1-_GWjFAfl752GmdTQAyIxtmctRrFxzS0N3nSp2HyOJHy_T6JBKSge1WohTCIxshp-I5DS-uk/s640/6.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 1.5&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtzug4drn4UTeKLvWtnbfbo1cudv00A3CG8eT3ztZjhRp1eq32_yqMxnD2d2gkvVeqaZ9lmWL0_KuLfsjxWHNQYjqVkwsfhm5X0YCpxVogYW2OAJTovb6ZjOm35M0-Q7Ru8xuBjJ2NKkQ/s1600/7.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;831&quot; data-original-width=&quot;1600&quot; height=&quot;332&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtzug4drn4UTeKLvWtnbfbo1cudv00A3CG8eT3ztZjhRp1eq32_yqMxnD2d2gkvVeqaZ9lmWL0_KuLfsjxWHNQYjqVkwsfhm5X0YCpxVogYW2OAJTovb6ZjOm35M0-Q7Ru8xuBjJ2NKkQ/s640/7.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 1.6&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg46EzwQi-6iq9RiByxdhDiJRV-vWyNDRqIR8RPAqCQAC7U4qRV1AMBeJOKMzakH-1noa41_HZy_92Lss8lZkjES_m7RsfherLH_cicudgly-bgeHj2u3vG4hRup_PE-Y6QkMP6JrM1hmM/s1600/8.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;863&quot; data-original-width=&quot;1600&quot; height=&quot;344&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg46EzwQi-6iq9RiByxdhDiJRV-vWyNDRqIR8RPAqCQAC7U4qRV1AMBeJOKMzakH-1noa41_HZy_92Lss8lZkjES_m7RsfherLH_cicudgly-bgeHj2u3vG4hRup_PE-Y6QkMP6JrM1hmM/s640/8.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 1.7&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEl3-VHl7yFfHQuEcJ_2FupcEZQcjXj9ItOqWDrWxnUV_aeCVLqQ_o6L3FpUxJsBAtiVSwXzm_Tx2bRFcINZNvtcD9nxR_fs9hf5NyZWNoLY1R33k7oIORQQ2cB3z4mD6O4lV_XpkKQWg/s1600/9.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;858&quot; data-original-width=&quot;1600&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEl3-VHl7yFfHQuEcJ_2FupcEZQcjXj9ItOqWDrWxnUV_aeCVLqQ_o6L3FpUxJsBAtiVSwXzm_Tx2bRFcINZNvtcD9nxR_fs9hf5NyZWNoLY1R33k7oIORQQ2cB3z4mD6O4lV_XpkKQWg/s640/9.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 1.8&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-F3NrL74MSS0lhOvLpObKWLG8h05zO9xGL_GO7r3ZnN_fZXDipeBHQbaKXToiMa_BnsVkGcrt-CiCob6DN5Y1_lYbhP263PmhjO6J1nc7AW5SzyqJlcYUT-v8t0FK11cQhKP8-z9Q-Gc/s1600/10.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;860&quot; data-original-width=&quot;1600&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-F3NrL74MSS0lhOvLpObKWLG8h05zO9xGL_GO7r3ZnN_fZXDipeBHQbaKXToiMa_BnsVkGcrt-CiCob6DN5Y1_lYbhP263PmhjO6J1nc7AW5SzyqJlcYUT-v8t0FK11cQhKP8-z9Q-Gc/s640/10.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 1.9&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLWHQpItXZcG6u27gnWv_S2-uhIpqX9zQW6JL1gZseAhTPaWuArhjdF8DNoYoVNqp-XtTGxhavj0c1IhsFItai7IP7VNgGFQPVpODaq3DwC7Q8FHG34rWMdrj9Xl9s8imna4bitHy1-S4/s1600/11.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;857&quot; data-original-width=&quot;1600&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLWHQpItXZcG6u27gnWv_S2-uhIpqX9zQW6JL1gZseAhTPaWuArhjdF8DNoYoVNqp-XtTGxhavj0c1IhsFItai7IP7VNgGFQPVpODaq3DwC7Q8FHG34rWMdrj9Xl9s8imna4bitHy1-S4/s640/11.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIR7vJOaRQND97zfgA80iaad5tFRuIiXht0B1vaJBRocyKhryk2KfGBQZ4XRzJNcY_aPjr7Dkf2UmLO6z5NvhTMtzBQ4U2N5jY8scyGlFi8_gPbJ8TwFE5wBJPBAUXy7u_500uGI68dJM/s1600/12.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;868&quot; data-original-width=&quot;1600&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIR7vJOaRQND97zfgA80iaad5tFRuIiXht0B1vaJBRocyKhryk2KfGBQZ4XRzJNcY_aPjr7Dkf2UmLO6z5NvhTMtzBQ4U2N5jY8scyGlFi8_gPbJ8TwFE5wBJPBAUXy7u_500uGI68dJM/s640/12.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.1&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;i style=&quot;text-align: justify;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;Now let’s move on to the next topic and look at the steps required to create a JDBC Application.&lt;/span&gt;&lt;/i&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1RusS0ECtNFtPStn_R2jRDzGqEln0-0NQ0eye6ASu84bI8f9zfgqbCN_AtrHUKmqmP7XiSbQqoBifOvd3yBgpiK99yxXhEWdXURCveSjq8KiWNJCY-h4LqS1GdRovx2eAY56037INw3I/s1600/13.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;856&quot; data-original-width=&quot;1600&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1RusS0ECtNFtPStn_R2jRDzGqEln0-0NQ0eye6ASu84bI8f9zfgqbCN_AtrHUKmqmP7XiSbQqoBifOvd3yBgpiK99yxXhEWdXURCveSjq8KiWNJCY-h4LqS1GdRovx2eAY56037INw3I/s640/13.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;      &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1I3ClDEDfVN0DreX-JcSUiwhPdmCyeG8UEmoWMFdLL4NhLaiqUsSLOtWDyndNkL8M2TeLhKXgT2Mvg-LUvg0SQ-7z5zvNB4hPQSqW53B0tSwFV-5SQ_MK7vu-z9bSO8u5l3elRaexphU/s1600/5.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;856&quot; data-original-width=&quot;1600&quot; height=&quot;342&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1I3ClDEDfVN0DreX-JcSUiwhPdmCyeG8UEmoWMFdLL4NhLaiqUsSLOtWDyndNkL8M2TeLhKXgT2Mvg-LUvg0SQ-7z5zvNB4hPQSqW53B0tSwFV-5SQ_MK7vu-z9bSO8u5l3elRaexphU/s640/5.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9xJJlkwzJpm5dMR99q324k7WV6q70iKawEXxz6HQnTMQo6vdaB9eUAhHFfb7Ov550N2Kc9_K-OsccANox5-V4VRDDsiE4h1dC4dadORa4c60AaV765BTtuTnzo7jU9UrJiLYFuE52mcM/s1600/14.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;874&quot; data-original-width=&quot;1600&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9xJJlkwzJpm5dMR99q324k7WV6q70iKawEXxz6HQnTMQo6vdaB9eUAhHFfb7Ov550N2Kc9_K-OsccANox5-V4VRDDsiE4h1dC4dadORa4c60AaV765BTtuTnzo7jU9UrJiLYFuE52mcM/s640/14.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJkAejwiSd10GNYNb9sqxkJ93jsYJ4kjb8i0KqXLUuRgbcTEY0DH3wzFTVn4pogeZtrTRI94JYMLxJ781UkFJEYe63zMuc_naLBpPJCAj6BU3amV08J4THziuoA2nchrTvrva7-fMk9pQ/s1600/15.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;874&quot; data-original-width=&quot;1600&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJkAejwiSd10GNYNb9sqxkJ93jsYJ4kjb8i0KqXLUuRgbcTEY0DH3wzFTVn4pogeZtrTRI94JYMLxJ781UkFJEYe63zMuc_naLBpPJCAj6BU3amV08J4THziuoA2nchrTvrva7-fMk9pQ/s640/15.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxcr9hJgES_3HEB4kaXDfeqg1C2wXGHOo0f7NoxS4RlythEzPFTwvMIOZLF68p5IfrPLTR0kjX5N1xSOgeuMC4-_CqsI-U_IIwtMkU62-bI17M4TpjNJ1jyNlLVFR0Ok66bXjPe6CGlr0/s1600/16.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;871&quot; data-original-width=&quot;1600&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxcr9hJgES_3HEB4kaXDfeqg1C2wXGHOo0f7NoxS4RlythEzPFTwvMIOZLF68p5IfrPLTR0kjX5N1xSOgeuMC4-_CqsI-U_IIwtMkU62-bI17M4TpjNJ1jyNlLVFR0Ok66bXjPe6CGlr0/s640/16.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.5&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRcSU1wYg3Q6ExpBca5n5vXyVGIc2o7gwFxV5rABW6BExclK_iC6_atT6ODgWypKPquWdffB24_NYENPamZSydfDuuT5ADClVGQrDadpM8jKM3ZETJRzsezjlnAFNOAOixQEn582lI1Gk/s1600/17.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;867&quot; data-original-width=&quot;1600&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRcSU1wYg3Q6ExpBca5n5vXyVGIc2o7gwFxV5rABW6BExclK_iC6_atT6ODgWypKPquWdffB24_NYENPamZSydfDuuT5ADClVGQrDadpM8jKM3ZETJRzsezjlnAFNOAOixQEn582lI1Gk/s640/17.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.6&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLE24JKAjc6ELIZK1XhJ0wFF3AVrg25y1sp0FhJ1rvwgh_uNyfykL_wZcsDQrxm_08CTnfTJ4wEJM38YyK-H2P7iMXMisvjwHWzJ3ufoe_tXLiHZGFIBwt-Oy7bUXIUz5pAvAvtAh7Tpg/s1600/18.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;866&quot; data-original-width=&quot;1600&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLE24JKAjc6ELIZK1XhJ0wFF3AVrg25y1sp0FhJ1rvwgh_uNyfykL_wZcsDQrxm_08CTnfTJ4wEJM38YyK-H2P7iMXMisvjwHWzJ3ufoe_tXLiHZGFIBwt-Oy7bUXIUz5pAvAvtAh7Tpg/s640/18.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.7&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWttM8o5PrCANCP83UD9MLWDfo8KlF2AxIQOQQuOkcz6aSPiJZMOJFO4vCc_NHgM4SOaLffFWWyoj8DNT32VvjJJL9_Tt-NZDfVTNsaDqc9Ssuxnspk4OXaGkqZ1FG9X7MBHyUVTB8sr8/s1600/19.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;883&quot; data-original-width=&quot;1600&quot; height=&quot;352&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWttM8o5PrCANCP83UD9MLWDfo8KlF2AxIQOQQuOkcz6aSPiJZMOJFO4vCc_NHgM4SOaLffFWWyoj8DNT32VvjJJL9_Tt-NZDfVTNsaDqc9Ssuxnspk4OXaGkqZ1FG9X7MBHyUVTB8sr8/s640/19.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.8&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi86CYQxqsACC84EjF0VV-CYR-VMmMFXZLQXjIudqR7DHQEX_WWaaV-OrNUF1Gc7W9ukuIK-S5EvIG6MGSrqgNS2SiZmNECWXxe72kwyntKNpa6IPZEc7TzMiokOkOJMIRk55cU6DeLKxw/s1600/20.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;868&quot; data-original-width=&quot;1600&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi86CYQxqsACC84EjF0VV-CYR-VMmMFXZLQXjIudqR7DHQEX_WWaaV-OrNUF1Gc7W9ukuIK-S5EvIG6MGSrqgNS2SiZmNECWXxe72kwyntKNpa6IPZEc7TzMiokOkOJMIRk55cU6DeLKxw/s640/20.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Figure - 2.9&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Code Example is given below&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;package com.jdbc.eamples;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;import java.sql.*;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;public class MyDatabase {&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;static final String JDBC_DRIVER = &quot;com.mysql.jdbc.Driver&quot;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;static final String DB_URL = &quot;jdbc:mysql://localhost/databasename&quot;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;static final String USER = &quot;your root username&quot;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;static final String PASS = &quot;your root password&quot;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static void main(String[] args) {&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Connection conn = null;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Statement stmt = null;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;try {&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;Class.forName(&quot;com.mysql.cj.jdbc.Driver&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;Connecting to database...&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;conn = DriverManager.getConnection(DB_URL,&quot;USER&quot;,PASS);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;Creating statement...&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;stmt = conn.createStatement();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;//first inserting data in table&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;String sql= &quot;INSERT INTO emp VALUES (101, &#39;Taylor&#39;, &#39;Swift&#39;, 30)&quot;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;stmt.executeUpdate(sql);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;sql= &quot;INSERT INTO&amp;nbsp; emp VALUES(102, &#39;Linkin&#39;, &#39;Park&#39;, 28)&quot;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;stmt.executeUpdate(sql);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;Inserted records into the table...&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;Creating statement...&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;database connected&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;//then fetching&amp;nbsp;data from table&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;sql = &quot;SELECT idemp, first, last, age FROM emp&quot;;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;ResultSet rs = stmt.executeQuery(sql);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//STEP 5: Extract data from result set&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;while(rs.next()){&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//Retrieve by column name&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int id&amp;nbsp; = rs.getInt(&quot;idemp&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;int age = rs.getInt(&quot;age&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;String first = rs.getString(&quot;first&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;String last = rs.getString(&quot;last&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//Display values&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.print(&quot;ID: &quot; + id);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.print(&quot;, Age: &quot; + age);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.print(&quot;, First: &quot; + first);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;, Last: &quot; + last);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//STEP 6: Clean-up environment&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;rs.close();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;stmt.close();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;conn.close();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;} catch(SQLException se){&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//Handle errors for JDBC&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;se.printStackTrace();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}catch(Exception e){&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;//Handle errors for Class.forName&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;e.printStackTrace();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}finally{&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;//finally block used to close resources&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;try{&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if(stmt!=null)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;stmt.close();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}catch(SQLException se2){&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}// nothing can be done&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;try{&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if(conn!=null)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;conn.close();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}catch(SQLException se){&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;se.printStackTrace();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}//end finally try&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}//end try&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;System.out.println(&quot;Goodbye!&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}//end main&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;  &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;margin-top: 0cm; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;strong&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-weight: normal;&quot;&gt;Introduction to Servlets&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem; margin-top: 0cm; text-align: justify; word-break: break-word;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;A&amp;nbsp;servlet&amp;nbsp;is a&amp;nbsp;java programming&amp;nbsp;language class that is used to extend the capabilities of servers that host applications accessed by&amp;nbsp;means&amp;nbsp;of a request-response programming model. Although&amp;nbsp;servlets&amp;nbsp;can respond to any type of request, they are commonly used to extend the applications hosted by web servers.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem; margin-top: 0cm; text-align: justify; word-break: break-word;&quot;&gt;
&lt;i style=&quot;color: #4a4a4a; font-family: Arial, sans-serif; font-size: x-large;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Servlet can be described as follows:&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; margin-bottom: 1rem; margin-top: 0cm; text-align: justify; word-break: break-word;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i style=&quot;text-align: left;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Arial; mso-fareast-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1.&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-stretch: normal; font-style: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span dir=&quot;LTR&quot; style=&quot;text-align: left;&quot;&gt;&lt;/span&gt;&lt;i style=&quot;text-align: left;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #4a4a4a; font-family: &amp;quot;arial&amp;quot; , sans-serif; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-bidi; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-bidi;&quot;&gt;Servlet is a technology which is used to create a web application.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;2&quot; style=&quot;text-align: left;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #4a4a4a; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It is      an API that provides many interfaces and classes including documentation.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #4a4a4a; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Servlet      is an interface that must be implemented for creating any Servlet.&lt;br /&gt;
&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background: white; color: #4a4a4a; line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It is      also a class that extends the capabilities of the servers and responds to      the incoming requests. &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It can respond to any requests.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDoMM9WRq8szhis7eyBSNfBGMH1Zv964CKKqOHThjZsSk4vz9XaEgMF8PUEZd2qTJtJzl8x5cUMHCvmo6nxRbkv1GLFrE6hB-KtzFvzGmDPp9htIh4oN3Q0D9wilIFD7Li91AjsVfVoVY/s1600/23.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;871&quot; data-original-width=&quot;1600&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDoMM9WRq8szhis7eyBSNfBGMH1Zv964CKKqOHThjZsSk4vz9XaEgMF8PUEZd2qTJtJzl8x5cUMHCvmo6nxRbkv1GLFrE6hB-KtzFvzGmDPp9htIh4oN3Q0D9wilIFD7Li91AjsVfVoVY/s640/23.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;Client Server Architecture&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOAJ59mUVD0uJf538Y6KMaqnbli2-h8z2qtIzOQDL_nF5wkL0cnP-YcajtplmOtEpqyVBtJCGyT4pBMD8nb_zgjjpzWwBD5Jf04jqmVebbigFcx2RMxnBU57OvhtetD5tJ69-gnmwyrek/s1600/22.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;733&quot; data-original-width=&quot;1600&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOAJ59mUVD0uJf538Y6KMaqnbli2-h8z2qtIzOQDL_nF5wkL0cnP-YcajtplmOtEpqyVBtJCGyT4pBMD8nb_zgjjpzWwBD5Jf04jqmVebbigFcx2RMxnBU57OvhtetD5tJ69-gnmwyrek/s640/22.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/O3OugBzNh1Q/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/O3OugBzNh1Q?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white; font-family: &amp;quot;open sans&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;Complete Servlet Life Cycle&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo3hoAx_WRAX_FgbxDkYp6CtmmhqTo_8Unbdmnk0UmcSNCUmnvEgi6a7T_fJ4adDOmH9K4XWQwctBXiY1WI_XVfw-dhjcV27iDnHbfmS47paXAIioyuFvqq6DUtGlgH-QIRYvfxcPzMxE/s1600/24.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;867&quot; data-original-width=&quot;1600&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo3hoAx_WRAX_FgbxDkYp6CtmmhqTo_8Unbdmnk0UmcSNCUmnvEgi6a7T_fJ4adDOmH9K4XWQwctBXiY1WI_XVfw-dhjcV27iDnHbfmS47paXAIioyuFvqq6DUtGlgH-QIRYvfxcPzMxE/s640/24.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/h2wISK624ko/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/h2wISK624ko?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Create a dynamic Web Project using Servlet&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Code example is given below&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA-lCIePcVbL2QO9MeR3gGPNmF9psTJsdiOBI9i6ns1H0UegLBRKG-XZnPCt4xtNJSbecwF8T8HjC_MoJTETD7bKNzHchzhndewA3pzTnd-R40tku8jfIEjlb3it08sPNWCkbQHs-Zyq8/s1600/25.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;352&quot; data-original-width=&quot;360&quot; height=&quot;624&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA-lCIePcVbL2QO9MeR3gGPNmF9psTJsdiOBI9i6ns1H0UegLBRKG-XZnPCt4xtNJSbecwF8T8HjC_MoJTETD7bKNzHchzhndewA3pzTnd-R40tku8jfIEjlb3it08sPNWCkbQHs-Zyq8/s640/25.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;There are one Servlet in this project and one html page. In&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;WEB-INF folder there is one web.xml file is present.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;In com.reshu package there is a Servlet file SumServlet present the work of this servlet is to take values of two numbers from request object given by server and then add those two numbers and show the addition&amp;nbsp;to the page in the form of response to the html page&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;package com.reshu;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;import java.io.IOException;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;import java.io.PrintWriter;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;import javax.servlet.http.HttpServlet;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;import javax.servlet.http.HttpServletRequest;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;import javax.servlet.http.HttpServletResponse;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;public class SumServlet extends HttpServlet&amp;nbsp; {&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException{&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;  &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int i = Integer.parseInt(req.getParameter(&quot;num1&quot;));&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;  &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int j = Integer.parseInt(req.getParameter(&quot;num2&quot;));&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;  &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int k = i+j;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;  &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;PrintWriter out = res.getWriter();&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;  &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;out.println(&quot;result is &quot; + k);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;  &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;}&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;Here below is the code of html page by which user send request to the SumServlet&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPifwMBnZHfb7CyE3xz8_szEukosN4TxuhD8sewidXQgaz8KkccJS6k_0nOv0oEDQfd_fOsXVnUOJol-ovrrHZhIcrJ-UY-WcdqtwS0_xbaQ6wYfNrS6vslIoMO_gg0tXyMnELecIVv6I/s1600/28.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;276&quot; data-original-width=&quot;563&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPifwMBnZHfb7CyE3xz8_szEukosN4TxuhD8sewidXQgaz8KkccJS6k_0nOv0oEDQfd_fOsXVnUOJol-ovrrHZhIcrJ-UY-WcdqtwS0_xbaQ6wYfNrS6vslIoMO_gg0tXyMnELecIVv6I/s640/28.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCQegp4wKolPhibnIX0YG9GeDi1a6u-b5bVao8GKtgwhhFmeK-Ba3PqbFbBiyzhH5MEE0JMOMJ2eS3ApmHZyyz-SU_gwUj1cTckF5reo-16q2aClyV5stAUwLwJjGQR6HyoJjgos1-SYE/s1600/26.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;115&quot; data-original-width=&quot;438&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCQegp4wKolPhibnIX0YG9GeDi1a6u-b5bVao8GKtgwhhFmeK-Ba3PqbFbBiyzhH5MEE0JMOMJ2eS3ApmHZyyz-SU_gwUj1cTckF5reo-16q2aClyV5stAUwLwJjGQR6HyoJjgos1-SYE/s640/26.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;the code given below is for web.xml file for servlet-mapping. In&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;web.xml file their is a mapping for Servlet and html page by which when user submit the page request call the servlet according to mapping in this file. In this case SumServlet.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;font-family: &amp;quot;Calibri Light&amp;quot;; font-size: x-large; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;font-family: &amp;quot;Calibri Light&amp;quot;; font-size: x-large; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: cyan;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &amp;nbsp; Web.xml&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;web-app id=&quot;WebApp_ID&quot; version=&quot;3.1&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns=&quot;http://xmlns.jcp.org/xml/ns/javaee&quot; xsi:schemalocation=&quot;http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd&quot;&gt;&lt;/web-app&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQf2k1YuvWyH8LfOZImIPVdNdCTk3gOlild0xQ3ENO2fNZLagP2uglxmI07t-ZpRJvKzO3dEjYn1qvnI55KzXSFgmqHctRVHJtVefM5EuORlLSpMFEQFD3JdQmHNQIpIsIsHhdksqhAKw/s1600/27.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;330&quot; data-original-width=&quot;1000&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQf2k1YuvWyH8LfOZImIPVdNdCTk3gOlild0xQ3ENO2fNZLagP2uglxmI07t-ZpRJvKzO3dEjYn1qvnI55KzXSFgmqHctRVHJtVefM5EuORlLSpMFEQFD3JdQmHNQIpIsIsHhdksqhAKw/s640/27.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;I hope you have enjoy my blog and please visit my youtube Channel for more videos in hindi.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg/&quot; target=&quot;_blank&quot;&gt;Learn With Reshu&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/pPa58coZxeo/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/pPa58coZxeo?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;Thanks for Reading Please subscribe for more interesting&amp;nbsp;content everyday.....&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: Roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: Roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; color: #838383; font-family: roboto, sans-serif; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_12.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Inheritance(IS-A) in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/7285198754094924507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7285198754094924507'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7285198754094924507'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html' title='Advanced Java Programming'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDq1eMkJ6y9C4dMGpJgAH8cwXTfR_FI0ozn1X37e6TINoA9KnkHlu20wo8oAMKR9PzdFjoROX3Wg8fhoG6vZ3Ibb5zPqBPNJpitovRwcutGI18VzEPR8VobNrJn21RXaoVuDENkdqJM74/s72-c/1.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-4528535140586507797</id><published>2020-07-29T00:13:00.003-07:00</published><updated>2020-09-08T00:54:36.832-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Encapsulation in java"/><title type='text'>Encapsulation in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;i&gt; &amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 54pt;&quot;&gt;Encapsulation
in java&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 54pt;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6YELWqhiUe1a-E3pPYlV2WNxzO3NlCNH21dibda6bbjDJWfcr9KDtFWbfRADvTWAYr8f_5I0KodUHDhR6If2RXjJ87bkMocsCdUUDteYETHooEbfQj76gInpxo9qXi4RbZfzHUgtEaQE/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;740&quot; data-original-width=&quot;1301&quot; height=&quot;363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6YELWqhiUe1a-E3pPYlV2WNxzO3NlCNH21dibda6bbjDJWfcr9KDtFWbfRADvTWAYr8f_5I0KodUHDhR6If2RXjJ87bkMocsCdUUDteYETHooEbfQj76gInpxo9qXi4RbZfzHUgtEaQE/s640/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;Encapsulation&lt;/i&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;i style=&quot;font-weight: normal;&quot;&gt;The meaning of&amp;nbsp;&lt;span style=&quot;box-sizing: inherit;&quot;&gt;Encapsulation&lt;/span&gt;, is to make sure that &quot;sensitive&quot; data is hidden from users. To achieve this, you must:&lt;/i&gt;&lt;/span&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; font-weight: normal;&quot;&gt;declare class variables/attributes as&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; padding-left: 4px; padding-right: 4px;&quot;&gt;private&lt;/code&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large; font-weight: normal;&quot;&gt;provide public&amp;nbsp;&lt;span style=&quot;box-sizing: inherit;&quot;&gt;get&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;box-sizing: inherit;&quot;&gt;set&lt;/span&gt;&amp;nbsp;methods to access and update the value of a&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; padding-left: 4px; padding-right: 4px;&quot;&gt;private&lt;/code&gt;&amp;nbsp;variable&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLpGOnjnWjc-yWTZTDHS30okrHWCP8vx8Pld__QB42HMILpvRRYRVJZI9pVawEOgHuZZ_ZUO-VMmnM_Mv20lfukI-IUloEqMITRYYzy-_0rs1HgMr4FTaVKY3p_mztYGg6yemLN64axRA/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;713&quot; data-original-width=&quot;1255&quot; height=&quot;362&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLpGOnjnWjc-yWTZTDHS30okrHWCP8vx8Pld__QB42HMILpvRRYRVJZI9pVawEOgHuZZ_ZUO-VMmnM_Mv20lfukI-IUloEqMITRYYzy-_0rs1HgMr4FTaVKY3p_mztYGg6yemLN64axRA/s640/2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;Get and Set&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-size: large; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;You learned from the previous blogs that&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; padding-left: 4px; padding-right: 4px;&quot;&gt;private&lt;/code&gt;&amp;nbsp;variables can only be accessed within the same class (an outside class has no access to it). However, it is possible to access them if we provide public&amp;nbsp;&lt;span style=&quot;box-sizing: inherit;&quot;&gt;get&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;box-sizing: inherit;&quot;&gt;set&lt;/span&gt;&amp;nbsp;methods.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-size: large; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; padding-left: 4px; padding-right: 4px;&quot;&gt;get&lt;/code&gt;&amp;nbsp;method returns the variable value, and the&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; padding-left: 4px; padding-right: 4px;&quot;&gt;set&lt;/code&gt;&amp;nbsp;method sets the value.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style=&quot;font-size: large; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Syntax for both is that they start with either&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; padding-left: 4px; padding-right: 4px;&quot;&gt;get&lt;/code&gt;&amp;nbsp;or&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; padding-left: 4px; padding-right: 4px;&quot;&gt;set&lt;/code&gt;, followed by the name of the variable, with the first letter in upper case:&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;
Example&lt;/h3&gt;
&lt;h3 style=&quot;background-color: white; box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
&lt;pre class=&quot; w3-white language-java&quot; data-line=&quot;5,10&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 2; word-break: normal;&quot;&gt;&lt;span style=&quot;color: #0077aa; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;source code pro&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;andale mono&amp;quot; , &amp;quot;ubuntu mono&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px; font-weight: 400;&quot;&gt;package com.encapsulation.examples;

public class MyEncapsulation {
 
  private String name;
  private String idNum;
  private int age;
   
 public String getName() {
  return name;
 }
 
 public void setName(String name) {
  this.name = name;
 }

 public String getIdNum() {
  return idNum;
 }

 public void setIdNum(String idNum) {
  this.idNum = idNum;
 }

 public int getAge() {
  return age;
 }

 public void setAge(int age) {
  this.age = age;
 }
 
}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot; w3-white language-java&quot; data-line=&quot;5,10&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 2; word-break: normal;&quot;&gt;&lt;span style=&quot;font-size: 15.21px;&quot;&gt;public class Test {

 public static void main(String args[]) {
 
  MyEncapsulation me = new MyEncapsulation();
  
  me.setAge(50);
  
  me.setIdNum(&quot;AB123&quot;);
  
  me.setName(&quot;Reshu&quot;);
  
  System.out.println(&quot;Name : &quot; + me.getName() + &quot; Age : &quot; + me.getAge() + &quot; Id : &quot;+ me.getIdNum());
  
  
 }
 
&lt;/span&gt;&lt;/pre&gt;
&lt;/h3&gt;
&lt;h4 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 20px; font-weight: 400; margin: 10px 0px;&quot;&gt;
Example explained&lt;/h4&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
The&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;get&lt;/code&gt;&amp;nbsp;method returns the value of the variable&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;name&lt;/code&gt;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
The&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;set&lt;/code&gt;&amp;nbsp;method takes a parameter (&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;name&lt;/code&gt;) and assigns it to the&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;name&lt;/code&gt;&amp;nbsp;variable. The&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;this&lt;/code&gt;&amp;nbsp;keyword is used to refer to the current object.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
However, as the&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;name&lt;/code&gt;&amp;nbsp;variable is declared as&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;private&lt;/code&gt;, we&amp;nbsp;&lt;span style=&quot;box-sizing: inherit; font-weight: bolder;&quot;&gt;cannot&lt;/span&gt;&amp;nbsp;access it from outside this class:&lt;/div&gt;
&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;
Example&lt;/h3&gt;
&lt;pre class=&quot; w3-white language-java&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot; language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; Test{
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-static&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;]&lt;/span&gt; args&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
     MyEncapsulation me = new MyEncapsulation();

      me&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;name &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;John&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;// error&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;me&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;name&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;// error &lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
If the variable was declared as&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;public&lt;/code&gt;, we would expect the following output:&lt;/div&gt;
&lt;h2 style=&quot;box-sizing: inherit; margin-bottom: 1.2em; margin-top: 1.2em; text-align: left;&quot;&gt;
&lt;span style=&quot;color: white; font-family: monospace , monospace; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: black;&quot;&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
but, as we try to access a&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;private&lt;/code&gt;&amp;nbsp;variable, we get an error:&lt;span style=&quot;font-family: monospace , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: inherit; font-family: verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: white; font-family: monospace , monospace;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot; w3-white language-java&quot; data-line=&quot;4,5&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: consolas, &amp;quot;source code pro&amp;quot;, menlo, monaco, &amp;quot;andale mono&amp;quot;, &amp;quot;ubuntu mono&amp;quot;, monospace; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; word-break: normal;&quot;&gt;&lt;div style=&quot;box-sizing: inherit; font-family: verdana, sans-serif; margin-bottom: 1.2em; margin-top: 1.2em; white-space: normal;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: monospace , monospace;&quot;&gt;Test.java:4: error: name has private access in MyEncapsulation&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: monospace , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: monospace , monospace;&quot;&gt;me.name = &quot;John&quot;;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: monospace , monospace;&quot;&gt;&amp;nbsp; ^&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: white; font-family: monospace , monospace;&quot;&gt;Test.java:5: error: name has private access in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: white; font-family: monospace , monospace;&quot;&gt;MyEncapsulation&lt;/span&gt;&lt;span style=&quot;color: white; font-family: monospace , monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: white; font-family: monospace , monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: monospace , monospace;&quot;&gt;System.out.println(me.name);&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: monospace , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: monospace , monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: monospace , monospace;&quot;&gt;2 errors&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
Instead, we use the&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;getName()&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;setName()&lt;/code&gt;&amp;nbsp;methods to acccess and update the variable:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; margin-bottom: 1.2em; margin-top: 1.2em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;
Example&lt;/h3&gt;
&lt;pre class=&quot; w3-white language-java&quot; data-line=&quot;4,5&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot; language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #dd4a68;&quot;&gt;Test&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-static&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;]&lt;/span&gt; args&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
   MyEncapsulation me = new MyEncapsulation();

    me&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;setName&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;John&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;// Set the value of the name variable to &quot;John&quot;&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;me&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;// Outputs &quot;John&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 32px; margin: 10px 0px;&quot;&gt;
Why Encapsulation?&lt;/h2&gt;
&lt;ul style=&quot;background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px;&quot;&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Better control of class attributes and methods&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Class attributes can be made&amp;nbsp;&lt;span style=&quot;box-sizing: inherit; font-weight: bolder;&quot;&gt;read-only&lt;/span&gt;&amp;nbsp;(if you only use the&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;get&lt;/code&gt;&amp;nbsp;method), or&amp;nbsp;&lt;span style=&quot;box-sizing: inherit; font-weight: bolder;&quot;&gt;write-only&lt;/span&gt;&amp;nbsp;(if you only use the&amp;nbsp;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15.75px; padding-left: 4px; padding-right: 4px;&quot;&gt;set&lt;/code&gt;&amp;nbsp;method)&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Flexible: the programmer can change one part of the code without affecting other parts&lt;/li&gt;
&lt;li style=&quot;box-sizing: inherit;&quot;&gt;Increased security of data&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWmAxr4JEKDQ8NThUkn15uNIap1SU2LLLQF4AWAmXYR6064AAyKB52qScllaD7rf6ZX8jDL-D6k-0atID1QjWfrq3dZL5m8Zv_MQ6fvo4qd06ZLExZKRaGyHT2sewPN5SDernq24i-wVI/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;743&quot; data-original-width=&quot;1297&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWmAxr4JEKDQ8NThUkn15uNIap1SU2LLLQF4AWAmXYR6064AAyKB52qScllaD7rf6ZX8jDL-D6k-0atID1QjWfrq3dZL5m8Zv_MQ6fvo4qd06ZLExZKRaGyHT2sewPN5SDernq24i-wVI/s640/3.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;For Complete Explanation&amp;nbsp;of this topic in hindi Please visit My Youtube&amp;nbsp;Channel&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/bHJk4Aw-P6Y/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/bHJk4Aw-P6Y?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;Thanks For Watching!!!&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;Abstraction in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/4528535140586507797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/blog-post_42.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4528535140586507797'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4528535140586507797'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/blog-post_42.html' title='Encapsulation in java'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6YELWqhiUe1a-E3pPYlV2WNxzO3NlCNH21dibda6bbjDJWfcr9KDtFWbfRADvTWAYr8f_5I0KodUHDhR6If2RXjJ87bkMocsCdUUDteYETHooEbfQj76gInpxo9qXi4RbZfzHUgtEaQE/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-1770394097088981246</id><published>2020-07-29T00:07:00.001-07:00</published><updated>2020-09-08T00:54:58.930-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Method OverLoading in Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Method Overriding"/><category scheme="http://www.blogger.com/atom/ns#" term="Polymorphism"/><title type='text'>Polymorphism in Java Method Overriding and Method OverLoading in Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue; font-size: x-large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-style: italic; font-weight: bold;&quot;&gt;Polymorphism
in Java&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-style: italic; font-weight: bold;&quot;&gt;Method Overriding and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;&lt;i style=&quot;font-weight: normal;&quot;&gt;Method OverLoading in Java&lt;/i&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;background: white; margin: 7.5pt 0cm;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Java Polymorphism&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkxWvMnUO_ddd8JbljXnfH50ybJWcAaMk3yJlqCeozxx9Q-cTN55oYfjSI_7UH6r89PEHOeRfj-k2tLUu1vXL5xs_ND3bqtClDJmRY8eUSJcN8VyHkIcn5agfTNUoXfEK6NmwEcSTGaRM/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;871&quot; data-original-width=&quot;1600&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkxWvMnUO_ddd8JbljXnfH50ybJWcAaMk3yJlqCeozxx9Q-cTN55oYfjSI_7UH6r89PEHOeRfj-k2tLUu1vXL5xs_ND3bqtClDJmRY8eUSJcN8VyHkIcn5agfTNUoXfEK6NmwEcSTGaRM/s640/1.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;h2 style=&quot;background: white; margin-bottom: 7.5pt; margin-left: 0cm; margin-right: 0cm; margin-top: 7.5pt;&quot;&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: inherit; font-weight: 400; margin: 14.4pt 0cm;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Polymorphism means &quot;many forms&quot;, and it occurs when we have many classes that are related to each other by inheritance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: inherit; font-weight: 400; margin: 14.4pt 0cm;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Like we specified in the previous Blog;&amp;nbsp;Inheritance&amp;nbsp;lets us inherit attributes and methods from another class.&amp;nbsp;&lt;strong style=&quot;box-sizing: inherit;&quot;&gt;Polymorphism&lt;/strong&gt;&amp;nbsp;uses those methods to perform different tasks. This allows us to perform a single action in different ways.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: inherit; font-weight: 400; margin: 14.4pt 0cm;&quot;&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Polymorphism are two types&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: inherit; font-weight: 400; margin: 14.4pt 0cm;&quot;&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Method Overriding : &lt;span style=&quot;font-weight: normal;&quot;&gt;It calls as compile time polymorphism or static or early binding.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/h3&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Method Overloading: &lt;span style=&quot;font-weight: normal;&quot;&gt;It calls as Runtime polymorphism or dynamic or late binding.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;For example, think of a superclass called&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;code style=&quot;background-color: white; box-sizing: inherit;&quot;&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241 , 241 , 241); color: crimson; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;Animal&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;that has a method called&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;code style=&quot;background-color: white; box-sizing: inherit;&quot;&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;background: rgb(241 , 241 , 241); color: crimson; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;animalSound()&lt;/span&gt;&lt;/i&gt;&lt;/code&gt;&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;. Subclasses of Animals could be Pigs, Cats, Dogs, Birds - And they also have their own implementation of an animal sound (the pig oinks, and the cat meows, etc.): This is a example of &lt;b&gt;Method overriding&lt;/b&gt; in &lt;b&gt;Polymorphism&lt;/b&gt;.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;box-sizing: inherit; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px;&quot;&gt;
Example&lt;/h3&gt;
&lt;pre class=&quot; w3-white language-java&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot; language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;The animal makes a sound&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Pig&lt;/span&gt; &lt;span class=&quot;token keyword keyword-extends&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;extends&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;The pig says: wee wee&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Dog&lt;/span&gt; &lt;span class=&quot;token keyword keyword-extends&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;extends&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;The dog says: bow wow&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;Now we can create&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; padding-left: 4px; padding-right: 4px;&quot;&gt;Pig&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; padding-left: 4px; padding-right: 4px;&quot;&gt;Dog&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;objects and call the&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;w3-codespan&quot; style=&quot;background-color: #f1f1f1; box-sizing: inherit; color: crimson; font-family: Consolas, &amp;quot;courier new&amp;quot;; padding-left: 4px; padding-right: 4px;&quot;&gt;animalSound()&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;method on both of them:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre class=&quot; w3-white language-java&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 15px; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal;&quot;&gt;&lt;code class=&quot; language-java&quot; style=&quot;background: none; box-sizing: inherit; font-family: Consolas, &amp;quot;Source Code Pro&amp;quot;, Menlo, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 1em; hyphens: none; line-height: 1.5; overflow-wrap: normal; tab-size: 2; word-break: normal; word-spacing: normal;&quot;&gt;&lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;The animal makes a sound&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Pig&lt;/span&gt; &lt;span class=&quot;token keyword keyword-extends&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;extends&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;The pig says: wee wee&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Dog&lt;/span&gt; &lt;span class=&quot;token keyword keyword-extends&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;extends&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;System&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;out&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot; style=&quot;box-sizing: inherit; color: #669900;&quot;&gt;&quot;The dog says: bow wow&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;token keyword keyword-class&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;MyMainClass&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;token keyword keyword-public&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;token keyword keyword-static&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;token keyword keyword-void&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;]&lt;/span&gt; args&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; myAnimal &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword keyword-new&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;// Create a Animal object&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; myPig &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword keyword-new&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Pig&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;// Create a Pig object&lt;/span&gt;
    &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Animal&lt;/span&gt; myDog &lt;span class=&quot;token operator&quot; style=&quot;box-sizing: inherit; color: #9a6e3a;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword keyword-new&quot; style=&quot;box-sizing: inherit; color: #0077aa;&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;Dog&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;token comment&quot; style=&quot;box-sizing: inherit; color: slategrey;&quot;&gt;// Create a Dog object&lt;/span&gt;
    myAnimal&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
    myPig&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
    myDog&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot; style=&quot;box-sizing: inherit; color: #dd4a68;&quot;&gt;animalSound&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot; style=&quot;box-sizing: inherit; color: #999999;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Method Overriding&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;In Method Overriding the overridden method has same name but different arguments as number of arguments Sequence of arguments or type of arguments would be different.&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;In The example below the Class Adder has three add method with different arguments this is a example of method overriding.&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot; w3-white language-java&quot; style=&quot;background: rgb(241, 241, 241); border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; hyphens: none; line-height: 1.5; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 1em; tab-size: 2; word-break: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , &amp;quot;source code pro&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;andale mono&amp;quot; , &amp;quot;ubuntu mono&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;package com.polymorphism.examples;

public class &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Adder&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt; {
 
 void &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;(double a, int b) {
  
  System.out.println(a+b); 
 }
   
 void &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;(int b, double a) {
  
  System.out.println(a+b);
  
   System.out.println(&quot;Sequence changed&quot;);
 }
   void &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;(int a, int b) {
   
    System.out.println(&quot;no arguments&quot;);
 }
   
   public static void &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;(String[] args) {
    
    &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Adder &lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;test = new &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Adder&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;();
      test.&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;(4,7);
      test.&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;(3.3, 7);
      test.&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: #0077aa;&quot;&gt;(8 , 4.9 );
   }
   
}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
There are some Difference between Method Overriding And Method Overloading&amp;nbsp;&lt;/h3&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;Difference Between Method Overloading and Method Overriding&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibD9iIhXRYUtGFrXD3icu2sCZksLSzXxEt56UhWCFRPWvZCER-5nJNJb1Rru8FdcWzF3Y7rlv7aIOKcZlT4uWbB6d-sAA1XPDw59bFVpoPOU68tHSfcTZ7xV1hqwWdVAkJmO2D2Yu80vA/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;728&quot; data-original-width=&quot;1251&quot; height=&quot;372&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibD9iIhXRYUtGFrXD3icu2sCZksLSzXxEt56UhWCFRPWvZCER-5nJNJb1Rru8FdcWzF3Y7rlv7aIOKcZlT4uWbB6d-sAA1XPDw59bFVpoPOU68tHSfcTZ7xV1hqwWdVAkJmO2D2Yu80vA/s640/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Example of Polymorphism&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm3tGqCIFomenxRtU97ZecyW_3x0Z4GG7gm8m-XIpFlV0XnUsgME7vmi3QbnqTDbARNhFjZDchk-ACNijyhtyS4nlJ5_E11tKHRt2C3w17zgWKDFj8xiQ3Fy8X52yq2cJ4yK_HiV8yXeQ/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;718&quot; data-original-width=&quot;1293&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm3tGqCIFomenxRtU97ZecyW_3x0Z4GG7gm8m-XIpFlV0XnUsgME7vmi3QbnqTDbARNhFjZDchk-ACNijyhtyS4nlJ5_E11tKHRt2C3w17zgWKDFj8xiQ3Fy8X52yq2cJ4yK_HiV8yXeQ/s640/2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;i&gt;&lt;b&gt;For Complete Explanation in Hindi Please visit My Youtube Channel&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;font-size: xx-large; text-align: center;&quot;&gt;&lt;i&gt;Complete Explanation on Method Overloading In Hindi&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/1ZxyglRcB_0/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/1ZxyglRcB_0?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;&lt;i&gt;Complete Explanation on Method Overriding In Hindi&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/irZWNJMQMsc/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/irZWNJMQMsc?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 44pt; font-style: italic; font-weight: bold;&quot;&gt;Thanks For Watching!!!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 44pt; font-style: italic; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 44pt; font-style: italic; font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/1770394097088981246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/blog-post_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/1770394097088981246'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/1770394097088981246'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/blog-post_29.html' title='Polymorphism in Java Method Overriding and Method OverLoading in Java'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkxWvMnUO_ddd8JbljXnfH50ybJWcAaMk3yJlqCeozxx9Q-cTN55oYfjSI_7UH6r89PEHOeRfj-k2tLUu1vXL5xs_ND3bqtClDJmRY8eUSJcN8VyHkIcn5agfTNUoXfEK6NmwEcSTGaRM/s72-c/1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-3163011268190987221</id><published>2020-07-28T23:53:00.004-07:00</published><updated>2020-09-08T00:55:24.139-07:00</updated><title type='text'>Learn Complete OOPS Concepts in one Project</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 32pt;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 32pt;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0u-L9NaDjIyZB0yLwfY6ZzPgpO6h4UanSKL7TQVIGxCTbH1A9xmZ5ekUU-mOYcKw4J_a8c_lVeca_zGtUzsu-qJqsADsMbFXEXv5dELzz14EFMML-AOZYY5qvae8Qla4E-QJvBnP3s9g/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;726&quot; data-original-width=&quot;1259&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0u-L9NaDjIyZB0yLwfY6ZzPgpO6h4UanSKL7TQVIGxCTbH1A9xmZ5ekUU-mOYcKw4J_a8c_lVeca_zGtUzsu-qJqsADsMbFXEXv5dELzz14EFMML-AOZYY5qvae8Qla4E-QJvBnP3s9g/s640/1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: 32pt;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&amp;nbsp;In this Page i will give a example Code for &lt;/span&gt;&lt;span style=&quot;font-size: 42.6667px;&quot;&gt;covering&lt;/span&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&amp;nbsp;all oops concepts in only one single project.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&amp;nbsp;Class Model&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRd4WclDu5YR2u_ewDazZV-acM_4qT98bdnZd5-ws94HuY2m7enZiR1px2E5EJZJ66nhtuwxvs_tbP09q8rUqbDIs5kt1lmTYpi3-FuOLnIT_y5WJuteFYf6viOGeo0gEog2-kHbT63sI/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;736&quot; data-original-width=&quot;1312&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRd4WclDu5YR2u_ewDazZV-acM_4qT98bdnZd5-ws94HuY2m7enZiR1px2E5EJZJ66nhtuwxvs_tbP09q8rUqbDIs5kt1lmTYpi3-FuOLnIT_y5WJuteFYf6viOGeo0gEog2-kHbT63sI/s640/2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Code Example&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 32pt;&quot;&gt;Explanation:-&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;i&gt;Suppose there is a Organization which has many departments and many&amp;nbsp; Employees Some Employees are Part of&amp;nbsp; Some Departments&amp;nbsp; So In this Code example What i have created is A Organization Class Which is having Many Employees so One Employee Class and Employee is a part of Departments so We have Created one Departments Class&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;Now Organization, Department and Employee has some task to be done so for that i have created Interfaces for each one where i Have Defined tasks to be done by theses classes.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;b&gt;1. Organization.java&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;In This Organization Class below I have used Encapsulation concept to create getters and setters same i have created one default constructor and some variable of all kind of datatypes. I have created private methods as getters and setters.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px; margin-bottom: 16px !important; margin-top: 16px !important; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;i&gt;package com.all.examples;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public class Organization {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Organization(){&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;//Encapsulation&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; private static String name = &quot;Learn With Reshu&quot;;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private int id;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private boolean status;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private char grade;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private int numberOfEmployee;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private double growth;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt; &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public int getId() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return id;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setId(int id) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.id = id;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public boolean isStatus() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return status;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setStatus(boolean status) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.status = status;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public char getGrade() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return grade;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setGrade(char grade) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.grade = grade;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public double getGrowth() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return growth;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setGrowth(double growth) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.growth = growth;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public int getNumberOfEmployee() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return numberOfEmployee;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setNumberOfEmployee(int numberOfEmployee) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.numberOfEmployee = numberOfEmployee;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public String getName() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return name;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;2.&amp;nbsp;&lt;i style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;Employee.java :-&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;In Employee class I have created one Parametrized Construction having&amp;nbsp;two parameters growthrate and name and created some private getters and setters with variables defined.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;2&lt;/span&gt;.&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px; margin-bottom: 16px !important; margin-top: 16px !important; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: medium;&quot;&gt;&lt;i&gt;package com.all.examples;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;public class Employee {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Employee(double growthrate, String name){&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;   &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; this.growthRate= growthrate;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; this.name = name;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; private String name;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private int id;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private boolean status;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private char grade;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private double salary;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private double growthRate;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public String getName() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return name;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setName(String name) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.name = name;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public int getId() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return id;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setId(int id) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.id = id;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public boolean isStatus() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return status;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setStatus(boolean status) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.status = status;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public char getGrade() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return grade;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setGrade(char grade) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.grade = grade;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public double getSalary() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return salary;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setSalary(double salary) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.salary = salary;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public double getGrowthRate() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return growthRate;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setGrowthRate(double growthRate) {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.growthRate = growthRate;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;i style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: x-large;&quot;&gt;&lt;b&gt;&amp;nbsp; 3. CallDepartments.java :- &lt;/b&gt;In this example Calldepartments.java class is used to show how can we extends abstract class Departments&amp;nbsp; and how can we override methods by this example i have explained about method overriding concepts&amp;nbsp; of Polymorphism in the method statusOfDeparment()&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;
&lt;i style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: x-large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px; margin-bottom: 16px !important; margin-top: 16px !important; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;i&gt;package com.all.examples;&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;public class CallDepartments extends Departments {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;@Override&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void statusOfDepartment() {&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CallDepartments cd = new CallDepartments();&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cd.setStatus(&quot;Active&quot;);&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;Department status is &quot; + cd.getStatus());&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;}&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;4 Departments.java :-&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;; font-size: large;&quot;&gt;&lt;i&gt;Departments class is a Abstract class by this i am showing how can we define abstract class&amp;nbsp; and abstract method&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;statusOfDepartment() which i have override in CallDeparments class.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;4.&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px; margin-bottom: 16px !important; margin-top: 16px !important; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;package com.all.examples;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;public abstract class Departments {&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private String status ;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public String getStatus() {&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return status;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void setStatus(String status) {&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.status = status;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public abstract void statusOfDepartment();&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;}&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;5.&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;IOrganization.java,&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;IDepartments and&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;IEmployee&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&amp;nbsp;:-&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;By this Interface i have defined some static final variables and abstract methods and public methods&amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;IDepartments&amp;nbsp; interface is extending&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;IEmployee, IOrganization Interfaces so by this way i have shown how can we extends Interfaces.&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;5.&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px; margin-bottom: 16px !important; margin-top: 16px !important; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;package com.all.examples;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;import java.util.List;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;public interface IOrganization {&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;public float revanuPerYear(List&lt;employee&gt;&amp;nbsp;employees);&lt;/employee&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;public char gradeOfOrganization(Organization organization);&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public boolean statusOfCompany(Organization organization);&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;}&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;6.&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px; margin-bottom: 16px !important; margin-top: 16px !important; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;package com.all.examples;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;public interface IEmployee {&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static final char gradeAEmployee = &#39;A&#39;;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static final char gradeBEmployee = &#39;B&#39;;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static final char gradeCEmployee = &#39;C&#39;;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;public abstract double salaryPerMonth(Employee employee);&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public boolean jobStatus(int id);&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public char GradeOfEmployee(double Salary);&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;}&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;7.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; font-family: Consolas, &amp;quot;courier new&amp;quot;; font-size: 15px; margin-bottom: 16px !important; margin-top: 16px !important; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;b&gt;&lt;i&gt;package com.all.examples;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;public interface IDepartments extends IEmployee, IOrganization {&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static final double gradeAEmployeeSalary = 2000;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static final double gradeBEmployeeSalary = 1000;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static final double gradeCEmployeeSalary = 500;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt; &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public String nameOfDepartment(char grade);&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;}&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;6. Main.java.-&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Main.java class extends Departments Interface so bedefault it should implements the methods define in Departments Interface and because IDepartments Interface has extends IEmployee and IOrganization Interface so Main class needs to implements Methods define in IOrganization and IEmployee class as well.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;8.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;w3-code notranslate htmlHigh&quot; style=&quot;background-color: white; border-left: 4px solid rgb(76, 175, 80); box-sizing: inherit; margin-bottom: 16px !important; margin-top: 16px !important; overflow-wrap: break-word; padding: 8px 12px; width: auto;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;package com.all.examples;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;import java.util.ArrayList;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;import java.util.List;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;public class Main implements IDepartments{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static double bonus = 8.3;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static void main(String[] args) {&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Organization organization = new Organization();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Main m = new Main();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Employee em = new Employee(70.5, &quot;Reshu&quot;);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Employee em1 = new Employee(60.5, &quot;Ria&quot;);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Employee em2 = new Employee(80.5, &quot;Jiya&quot;);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;List&lt;employee&gt;&amp;nbsp;employees= new ArrayList&lt;employee&gt;();&lt;/employee&gt;&lt;/employee&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;employees.add(em);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;employees.add(em1);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;employees.add(em2);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(Employee employee : employees) {&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if(employee.getGrowthRate()==80.5) {&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;employee.setGrade(IEmployee.gradeAEmployee);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;employee.setId(1);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}else if(employee.getGrowthRate()==70.5) {&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;employee.setGrade(IEmployee.gradeBEmployee);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;employee.setId(1);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}else if(employee.getGrowthRate()==60.5){&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;employee.setGrade(IEmployee.gradeCEmployee);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;employee.setId(3);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;double salary =&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;m.salaryPerMonth(employee);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; boolean status=&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;m.jobStatus(employee.getId());&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;m.GradeOfEmployee(salary);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(employee.getName()+ &quot; of &quot;+ m.nameOfDepartment(employee.getGrade()) + &quot;\n&quot;+&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&quot; has grade &quot;+employee.getGrade() + &quot;\n&quot;+ &quot; has Id &quot;+ employee.getId() + &quot;\n&quot;+ &quot; of a Organization &quot; + organization.getName() +&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&quot;\n&quot;+ &quot; has salary per month &quot;+ salary + &quot;\n&quot;+ &quot; and job status &quot; + status );&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;\n&quot;);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;organization.setNumberOfEmployee(employees.size());&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;Grade of a organization is &quot; +&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;m.gradeOfOrganization(organization)+ &quot; and &quot; + &quot; revanue is &quot; + m.revanuPerYear(employees));&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;\n&quot;);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;m.statusOfCompany(organization) == true) {&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;Organization is Active&quot;);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else {&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;System.out.println(&quot;Organization is closed&quot;);&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;CallDepartments cd = new CallDepartments();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(&quot;\n&quot;);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;cd.statusOfDepartment();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;@Override&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public&amp;nbsp; double salaryPerMonth(Employee employee) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// TODO Auto-generated method stub&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(employee.getGrade()==IEmployee.gradeAEmployee) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp;employee.setSalary(IDepartments.gradeAEmployeeSalary * bonus);&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else if(employee.getGrade()==IEmployee.gradeBEmployee) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;employee.setSalary(IDepartments.gradeBEmployeeSalary * bonus);&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;employee.setSalary(IDepartments.gradeCEmployeeSalary * bonus);&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return employee.getSalary();&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;@Override&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public boolean jobStatus(int id) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// TODO Auto-generated method stub&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;boolean status;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(id==1) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;status = true;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else{&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;status = false;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return status;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;@Override&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public char GradeOfEmployee(double salary) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// TODO Auto-generated method stub&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;char grade;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(salary == (20000 * bonus)) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;grade=IEmployee.gradeAEmployee;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else if (salary == (10000 * bonus)) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;grade=IEmployee.gradeBEmployee;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;grade = IEmployee.gradeCEmployee;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return grade;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;@Override&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public float revanuPerYear(List&lt;employee&gt; employees) {&lt;/employee&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// TODO Auto-generated method stub&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int numberofemployees = 0;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;float revanue=0;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for(int i =0; i&amp;lt;=employees.size(); i++) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;numberofemployees++;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(numberofemployees&amp;gt;2) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;revanue= 200000f;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return revanue;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;@Override&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public char gradeOfOrganization(Organization organization) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// TODO Auto-generated method stub&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(organization.getNumberOfEmployee()&amp;lt; 2) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;organization.setGrade(IEmployee.gradeBEmployee);&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return IEmployee.gradeBEmployee ;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;organization.setGrade(IEmployee.gradeAEmployee);&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return IEmployee.gradeAEmployee;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;@Override&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public boolean statusOfCompany(Organization organization) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// TODO Auto-generated method stub&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(organization.getGrade()==IEmployee.gradeAEmployee) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;organization.setStatus(true);&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return true;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;organization.setStatus(false);&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return false;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;@Override&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public String nameOfDepartment(char grade) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// TODO Auto-generated method stub&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(grade== IEmployee.gradeAEmployee) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp; &amp;nbsp; return &quot;Sales Department&quot;;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else if(grade== IEmployee.gradeBEmployee) {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return &quot;HR Department&quot;;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}else {&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return &quot;forth class employee&quot;;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg?sub_confirmation=1&quot; target=&quot;_blank&quot;&gt;So I hope you understand by this Code, how can we use different&amp;nbsp; OOps concepts in Class and how can we implements&amp;nbsp;those i different scenarios. If You want complete explanation in Hindi Please visit my Youtube Channel&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;For Complete explanation&amp;nbsp;in Hindi please visit my Youtube Channel&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/xAxy588uNqY/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/xAxy588uNqY?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;i&gt;Thanks For Watching!!!!&lt;/i&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;Encapsulation in java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/3163011268190987221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/3163011268190987221'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/3163011268190987221'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html' title='Learn Complete OOPS Concepts in one Project'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0u-L9NaDjIyZB0yLwfY6ZzPgpO6h4UanSKL7TQVIGxCTbH1A9xmZ5ekUU-mOYcKw4J_a8c_lVeca_zGtUzsu-qJqsADsMbFXEXv5dELzz14EFMML-AOZYY5qvae8Qla4E-QJvBnP3s9g/s72-c/1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-7118611507718550295</id><published>2020-07-28T23:41:00.003-07:00</published><updated>2020-09-08T00:55:38.879-07:00</updated><title type='text'>Variables in Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;clear: both; text-align: left;&quot;&gt;
Variables in Java&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKaX8egAjb3AUAxO59yb_9LQe1K_5Qtzi5KuHSFQE2cIo23bC1mj1VZzdvrnpRXGa0cWX4_-syXwsInz5N6wQz-xw7GuQ3PN062gkt9ms7uYiQQFbwLBKbq5Z6117QfeaOmbcZn7RaRxw/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;836&quot; data-original-width=&quot;1600&quot; height=&quot;334&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKaX8egAjb3AUAxO59yb_9LQe1K_5Qtzi5KuHSFQE2cIo23bC1mj1VZzdvrnpRXGa0cWX4_-syXwsInz5N6wQz-xw7GuQ3PN062gkt9ms7uYiQQFbwLBKbq5Z6117QfeaOmbcZn7RaRxw/s640/1.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;Types of Variables In Java&lt;/i&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwIf3K1fSYfwoY90mBKrt5-tvkx6sOAm29J5KJ0qusKaS9n94KJurA1kbRfgqGxGrhnPDlxrTz9xbtAAkYNOXQ0BdqccbDvNc7CNMu98zAnAmHTYCvyri3r25_AmDNfe4DzVlAZFQ073o/s1600/2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;621&quot; data-original-width=&quot;1001&quot; height=&quot;396&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwIf3K1fSYfwoY90mBKrt5-tvkx6sOAm29J5KJ0qusKaS9n94KJurA1kbRfgqGxGrhnPDlxrTz9xbtAAkYNOXQ0BdqccbDvNc7CNMu98zAnAmHTYCvyri3r25_AmDNfe4DzVlAZFQ073o/s640/2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;clear: both; text-align: center;&quot;&gt;
How to initialize a variable?&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;
In this way, a name can only be given to a memory location. It can be assigned values in two ways:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; line-height: 1.71429; list-style-image: initial; list-style-position: outside; margin: 0px 0px 24px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;Variable Initialization : value assign like 20 in this case&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;Assigning value by taking input&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;strong style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;datatype&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;: Type of data that can be stored in this variable.&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;variable_name&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;: Name given to the variable.&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;value&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;: It is the initial value stored in the variable. for example 20 in this case.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI3qTR3OGXIX-P6EAUCDgwJjtMGtVre6hqpa1yCDYuvlELL5jydi6L8mNmBUpS8L_FzvuLA1VOj47V5eoVKfNp8w7R2kiXkZeydjw-MY6ghZHxkXtsxBa9Kf8Z15z0Mg56hpgS3PYMNWc/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;651&quot; data-original-width=&quot;1040&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI3qTR3OGXIX-P6EAUCDgwJjtMGtVre6hqpa1yCDYuvlELL5jydi6L8mNmBUpS8L_FzvuLA1VOj47V5eoVKfNp8w7R2kiXkZeydjw-MY6ghZHxkXtsxBa9Kf8Z15z0Mg56hpgS3PYMNWc/s640/3.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
How to declare a variable?&lt;/h2&gt;
&lt;strong style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Type&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;: Type of data that can be stored in this variable.&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Variable Name&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.84); font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;: Name given to the variable.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3Rek6mE9f7FM9Xa1OWta1n9x9piB6sDOopBu3uc91gWymxFrrtGM0jSGJoFiEIxfIoZSgAXsqlGr_6y6FuHRG_pGghUonCui4cMkEP7SlzW4HzoIPtsW7ADdEpgoVLY4XS-Il1w71gm8/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;626&quot; data-original-width=&quot;1049&quot; height=&quot;380&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3Rek6mE9f7FM9Xa1OWta1n9x9piB6sDOopBu3uc91gWymxFrrtGM0jSGJoFiEIxfIoZSgAXsqlGr_6y6FuHRG_pGghUonCui4cMkEP7SlzW4HzoIPtsW7ADdEpgoVLY4XS-Il1w71gm8/s640/4.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; line-height: 1.71429; margin-bottom: 10px; padding: 0px; vertical-align: baseline;&quot;&gt;
There are three types of variables in Java:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: rgba(0, 0, 0, 0.84); font-family: Roboto, sans-serif; font-size: 16px; line-height: 1.71429; list-style-image: initial; list-style-position: outside; margin: 0px 0px 24px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;Local Variables&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;Instance Variables&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; line-height: 1.58; margin: 0px 0px 0px 36px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;Static Variables&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;Local Variables&lt;/b&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNfg1kaxMPEqXxD-n54TFBCeV7i10OZE-GndW0jB3EEOHS7SLKoiXMb1SqF85LX2QaP9xRWtu4DFuzMBiWOOwvobpjvE5kA8qb3efXAkuKKREF5xTNVv-gbPfT02DJl_SjSv1QMbmS1uA/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;635&quot; data-original-width=&quot;1057&quot; height=&quot;384&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNfg1kaxMPEqXxD-n54TFBCeV7i10OZE-GndW0jB3EEOHS7SLKoiXMb1SqF85LX2QaP9xRWtu4DFuzMBiWOOwvobpjvE5kA8qb3efXAkuKKREF5xTNVv-gbPfT02DJl_SjSv1QMbmS1uA/s640/5.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;Static Variables or Class Variables&lt;/i&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPbHqwPMs7jdi3xziOZF0bD9m1nTU2G659mZQDgXI2Td2Dq12kATF9j_cNR47jEeVz_eFXqAY1FDf_T6BSaC9CS92pnUxuvhCrOvNFVndSsS6fzRGyVV-dgzZuve_LvqMaJuJ3GSMO0l4/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;654&quot; data-original-width=&quot;1058&quot; height=&quot;394&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPbHqwPMs7jdi3xziOZF0bD9m1nTU2G659mZQDgXI2Td2Dq12kATF9j_cNR47jEeVz_eFXqAY1FDf_T6BSaC9CS92pnUxuvhCrOvNFVndSsS6fzRGyVV-dgzZuve_LvqMaJuJ3GSMO0l4/s640/6.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;i&gt;Instance Variable&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg27ZrafvU2QUFJ2z3p6DsN1DQFdhy8cjZHcGWVJsR-0AY2eYu5GY0OZXezWn54xVObhesBJCdNMQz-JQQyoUvpS1fshx_Gk-o3EddO6rl3mNnFkIfN7iC1uZsRkL_X0ykJf7HrkqGeqQQ/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;657&quot; data-original-width=&quot;1108&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg27ZrafvU2QUFJ2z3p6DsN1DQFdhy8cjZHcGWVJsR-0AY2eYu5GY0OZXezWn54xVObhesBJCdNMQz-JQQyoUvpS1fshx_Gk-o3EddO6rl3mNnFkIfN7iC1uZsRkL_X0ykJf7HrkqGeqQQ/s640/7.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Please visit My Youtube Channel to have complete tutorial on Variables and other OOPs Concepts in Java in Hindi&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/LdkzZVYhUEk/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/LdkzZVYhUEk?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Thanks For Watching!!!!&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;b style=&quot;background-color: white; color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;Loops in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-align: justify; text-indent: -18pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;background-color: white; color: #838383; font-family: roboto, sans-serif; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/7118611507718550295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7118611507718550295'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7118611507718550295'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html' title='Variables in Java'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKaX8egAjb3AUAxO59yb_9LQe1K_5Qtzi5KuHSFQE2cIo23bC1mj1VZzdvrnpRXGa0cWX4_-syXwsInz5N6wQz-xw7GuQ3PN062gkt9ms7uYiQQFbwLBKbq5Z6117QfeaOmbcZn7RaRxw/s72-c/1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-1497324326326962847</id><published>2020-07-17T00:05:00.006-07:00</published><updated>2020-09-08T00:56:10.753-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Abstraction in Java"/><category scheme="http://www.blogger.com/atom/ns#" term="build"/><category scheme="http://www.blogger.com/atom/ns#" term="clean"/><category scheme="http://www.blogger.com/atom/ns#" term="deploy"/><category scheme="http://www.blogger.com/atom/ns#" term="Encapsulation in java"/><category scheme="http://www.blogger.com/atom/ns#" term="Exception handling in java"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="Intelij"/><category scheme="http://www.blogger.com/atom/ns#" term="Interfaces in Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Primitive and Non Primitive Data types"/><category scheme="http://www.blogger.com/atom/ns#" term="Throw Keyword in java"/><category scheme="http://www.blogger.com/atom/ns#" term="What is Java"/><title type='text'>What is Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;i&gt;What is Java&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;b&gt;In this post i will going to explain about what is java in general. I have explained Java features OOps concepts, and some basic knowledge&amp;nbsp;of Java code.&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;b&gt;Please feel free to Like Share and Comments, You can always Subscribe my YouTube Channel and this Page as well in free to get more interesting&amp;nbsp;videos...&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/U3PEWAIq7K8/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/U3PEWAIq7K8?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;Thanks for watching!!!!!&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;i&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;b style=&quot;background-color: white; color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background-color: white; color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-align: justify; text-indent: -18pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;background-color: white; color: #838383; font-family: roboto, sans-serif; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/1497324326326962847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/1497324326326962847'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/1497324326326962847'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html' title='What is Java'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/U3PEWAIq7K8/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-4293623280969468295</id><published>2020-07-16T11:26:00.005-07:00</published><updated>2020-09-08T00:56:28.724-07:00</updated><title type='text'> Hello World Program in Java in Hindi</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;Hello World Program in Java in Hindi&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp;I have explain Hello world program in java, I&amp;nbsp; have explain example code in hindi&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;b&gt;&amp;nbsp;so that people&amp;nbsp; &amp;nbsp; &amp;nbsp;who speaks hindi can understand&amp;nbsp; easily. Please feel free to like share and subscribe&amp;nbsp;my channel&amp;nbsp; &amp;nbsp; &amp;nbsp;on youtube so that you can get notification first when i upload new videos..&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/Ip9eKRgSz7Q/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/Ip9eKRgSz7Q?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;Thanks for Watching!!!!!&lt;/i&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;What is Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/4293623280969468295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4293623280969468295'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/4293623280969468295'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html' title=' Hello World Program in Java in Hindi'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/Ip9eKRgSz7Q/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-6168256025549547335</id><published>2020-07-16T11:20:00.003-07:00</published><updated>2020-09-08T00:56:45.282-07:00</updated><title type='text'>Install Java on Computer from beginning!...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0cm;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-size: 13.5pt;&quot;&gt;Install Java on Computer from beginning!...&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-size: 13.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-size: 10pt;&quot;&gt;First of all, you need to know which Operating system you need to install JAVA. There are 2 types of operating system I am discussing here given below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0cm 36pt; text-indent: -18pt;&quot;&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
1)&amp;nbsp;&amp;nbsp;&amp;nbsp; Windows&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
2)&amp;nbsp;&amp;nbsp;&amp;nbsp; MAC&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;-webkit-text-stroke-width: 0px; font-variant-caps: normal; font-variant-ligatures: normal; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Windows: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Downloading and installing Java in windows is very easy and its does not costs anything. There are many ways to download Java for Windows&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Online download: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;By this way you can use many online links or oracle website for downloading jdk of any version which you would like to download to your local system. But you need to have&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Administrative permission to install Java on Microsoft Windows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;download&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Download and Install&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-style: inherit; font-weight: inherit;&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;go to this link&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-style: inherit; font-weight: inherit;&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;a href=&quot;https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html&quot;&gt;https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-style: inherit; font-weight: inherit;&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-style: inherit; font-weight: inherit;&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;click on the jdk version you need to install.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-style: inherit; font-weight: inherit;&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;The File Download dialog box appears prompting you to run or save the download file&amp;nbsp;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;br style=&quot;mso-special-character: line-break;&quot; /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;To run the installer, click&amp;nbsp;Run.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;To save the file for later installation, click&amp;nbsp;Save As.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;br /&gt;Choose the folder location and save the file to your local system.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;br /&gt;Note: Save the file to a known location on your computer, for example, to your desktop.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;br /&gt;Double-click on the saved file to start the installation process.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; font-variant-caps: normal; font-variant-ligatures: normal; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; widows: 2; word-spacing: 0px;&quot;&gt;The installation process starts. Click the&amp;nbsp;Install&amp;nbsp;button to accept the license terms and to continue with the installation.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG-_a8QdW64Ds30TqLY1IEJwUgGJVET3e-g5nw5jKsB84bAVDqwnGGZgriGQjLC1O5bwBdx-ussnIY4eQyShH6kCvmge7aFUrhtQJugtAU54LakogRHspZypluYD4vjSWIriDAUzvWJBo/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;306&quot; data-original-width=&quot;405&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG-_a8QdW64Ds30TqLY1IEJwUgGJVET3e-g5nw5jKsB84bAVDqwnGGZgriGQjLC1O5bwBdx-ussnIY4eQyShH6kCvmge7aFUrhtQJugtAU54LakogRHspZypluYD4vjSWIriDAUzvWJBo/s320/1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;float: none;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;A few brief dialogs confirm the last steps of the installation process; click&amp;nbsp;Close&amp;nbsp;on the last dialog. This will complete Java installation process.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiC3WJvoQPFJMNgPDQXOIazxIaIGvviP2KJjNhzyZN2YxBwmGEvWAzJX4-v7RCIDCTc0-AeqBelw-i8brrzB5cKD0BaX9-yolCReO_RWK-nvsMQ5cy1rkbHqyaML-hi5iWQyiAYlZO2NI/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;306&quot; data-original-width=&quot;405&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiC3WJvoQPFJMNgPDQXOIazxIaIGvviP2KJjNhzyZN2YxBwmGEvWAzJX4-v7RCIDCTc0-AeqBelw-i8brrzB5cKD0BaX9-yolCReO_RWK-nvsMQ5cy1rkbHqyaML-hi5iWQyiAYlZO2NI/s320/2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;By this way you will going to have jdk install In your local system. But you need to fix many things before using java in your system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;1.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;Create JAVA_HOME environment variable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;2.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;Add path variable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Lets learn how to create JAVA_HOME variable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;First type env variable in search tab in start menu. You will find the environment variable window to open.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Click on the window and it will look like this see picture&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7RdCI3u0mCYtnKrfKTRF4OPR0KkWckdwvdwc32cn-ZjNr-Rx4p-IOOBhkkqTDVJOjk6gMo1N6-LshiBiLlxmKC4v_snBz_UR4t15n9p2Qyf_t42ZNPHgskhNWGUsR1q9BM3NoioRUoQI/s1600/Env.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;478&quot; data-original-width=&quot;418&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7RdCI3u0mCYtnKrfKTRF4OPR0KkWckdwvdwc32cn-ZjNr-Rx4p-IOOBhkkqTDVJOjk6gMo1N6-LshiBiLlxmKC4v_snBz_UR4t15n9p2Qyf_t42ZNPHgskhNWGUsR1q9BM3NoioRUoQI/s320/Env.PNG&quot; width=&quot;279&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Then click on Environment Variable button the a new window will open like below image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi30ST6sXSvqHsh6sE1YVTGzGcLx343ujLPUyV-ivt-HanM2a95m5TUI6NFUTkTiNtmHqnC5X7v9AInWLfdXNR81MRcDDtHX7meQpr8GOQp8qMa6_mpvv1qvmJQrSJfQiKB_TQcrq5cV8w/s1600/java_home.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;482&quot; data-original-width=&quot;446&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi30ST6sXSvqHsh6sE1YVTGzGcLx343ujLPUyV-ivt-HanM2a95m5TUI6NFUTkTiNtmHqnC5X7v9AInWLfdXNR81MRcDDtHX7meQpr8GOQp8qMa6_mpvv1qvmJQrSJfQiKB_TQcrq5cV8w/s320/java_home.PNG&quot; width=&quot;296&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Click on new button and create JAVA_HOME variable like shown in the picture by entering these info&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Given bellow.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvM6NEIeRANfVckD85bSzVnDPazD8E6U1AAp4gt6Fy2Rr3Oq8nUtMV1LQFCYysQ_gxsGNokL3zJpVpInHp-8UQqFlQKVFZBP4_Xp7FUkzDJXFpMcHFqK93qm4jsoFFhsJg8xXKH-zm0Ik/s1600/edit_javahome_path.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;482&quot; data-original-width=&quot;688&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvM6NEIeRANfVckD85bSzVnDPazD8E6U1AAp4gt6Fy2Rr3Oq8nUtMV1LQFCYysQ_gxsGNokL3zJpVpInHp-8UQqFlQKVFZBP4_Xp7FUkzDJXFpMcHFqK93qm4jsoFFhsJg8xXKH-zm0Ik/s320/edit_javahome_path.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br clear=&quot;ALL&quot; /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Please write variable name as JAVA_HOME and variable value as Path to jdk folder and then click ok&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;By this way you will create JAVA_HOME variable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Next step is to create path variable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuaQa0PStkBR4aIsvYGif28HKpuI1470-rm8x5QbIaQSnCATn_G7p_DDQpkpUukSRf7RWxw0ZHvJkvu8VqI0Cgg3tDWmo6IYFejHEFMCl_BGKJ77R5Iq85RT7JW8BgZ5YQZPp2BQusj8A/s1600/editpathvariable.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;604&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuaQa0PStkBR4aIsvYGif28HKpuI1470-rm8x5QbIaQSnCATn_G7p_DDQpkpUukSRf7RWxw0ZHvJkvu8VqI0Cgg3tDWmo6IYFejHEFMCl_BGKJ77R5Iq85RT7JW8BgZ5YQZPp2BQusj8A/s320/editpathvariable.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Ckick on path variable in the list and click edit and add JAVA_HOME AS shown in picture and click ok.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;By this way you java will be install in the system properly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;For checking it please open command prompt and run command&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; line-height: 17.12px;&quot;&gt;java -version&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&amp;nbsp;and you will get the java version installed in your system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;And for confirmation&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;b&gt;Mac:-&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Java can be installed on from Mac versions 10.7.3 or later. A 64-bit browser for example Safari is required to run Oracle Java on Mac.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Install Java on Mac&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;Download the&amp;nbsp;jre from&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;a href=&quot;https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html&quot;&gt;https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;Review and agree to the terms of the license agreement before downloading the file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;mso-no-proof: yes;&quot;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;The Install Wizard displays the Welcome to Java installation screen. Click&amp;nbsp;Next&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;mso-no-proof: yes;&quot;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;mso-no-proof: yes;&quot;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9RcqZIF5r2eiSWao0xly7tpgfNxIJy-fP4gXOGPVz-XIaYedj00q-1VisiBtBMWiwDF6sWT0xKDXwNBO9XHAJ4hqfm1hUArCMX6qx-rIb-9RYoBcm310EmGrF6FMdXqYvTMnxONrvZSI/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;290&quot; data-original-width=&quot;403&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9RcqZIF5r2eiSWao0xly7tpgfNxIJy-fP4gXOGPVz-XIaYedj00q-1VisiBtBMWiwDF6sWT0xKDXwNBO9XHAJ4hqfm1hUArCMX6qx-rIb-9RYoBcm310EmGrF6FMdXqYvTMnxONrvZSI/s320/3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Double-click the .pkg file to launch it&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Double-click on the&amp;nbsp;package icon&amp;nbsp;to launch install Wizard&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTzGs_Hr1usvSN38MPyVObUU6JvqiFe_nm3nHjAR4tJAe2YlrmDuFlsqeDv15rApi6P3UnkY7EfmkjNIJJMP-qWuq9Wl21OVwSo9BbCjaS_TWLc_DCeYxWXGk_t3waempRk8Y-WtUpFRU/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;328&quot; data-original-width=&quot;400&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTzGs_Hr1usvSN38MPyVObUU6JvqiFe_nm3nHjAR4tJAe2YlrmDuFlsqeDv15rApi6P3UnkY7EfmkjNIJJMP-qWuq9Wl21OVwSo9BbCjaS_TWLc_DCeYxWXGk_t3waempRk8Y-WtUpFRU/s320/4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
After the installation has completed, a confirmation screen appears. Click&amp;nbsp;Close&amp;nbsp;to finish the installation process.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaIYKFSKrBpcDqGihaJ2WWGHfgpKQYhkiJNpHiAUNczL_u8tSwAYHXcNJahdLEvKybkuVlVI-pLofqCvgV1n0u4ojIwbXjWgVt2vQwwSdcXAeytk1ZbSY8FEtC1n2gBTjv2OOATZZZJQ0/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;328&quot; data-original-width=&quot;400&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaIYKFSKrBpcDqGihaJ2WWGHfgpKQYhkiJNpHiAUNczL_u8tSwAYHXcNJahdLEvKybkuVlVI-pLofqCvgV1n0u4ojIwbXjWgVt2vQwwSdcXAeytk1ZbSY8FEtC1n2gBTjv2OOATZZZJQ0/s320/5.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Set JAVA_HOME environment variable on Mac OS X&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Here, we show you how to set $JAVA_HOME environment variable on latest Mac OSX.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Mac OSX 10.5 or later&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;In Mac OSX 10.5 or later, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home, just export $JAVA_HOME in file ~/.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;bash_profile or ~/.profile.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$ vim .bash_profile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;export JAVA_HOME=$(/usr/libexec/java_home)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$ source .bash_profile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;$ echo $JAVA_HOME&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;And to confirm if java installed in Mac or not run this command&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;/usr/libexec/java_home -V&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Matching Java Virtual Machines (3):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; 1.7.0_05, x86_64:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Java SE 7&quot;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;b&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;i&gt;How to Install Java on You tube&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/Mk_aT8e3Aew/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/Mk_aT8e3Aew?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;Hello World Program in Java in Hindi&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Types of Inheritance and Constructors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red;&quot;&gt;How to use static keyword in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/6168256025549547335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/6168256025549547335'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/6168256025549547335'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html' title='Install Java on Computer from beginning!...'/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG-_a8QdW64Ds30TqLY1IEJwUgGJVET3e-g5nw5jKsB84bAVDqwnGGZgriGQjLC1O5bwBdx-ussnIY4eQyShH6kCvmge7aFUrhtQJugtAU54LakogRHspZypluYD4vjSWIriDAUzvWJBo/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6045246199335379558.post-7160655843642062673</id><published>2020-07-16T08:10:00.001-07:00</published><updated>2020-09-08T00:57:23.068-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Abstraction in Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Encapsulation in java"/><category scheme="http://www.blogger.com/atom/ns#" term="Exception handling in java"/><category scheme="http://www.blogger.com/atom/ns#" term="How to use static keyword in Java"/><title type='text'>How to use static keyword in Java </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;i&gt;How to use static modifier in Java&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqtQHyAtJaZAvJlaxDZNz5BgtPQLrPis2js7n8GBAn5o10yeDXdlh-9AvpzE59rOmCQd67ObLTsNCyXVMOYQbCCtifpqfRf5RL9bZ3b5eUPXLWVg-grpQA9cB3lh11whwatL3CIgglMmI/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;873&quot; data-original-width=&quot;1600&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqtQHyAtJaZAvJlaxDZNz5BgtPQLrPis2js7n8GBAn5o10yeDXdlh-9AvpzE59rOmCQd67ObLTsNCyXVMOYQbCCtifpqfRf5RL9bZ3b5eUPXLWVg-grpQA9cB3lh11whwatL3CIgglMmI/s640/1.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 6.0pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;There
are some non-access modifiers to achieve many other functionalities in java.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 6.0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;The&amp;nbsp;&lt;i&gt;static&lt;/i&gt;&amp;nbsp;modifier
for creating class methods and variables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 6.0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;The&amp;nbsp;&lt;i&gt;final&lt;/i&gt;&amp;nbsp;modifier
for finalizing the implementations of classes, methods, and variables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 6.0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;The&amp;nbsp;&lt;i&gt;abstract&lt;/i&gt;&amp;nbsp;modifier
for creating abstract classes and methods.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 6.0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;The&amp;nbsp;&lt;i&gt;synchronized&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i&gt;volatile&lt;/i&gt;&amp;nbsp;modifiers,
which are used for threads.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 6.0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFuJzZYU9FCSMYwA0_kqffN9dN8Um_vDExXha2M1VOD8wWyODOo9bVrqR-28-unmhwx6DCF9Qb1kd49Egl2Ny4R9vs9SgTkRJGE0qT9h8kUymE8dOGxttxBRWAYXJW1n3frMuQDk3I-fU/s1600/AccessAndNonAccessModifiers.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;261&quot; data-original-width=&quot;658&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFuJzZYU9FCSMYwA0_kqffN9dN8Um_vDExXha2M1VOD8wWyODOo9bVrqR-28-unmhwx6DCF9Qb1kd49Egl2Ny4R9vs9SgTkRJGE0qT9h8kUymE8dOGxttxBRWAYXJW1n3frMuQDk3I-fU/s640/AccessAndNonAccessModifiers.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 6.0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 6.0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;The Static Modifier&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/h2&gt;
&lt;h3 style=&quot;line-height: 1.75rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Static Variables&lt;/span&gt;&lt;span style=&quot;color: rgba(0 , 0 , 0 , 0.870588235294118);&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div style=&quot;margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;The&amp;nbsp;static&amp;nbsp;keyword
is used to create variables that will exist independently of any instances
created for the class. Only one copy of the static variable exists regardless
of the number of instances of the class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;Static
variables are also known as class variables. Local variables cannot be declared
static.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;line-height: 1.75rem; margin-bottom: 0.625rem; margin-top: 1.25rem;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Static Methods&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=&quot;color: rgba(0, 0, 0, 0.87);&quot;&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: windowtext; font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif; mso-ansi-language: EN-US; mso-bidi-font-family: Aharoni;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div style=&quot;margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;The static
keyword is used to create methods that will exist independently of any
instances created for the class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;Static
methods do not use any instance variables of any object of the class they are
defined in. Static methods take all the data from parameters and compute
something from those parameters, with no reference to variables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;Class
variables and methods can be accessed using the class name followed by a dot
and the name of the variable or method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Example&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 7.2pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 6.0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt; text-justify: inter-ideograph;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;

















&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 6pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;abadi extra light&amp;quot; , sans-serif;&quot;&gt;The static
modifier is used to create class methods and variables, as in the following
example&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Class Employee.java&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;package com.statics.example;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;public class Employee {&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; String name ;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; static&amp;nbsp; String company = &quot;Learn With Reshu&quot;;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; int id;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public Employee(String name,int id){&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;  &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.name= name;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;this.id= id;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;void display() {&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;  &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.out.println(this.name+&quot;&amp;nbsp; &quot;+company+&quot; &quot;+this.id);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;  &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;in the above example there is a class name Employee having static variable&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: orange;&quot;&gt;company&lt;/span&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Class Test.java&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;package com.statics.example;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;public class Test {&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public static void main(String[] args) {&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Employee em = new Employee(&quot;reshu&quot;,&amp;nbsp; 001);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Employee em1 = new Employee(&quot;reshu1&quot;,&amp;nbsp; 002);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Employee em2 = new Employee(&quot;reshu2&quot;,&amp;nbsp; 003);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Employee em3 = new Employee(&quot;reshu3&quot;,&amp;nbsp; 004);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;em.display();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;em1.display();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;em2.display();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;em3.display();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;When we make a object of Employee class in Test Class and call display method so we do not need to enter value of company variable as its static value is define in once Employee class so it can use in Test class directly. this is a advantage of static modifier that we do not need to assign values many times once it has been assign and that can be call directly by Class reference.&lt;/span&gt;&amp;nbsp;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLf7Ohl58PlCq3wQQs2EyvmIOPBRxP4diW&quot; target=&quot;_blank&quot;&gt;I have explain here in this video how to use static keyword in java with very nice example code.&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCU75WZyEVEXLY5npfY6w2vg&quot; target=&quot;_blank&quot;&gt;You can like share and subscribe my youchannel as well and get notification when i upload new videos..&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/qgKNfHphhis/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/qgKNfHphhis?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Thanks for Watching !!!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;background: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;calibri light&amp;quot;;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b style=&quot;color: #838383; font-family: roboto, sans-serif; font-size: 30px; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 24pt;&quot;&gt;Recommended Posts:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;i style=&quot;background-color: white; color: red; font-family: Roboto, sans-serif; font-size: x-large;&quot;&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Errors V/s Exceptions In Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_65.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Built-in Exceptions in Java with examples&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_4.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Using throw, catch and instanceof to handle Exceptions in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overriding in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_29.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Overloading in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_7.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Interfaces in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_39.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Loops in Java&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/variables-in-java-types-of-variables-in.html&quot;&gt;Variables in Java&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #838383; font-family: roboto, sans-serif;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #3e3f3c; font-family: Lato, sans-serif; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; margin: 0px;&quot;&gt;
&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/08/introduction-to-advanced-java.html&quot; style=&quot;background: transparent; color: #3e3f3c; cursor: pointer; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.33333; outline: 0px; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Advanced Java Programming&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h2 style=&quot;background-color: white; border: 0px; clear: both; line-height: 1.6; margin: 5px 0px; padding: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin: 0cm 0cm 3pt; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt; text-indent: -18pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; text-indent: -18pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt; text-indent: -18pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_74.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Abstraction in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post_42.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Encapsulation in java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/alloops-concepts-in-one-project-this.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Learn Complete OOPS Concepts in one Project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/primitive-and-non-primitive-data-types.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Primitive and Non Primitive Data types (Difference between primitive and non-primitive data types)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/what-is-java-in-this-post-i-will-going.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;What is Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/hello-world-program-in-java-in-hindi.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World Program in Java in Hindi&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/install-java-on-computer-from-beginning.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Install Java on Computer from beginning&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;&lt;u&gt;·&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/blog-post.html&quot;&gt;Types of Inheritance and Constructors&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/07/complete-guide-for-if-else-statement.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Complete Guide for if else Statement&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/introduction-of-some-maven-commands.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Introduction of some maven commands&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/how-to-create-java-program-using.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Hello World java program using Intellij&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/remote-debug-enabling-remote-debug-on.html&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Enabling Remote Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/04/enabling-debug-level-on-in-logs_7.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;How do I ENABLE DEBUG level logging?&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2019/05/updating-project-newrelease-version-in.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Updating version numbers of modules in a multi-module Maven project&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/formatting-with-printf-in-java.html&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-ansi-language: EN-US;&quot;&gt;Formatting with printf() in Java | How to use Printf method in Java&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #838383; font-family: roboto, sans-serif; line-height: normal; margin: 0cm; text-indent: -18pt; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-family: &amp;quot;symbol&amp;quot;; font-size: 10pt;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: 7pt; font-stretch: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 13.5pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://reshuallinone.blogspot.com/2020/09/java-program-for-add-two-dates-with-time.html&quot;&gt;Java Program for Add Two Dates with time&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://reshuallinone.blogspot.com/feeds/7160655843642062673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7160655843642062673'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6045246199335379558/posts/default/7160655843642062673'/><link rel='alternate' type='text/html' href='https://reshuallinone.blogspot.com/2020/07/how-to-use-static-keyword-in-java-i.html' title='How to use static keyword in Java '/><author><name>Reshu  Mahobiya</name><uri>http://www.blogger.com/profile/11458642012432826387</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ6xeE_7l0VzUu1hH3FY3xWTsKvagl7QlKh-fq68QX59ZWIqQOC0ltjrpQ4p8DrLU9t3c5o-YOhJTFjC6gyACmtWUzTTRmkhRHDU_duLDGzV3BrA-NAVS_tvZylGw3Ww/s220/IMG_8336.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqtQHyAtJaZAvJlaxDZNz5BgtPQLrPis2js7n8GBAn5o10yeDXdlh-9AvpzE59rOmCQd67ObLTsNCyXVMOYQbCCtifpqfRf5RL9bZ3b5eUPXLWVg-grpQA9cB3lh11whwatL3CIgglMmI/s72-c/1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>