<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dark horse digital interview questions and answers - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/dark-horse-digital-interview-questions-and-answers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/dark-horse-digital-interview-questions-and-answers/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 02 May 2022 06:20:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>dark horse digital interview questions and answers - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/dark-horse-digital-interview-questions-and-answers/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is Normalization ?</title>
		<link>https://www.wikitechy.com/interview-questions/dbms/what-is-normalization/</link>
					<comments>https://www.wikitechy.com/interview-questions/dbms/what-is-normalization/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Mon, 19 Jul 2021 10:33:39 +0000</pubDate>
				<category><![CDATA[DBMS]]></category>
		<category><![CDATA[2nf normalization]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Apostek Software Interview Questions and Answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[bcnf example]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[dark horse digital interview questions and answers]]></category>
		<category><![CDATA[data normalization]]></category>
		<category><![CDATA[database normalization]]></category>
		<category><![CDATA[database normalization examples]]></category>
		<category><![CDATA[define normalization]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mavenir interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[normalization]]></category>
		<category><![CDATA[normalization definition]]></category>
		<category><![CDATA[normalization definition in dbms]]></category>
		<category><![CDATA[normalization example]]></category>
		<category><![CDATA[normalization example with solution]]></category>
		<category><![CDATA[normalization in database]]></category>
		<category><![CDATA[normalization in database with example]]></category>
		<category><![CDATA[normalization in database with example tables]]></category>
		<category><![CDATA[normalization in dbms]]></category>
		<category><![CDATA[normalization in dbms with examples]]></category>
		<category><![CDATA[normalization statistics example]]></category>
		<category><![CDATA[normalization vs standardization]]></category>
		<category><![CDATA[normalize two data sets]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[Prokarma Softech Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Ruboid Technovision Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Shell Infotech interview questions and answers]]></category>
		<category><![CDATA[step by step normalization example]]></category>
		<category><![CDATA[table normalization]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[types of normalization]]></category>
		<category><![CDATA[types of normalization in database]]></category>
		<category><![CDATA[types of normalization in dbms]]></category>
		<category><![CDATA[types of normalization with examples]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what is data normalizationde]]></category>
		<category><![CDATA[what is normalization]]></category>
		<category><![CDATA[what is normalization and its types]]></category>
		<category><![CDATA[what is normalization in dbms]]></category>
		<category><![CDATA[what is normalization in statistics]]></category>
		<category><![CDATA[Xoriant Solutions Pvt Ltd interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=1040</guid>

					<description><![CDATA[Answer : Normalization is the process of reorganizing data in a database...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading"></div>
<div class="Content">
<div class="hddn">
<ul>
<li>Normalization is the process of reorganizing data in a database. They have two basic requirements they are:
<ul>
<li>No redundancy of data.</li>
<li>Logical as data dependencies.</li>
</ul>
</li>
<li>To normalize a database, we divide the database into tables and establish relationships between the tables.</li>
<li>Database normalization can essentially be defined as the practice of optimizing table structures.</li>
<li>Optimization is accomplished as a result of a thorough investigation of the various pieces of data that will be stored within the database, in particular concentrating upon how this data is interrelated.</li>
</ul>
</div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/dbms/what-is-normalization.jpg" alt=" What is Normalization" /></div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="types-of-normalization" class="color-blue">Types of Normalization</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>1NF</li>
<li>2NF</li>
<li>3NF</li>
<li>BCNF</li>
<li>4NF</li>
<li>5NF</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="first-normal-form-1nf" class="color-purple">First Normal Form (1NF)</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>The First Normal Form should be following some rules in table,
<ul>
<li>It should only have single(atomic) valued attributes/columns.</li>
<li>Values stored in a column should be of the same domain</li>
<li>All the columns in a table should have unique names.</li>
<li>And the order in which data is stored, does not matter.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="second-normal-form-2nf" class="color-purple">Second Normal Form (2NF)</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>For a table to be in the Second Normal Form,
<ul>
<li>It should be in the First Normal form.</li>
<li>And, it should not have Partial Dependency.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="third-normal-form-3nf" class="color-purple">Third Normal Form (3NF)</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>A table is said to be in the Third Normal Form when,
<ul>
<li>It is in the Second Normal form.</li>
<li>And, it doesn&#8217;t have Transitive Dependency.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="boyce-and-codd-normal-form-bcnf" class="color-purple">Boyce and Codd Normal Form (BCNF)</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Boyce and Codd Normal Form is a higher version of the Third Normal form. This form deals with certain type of anomaly that is not handled by 3NF. A 3NF table which does not have multiple overlapping candidate keys is said to be in BCNF.</li>
<li>For a table to be in BCNF, following conditions must be satisfied:
<ul>
<li>R must be in 3rd Normal Form and, for each functional dependency ( X → Y ), X should be a super Key.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="fourth-normal-form-4nf" class="color-purple">Fourth Normal Form (4NF)</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>A table is said to be in the Fourth Normal Form when,
<ul>
<li>It is in the Boyce-Codd Normal Form.</li>
<li>And, it doesn&#8217;t have Multi-Valued Dependency.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="fifth-normal-form-5nf" class="color-purple">Fifth Normal Form (5NF)</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Fifth Normal Form (5NF), also known as project-join normal form (PJ/NF) is a level of database normalization designed to reduce redundancy in relational databases recording multi-valued facts by isolating semantically related multiple relationships.</li>
<li>A relation R is in Fifth Normal Form (5NF) and only if the following conditions are satisfied simultaneously,
<ul>
<li>R is already in 4NF.</li>
<li>It cannot be further non-loss decomposed.</li>
</ul>
</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/dbms/what-is-normalization/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to count number of characters in a string ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/how-to-count-number-of-characters-in-a-string/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/how-to-count-number-of-characters-in-a-string/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:34:34 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[char to string]]></category>
		<category><![CDATA[character count]]></category>
		<category><![CDATA[check string length]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[count characters in string]]></category>
		<category><![CDATA[count characters in string java]]></category>
		<category><![CDATA[count number of characters in a string]]></category>
		<category><![CDATA[count number of characters in a string in java]]></category>
		<category><![CDATA[count occurrences of character in string java using hashmap]]></category>
		<category><![CDATA[count repeated characters in string using java]]></category>
		<category><![CDATA[count words in string]]></category>
		<category><![CDATA[dark horse digital interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[excel count characters in string]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[how to count characters in string array in java]]></category>
		<category><![CDATA[how to count the number of occurrences of a character in a string in java]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[java program to count number of alphabets in a string]]></category>
		<category><![CDATA[java program to count number of characters in a string]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[number of characters in a string]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[word counter]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=641</guid>

					<description><![CDATA[Answer : To count the amount of 'x' characters that are in a string...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="how-to-count-number-of-characters-in-a-string" class="color-pink">How to count number of characters in a string ?</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>To count the amount of &#8216;x&#8217; characters that are in a string, and print out the number using java program.</li>
</ul>
</div>
</div>
<div class="CodeContent"></div>
<div class="Output">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">class Wikitechy<br/>{ <br/>    // Method that return count of the given <br/>    // character in the string <br/>    public static int count(String s, char c) <br/>    { <br/>        int res = 0; <br/>  <br/>        for (int i=0; i&lt;s.length(); i++) <br/>        { <br/>            // checking character in string <br/>            if (s.charAt(i) == c) <br/>            res++; <br/>        }  <br/>        return res; <br/>    } <br/>      <br/>    // Driver method <br/>    public static void main(String args[]) <br/>    { <br/>        String str= &quot;Welcome to Wikitechy&quot;; <br/>        char c = &#039;W&#039;; <br/>        System.out.println(count(str, c)); <br/>    } <br/>} </code></pre> </div>
<h3 id="output">Output</h3>
<p>2</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/how-to-count-number-of-characters-in-a-string/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is final, finally and finalize ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/what-is-final-finally-and-finalize/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/what-is-final-finally-and-finalize/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:33:14 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[dark horse digital interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[final]]></category>
		<category><![CDATA[final class]]></category>
		<category><![CDATA[final definition]]></category>
		<category><![CDATA[final keyword]]></category>
		<category><![CDATA[final keyword in java]]></category>
		<category><![CDATA[final walk through]]></category>
		<category><![CDATA[final walk through checklist]]></category>
		<category><![CDATA[finally and finalize]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[java final]]></category>
		<category><![CDATA[java final variable]]></category>
		<category><![CDATA[java finally]]></category>
		<category><![CDATA[java static final]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[static final]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what is final]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=642</guid>

					<description><![CDATA[Answer : Final is used to apply limitations on class, method and variable...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-final-finally-and-finalize" class="color-pink" style="text-align: justify;">What is final, finally and finalize ?</h2>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4224 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/final-finally-and-finalize.png" alt="" width="962" height="659" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/final-finally-and-finalize.png 962w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/final-finally-and-finalize-300x206.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/final-finally-and-finalize-768x526.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/final-finally-and-finalize-390x267.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/final-finally-and-finalize-820x562.png 820w" sizes="(max-width: 962px) 100vw, 962px" /></p>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="final" class="color-green">Final</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Final is used to apply limitations on class, method and variable. Final variable value couldn&#8217;t be changed final method couldn’t be overridden and final class can&#8217;t be inherited.</li>
<li>Final is a keyword.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="sample-code" class="color-blue">Sample Code</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul style="text-align: justify;">
<li>Once initialized value of variable cannot be changed.</li>
</ul>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">class A <br/>{ <br/>    public static void main(String[] args) <br/>    { <br/>        int a = 5; <br/>  <br/>        // final variable <br/>        final int b = 6; <br/>  <br/>         <br/>        a++; <br/>  <br/>        // modifying the final variable :  <br/>        b++; <br/>    } <br/>} </code></pre> </div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>If we declare any variable as final, we can’t change its contents since it is final, and if we change it then we have the Compile Time Error.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="finally" class="color-green">Finally</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Finally is used to place significant code, whether exception is handled or not that time will be executed.</li>
<li>Finally is a block.</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="sample-code-2" class="color-blue" style="text-align: justify;">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">// A Java program to demonstrate finally. <br/>class Wikitechy<br/>{ <br/>     <br/>    static void A() <br/>    { <br/>        try <br/>        { <br/>            System.out.println(&quot;inside A&quot;); <br/>            throw new RuntimeException(&quot;demo&quot;); <br/>        } <br/>        finally<br/>        { <br/>            System.out.println(&quot;A&#039;s finally&quot;); <br/>        } <br/>    }  <br/>    static void B() <br/>    { <br/>        try <br/>        { <br/>            System.out.println(&quot;inside B&quot;); <br/>            return; <br/>        } <br/>        finally<br/>        { <br/>            System.out.println(&quot;B&#039;s finally&quot;); <br/>        } <br/>    } <br/>  <br/>    public static void main(String args[]) <br/>    { <br/>        try <br/>        { <br/>            A(); <br/>        } <br/>        catch (Exception e) <br/>        { <br/>            System.out.println(&quot;Exception caught&quot;); <br/>        } <br/>        B(); <br/>    } <br/>} </code></pre> </div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Output" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><code class="hljs bash" data-lang=""><span class="nt">inside A
A<span class="hljs-string">'s finally
Exception caught
inside B
B'</span>s finally
</span></code></pre>
</figure>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="finalize" class="color-green">Finalize</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Finalize is using for the processing of clean up to be perform just before object is garbage collected.</li>
<li>Finalize is a method.</li>
<li>Once finalize method completes immediately Garbage Collector destroy that object.</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="syntax" class="color-purple" style="text-align: justify;">Syntax</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">protected void finalize throws Throwable<br/>{<br/><br/>}</code></pre> </div>
<h2 id="sample-code-3" class="color-blue" style="text-align: justify;">Sample Code</h2>
<div style="text-align: justify;">
<div id="bsa-zone_1590522394795-6_123456">
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">class Wikitechy <br/>{ <br/>    public static void main(String[] args) <br/>    { <br/>        String s = new String(&quot;RR&quot;); <br/>        s = null; <br/>  <br/>        // Requesting JVM to call Garbage Collector method <br/>        System.gc(); <br/>        System.out.println(&quot;Main Completes&quot;); <br/>    } <br/>  <br/>    // Here overriding finalize method <br/>    public void finalize() <br/>    { <br/>        System.out.println(&quot;finalize method overriden&quot;); <br/>    } <br/>} </code></pre> </div>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output-2" class="color-blue">Output</h2>
</div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs" data-lang=""><span class="nt">Main Completes</span></code></pre>
</figure>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/what-is-final-finally-and-finalize/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is static and dynamic binding in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/what-is-static-and-dynamic-binding-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/what-is-static-and-dynamic-binding-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:07:31 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[dark horse digital interview questions and answers]]></category>
		<category><![CDATA[definition of dynamic binding in java]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between static and dynamic in java]]></category>
		<category><![CDATA[difference between static and dynamic variable]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[static and dynamic forms]]></category>
		<category><![CDATA[static and dynamic implementation]]></category>
		<category><![CDATA[static and dynamic objects]]></category>
		<category><![CDATA[static and dynamic type checking]]></category>
		<category><![CDATA[static binding and dynamic binding in oops]]></category>
		<category><![CDATA[static binding definition]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what is dynamic binding]]></category>
		<category><![CDATA[what is static and dynamic binding]]></category>
		<category><![CDATA[what is static and dynamic binding in java]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=630</guid>

					<description><![CDATA[Answer : The binding which can be determined at compile time by compiler...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-static-and-dynamic-binding-in-java" class="color-pink" style="text-align: justify;">What is static and dynamic binding in Java ?</h2>
<p><img decoding="async" class="alignnone size-full wp-image-4221 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding.png" alt="" width="922" height="668" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding.png 922w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding-300x217.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding-768x556.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding-390x283.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding-820x594.png 820w" sizes="(max-width: 922px) 100vw, 922px" /></p>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="static-binding" class="color-green">Static Binding</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The binding which can be determined at compile time by compiler is known as static binding.</li>
<li>The binding of static, private and final methods is compile-time.</li>
<li>The class is determined at the compile time only. So, method cannot be overridden.</li>
<li>Object of local class to be accessed in static.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="sample-code" class="color-blue">Sample Code</h2>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456">
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">public class NewClass <br/>{ <br/>    public static class superclass <br/>    { <br/>        static void print() <br/>        { <br/>            System.out.println(&quot;print in superclass.&quot;); <br/>        } <br/>    } <br/>    public static class subclass extends superclass <br/>    { <br/>        static void print() <br/>        { <br/>            System.out.println(&quot;print in subclass.&quot;); <br/>        } <br/>    } <br/>  <br/>    public static void main(String[] args) <br/>    { <br/>        superclass A = new superclass(); <br/>        superclass B = new subclass(); <br/>        A.print(); <br/>        B.print(); <br/>    } <br/>}</code></pre> </div>
</div>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Output" style="text-align: justify;">
<div class="hddn">
<figure class="highlight">
<pre><code class="hljs bash" data-lang=""><span class="nt"><span class="hljs-built_in">print</span> <span class="hljs-keyword">in</span> superclass.
<span class="hljs-built_in">print</span> <span class="hljs-keyword">in</span> superclass.
</span></code></pre>
</figure>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="dynamic-binding" class="color-green">Dynamic Binding</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>When compiler is not able to determination the call/binding at compile time, such binding is known as Dynamic or late Binding.</li>
<li>Method Overriding is the good example for dynamic binding.</li>
<li>In overriding concept have the both parent and child classes should be presented they have same method and in this case the type of the object only determines which method is to be executed.</li>
<li>At the run time is determined to the type of object. So, this is known as dynamic binding.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="sample-code-2" class="color-blue">Sample Code</h2>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">public class NewClass <br/>{ <br/>    public static class superclass <br/>    { <br/>        void print() <br/>        { <br/>            System.out.println(&quot;print in superclass.&quot;); <br/>        } <br/>    } <br/>  <br/>    public static class subclass extends superclass <br/>    { <br/>        @Override<br/>        void print() <br/>        { <br/>            System.out.println(&quot;print in subclass.&quot;); <br/>        } <br/>    } <br/>  <br/>    public static void main(String[] args) <br/>    { <br/>        superclass A = new superclass(); <br/>        superclass B = new subclass(); <br/>        A.print(); <br/>        B.print(); <br/>    } <br/>} </code></pre> </div></figure>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output-2" class="color-blue">Output</h2>
</div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs bash" data-lang=""><span class="nt"><span class="hljs-built_in">print</span> <span class="hljs-keyword">in</span> superclass.
<span class="hljs-built_in">print</span> <span class="hljs-keyword">in</span> subclass.</span></code></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/what-is-static-and-dynamic-binding-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How HashMap Works in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/how-hashmap-works-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/how-hashmap-works-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:07:25 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[custom hashmap implementation in java]]></category>
		<category><![CDATA[dark horse digital interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[hashmap internal implementation analysis in java]]></category>
		<category><![CDATA[hashmap internal working]]></category>
		<category><![CDATA[hashmap iterator implementation]]></category>
		<category><![CDATA[hashmap java]]></category>
		<category><![CDATA[hashset vs hashmap]]></category>
		<category><![CDATA[how hashmap works internally]]></category>
		<category><![CDATA[how hashmap works internally in java]]></category>
		<category><![CDATA[how hashmap works internally in java with example]]></category>
		<category><![CDATA[how hashtable works internally in java]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[implement hashmap in java interview]]></category>
		<category><![CDATA[implement hashmap without using collections]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what is hashmap]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<category><![CDATA[write your own hashmap/hashtable implementation in java]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=629</guid>

					<description><![CDATA[Answer : HashMap is one of the most widly used implementation of Map to store key-value pairs...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="how-hashmap-works-in-java" class="color-pink" style="text-align: justify;">How HashMap Works in Java ?</h2>
<p><img decoding="async" class="alignnone size-full wp-image-4229" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map.png" alt="" width="1361" height="992" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map.png 1361w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-300x219.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-1024x746.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-768x560.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-390x284.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-820x598.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-1180x860.png 1180w" sizes="(max-width: 1361px) 100vw, 1361px" /></p>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>HashMap is one of the most widly used implementation of Map to store key-value pairs. To implement HashMap with ArrayList.</li>
<li>It is provides two basic HashMap functions they are: get(key) and put(key, value).</li>
<li>While storing code to be checking the duplicate values. While duplicate values are presents to be removed.</li>
<li>Implementation should not be used as a replacement of HashMap. Also while testing the code, make sure that the Object used in the KEY has proper implementation of equals() method.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4230" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-works.png" alt="" width="754" height="650" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-works.png 754w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-works-300x259.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/hash-map-works-390x336.png 390w" sizes="(max-width: 754px) 100vw, 754px" /></div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="example" class="color-blue">Example:</h2>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">package com.journaldev.util;<br/><br/>import java.util.ArrayList;<br/>import java.util.List;<br/><br/>public class MyHashMap {<br/><br/>	class Container{<br/>		Object key;<br/>		Object value;<br/>		public void insert(Object k, Object v){<br/>			this.key=k;<br/>			this.value=v;<br/>		}<br/>	}<br/>	<br/>	private Container c;<br/>	private List&lt;Container&gt; recordList;<br/>	<br/>	public MyHashMap(){<br/>		<br/>		this.recordList=new ArrayList&lt;Container&gt;();<br/>	}<br/>	<br/>	public void put(Object k, Object v){<br/>		this.c=new Container();<br/>		c.insert(k, v);<br/>		//check for the same key before adding<br/>		for(int i=0; i&lt;recordList.size(); i++){<br/>			Container c1=recordList.get(i);<br/>			if(c1.key.equals(k)){<br/>				//remove the existing object<br/>				recordList.remove(i);<br/>				break;<br/>			}<br/>		}<br/>		recordList.add(c);<br/>	}<br/>	<br/>	public Object get(Object k){<br/>		for(int i=0; i&lt;this.recordList.size(); i++){<br/>			Container con = recordList.get(i);<br/>			//System.out.println(&quot;k.toString():&quot;+k.toString()+&quot;con.key.toString()&quot;+con.key.toString());<br/>			if (k.toString()==con.key.toString()) {<br/>				<br/>				return con.value;<br/>			}<br/>			<br/>		}<br/>		return null;<br/>	}<br/>	<br/>	public static void main(String[] args) {<br/>		MyHashMap hm = new MyHashMap();<br/>		hm.put(&quot;1&quot;, &quot;1&quot;);<br/>		hm.put(&quot;2&quot;, &quot;2&quot;);<br/>		hm.put(&quot;3&quot;, &quot;3&quot;);<br/>		System.out.println(hm.get(&quot;3&quot;));<br/>		hm.put(&quot;3&quot;, &quot;4&quot;);<br/>		<br/>		System.out.println(hm.get(&quot;1&quot;));<br/>		System.out.println(hm.get(&quot;3&quot;));<br/>		System.out.println(hm.get(&quot;8&quot;));<br/>	}<br/><br/>}</code></pre> </div></figure>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output:</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs javascript" data-lang=""><span class="nt"><span class="hljs-number">3</span>
<span class="hljs-number">1</span>
<span class="hljs-number">4</span>
<span class="hljs-literal">null</span></span></code></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/how-hashmap-works-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Polymorphism in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/what-is-polymorphism-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/what-is-polymorphism-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:07:15 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[compile time polymorphism in c++]]></category>
		<category><![CDATA[dark horse digital interview questions and answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[method overloading in java]]></category>
		<category><![CDATA[method overriding in java]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[polaris financial technology interview questions and answers]]></category>
		<category><![CDATA[polymorphism example c#]]></category>
		<category><![CDATA[polymorphism example in c++]]></category>
		<category><![CDATA[polymorphism example in java]]></category>
		<category><![CDATA[polymorphism in java]]></category>
		<category><![CDATA[polymorphism in object oriented programming]]></category>
		<category><![CDATA[polymorphism real time example]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[runtime polymorphism in c# example]]></category>
		<category><![CDATA[runtime polymorphism in c++]]></category>
		<category><![CDATA[runtime polymorphism is achieved by]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[static polymorphism in c++]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[telibrahma interview questions and answers]]></category>
		<category><![CDATA[types of polymorphism in c++]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=628</guid>

					<description><![CDATA[Answer : Polymorphism in Java is a concept in different ways...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-polymorphism-in-java" class="color-pink" style="text-align: justify;">What is Polymorphism in Java ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Polymorphism in Java is a concept in different ways we can perform a single action.</li>
<li>Poly and morphs. The word &#8220;poly&#8221; means many and &#8220;morphs&#8221; means forms. Many forms are known as polymorphism.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/java/polymorphism-in-java.png" alt=" Polymorphism in Java" /></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>There are two types of polymorphism in Java:
<ul>
<li>Compile-Time Polymorphism and</li>
<li>Runtime Polymorphism.</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Polymorphism in java we can perform by method overloading and method overriding.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="dynamic-method-dispatch-or-runtime-polymorphism-in-java" class="color-pink">Dynamic Method Dispatch or Runtime Polymorphism in Java</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Java supports Runtime Polymorphism is one of the ways is method overriding</li>
<li>A call to an overridden method is resolved at run time, rather than compile time it is called as dynamic method dispatch mechanism.</li>
<li>At run-time, it depends on the type of the object being referred that determines which version of an overridden method will be executed.</li>
<li>A subclass object refers by a superclass variable. This is also known as upcasting. Java uses this statistic to resolve calls to overridden methods at run time.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/java/upcasting.jpg" alt=" Upcasting" /></div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="example-of-java-runtime-polymorphism" class="color-blue">Example of Java Runtime Polymorphism</h2>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4232" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism.png" alt="" width="1092" height="1061" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism.png 1092w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-300x291.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-1024x995.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-768x746.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-390x379.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/polymorphism-820x797.png 820w" sizes="(max-width: 1092px) 100vw, 1092px" /></p>
</div>
</div>
<div class="CodeContent" style="text-align: justify;">
<div class="hddn">
<figure class="highlight"><div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">class Bike{  <br/>  void run(){System.out.println(&quot;running&quot;);}  <br/>}  <br/>class Splendor extends Bike{  <br/>  void run(){System.out.println(&quot;running safely with 60km&quot;);}  <br/>  <br/>  public static void main(String args[]){  <br/>    Bike b = new Splendor();//upcasting  <br/>    b.run();  <br/>  }  <br/>} </code></pre> </div></figure>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs javascript" data-lang=""><span class="nt">running safely <span class="hljs-keyword">with</span> <span class="hljs-number">60</span>km.</span></code></pre>
</figure>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/what-is-polymorphism-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
