<?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>runtime polymorphism is achieved by - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/runtime-polymorphism-is-achieved-by/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/runtime-polymorphism-is-achieved-by/</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>runtime polymorphism is achieved by - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/runtime-polymorphism-is-achieved-by/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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 fetchpriority="high" 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>
