{"id":628,"date":"2021-07-13T23:07:15","date_gmt":"2021-07-13T23:07:15","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=628"},"modified":"2022-05-02T06:20:36","modified_gmt":"2022-05-02T06:20:36","slug":"what-is-polymorphism-in-java","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/","title":{"rendered":"What is Polymorphism in Java ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"what-is-polymorphism-in-java\" class=\"color-pink\" style=\"text-align: justify;\">What is Polymorphism in Java ?<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\"><\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Polymorphism in Java is a concept in different ways we can perform a single action.<\/li>\n<li>Poly and morphs. The word \u201cpoly\u201d means many and \u201cmorphs\u201d means forms. Many forms are known as polymorphism.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<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>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>There are two types of polymorphism in Java:\n<ul>\n<li>Compile-Time Polymorphism and<\/li>\n<li>Runtime Polymorphism.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Polymorphism in java we can perform by method overloading and method overriding.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"dynamic-method-dispatch-or-runtime-polymorphism-in-java\" class=\"color-pink\">Dynamic Method Dispatch or Runtime Polymorphism in Java<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>Java supports Runtime Polymorphism is one of the ways is method overriding<\/li>\n<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>\n<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>\n<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>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\" style=\"text-align: justify;\">\n<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>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"example-of-java-runtime-polymorphism\" class=\"color-blue\">Example of Java Runtime Polymorphism<\/h2>\n<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>\n<\/div>\n<\/div>\n<div class=\"CodeContent\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<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>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"output\" class=\"color-blue\">Output<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\"><\/div>\n<\/div>\n<div class=\"Output\">\n<div class=\"hddn\">\n<figure class=\"highlight\" style=\"text-align: justify;\">\n<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>\n<\/figure>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : Polymorphism in Java is a concept in different ways&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4004],"tags":[195,491,360,203,199,214,198,363,209,2401,15937,205,2936,222,196,212,213,286,4104,4105,207,366,204,217,282,15929,4108,4107,4106,4100,4110,4109,4023,483,4102,2399,4101,206,4103,200,15921,2394,197,280,364,968],"class_list":["post-628","post","type-post","status-publish","format-standard","hentry","category-java","tag-accenture-interview-questions-and-answers","tag-applied-materials-interview-questions-and-answers","tag-atos-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-collabera-technologies-interview-questions-and-answers","tag-compile-time-polymorphism-in-c","tag-dark-horse-digital-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-fis-global-business-solutions-india-pvt-ltd-interview-questions-and-answers","tag-flipkart-interview-questions-and-answers","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-infosys-technologies-interview-questions-and-answers","tag-lt-infotech-interview-questions-and-answers","tag-method-overloading-in-java","tag-method-overriding-in-java","tag-mphasis-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-oracle-corporation-interview-questions-and-answers","tag-peoplestrong-interview-questions-and-answers","tag-persistent-systems-interview-questions-and-answers","tag-polaris-financial-technology-interview-questions-and-answers","tag-polymorphism-example-c","tag-polymorphism-example-in-c","tag-polymorphism-example-in-java","tag-polymorphism-in-java","tag-polymorphism-in-object-oriented-programming","tag-polymorphism-real-time-example","tag-rbs-india-de-interview-questions-and-answers","tag-reliance-industries-ltd-interview-questions-and-answers","tag-runtime-polymorphism-in-c-example","tag-runtime-polymorphism-in-c","tag-runtime-polymorphism-is-achieved-by","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-static-polymorphism-in-c","tag-tech-mahindra-interview-questions-and-answers","tag-telibrahma-interview-questions-and-answers","tag-types-of-polymorphism-in-c","tag-unitedhealth-group-interview-questions-and-answers","tag-virtusa-consulting-services-pvt-ltd-interview-questions-and-answers","tag-wells-fargo-interview-questions-and-answers","tag-wipro-infotech-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is Polymorphism in Java ? - Java Interview Questions &amp; Answers<\/title>\n<meta name=\"description\" content=\"What is Polymorphism in Java ? - Java Interview Questions &amp; Answers - Polymorphism in Java is a concept in different ways we can perform a single action.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Polymorphism in Java ? - Java Interview Questions &amp; Answers\" \/>\n<meta property=\"og:description\" content=\"What is Polymorphism in Java ? - Java Interview Questions &amp; Answers - Polymorphism in Java is a concept in different ways we can perform a single action.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T23:07:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-02T06:20:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/java\/polymorphism-in-java.png\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"What is Polymorphism in Java ?\",\"datePublished\":\"2021-07-13T23:07:15+00:00\",\"dateModified\":\"2022-05-02T06:20:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/\"},\"wordCount\":234,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/java\\\/polymorphism-in-java.png\",\"keywords\":[\"Accenture interview questions and answers\",\"Applied Materials interview questions and answers\",\"Atos interview questions and answers\",\"Capgemini interview questions and answers\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"CGI Group Inc interview questions and answers\",\"Chetu interview questions and answers\",\"Ciena Corporation interview questions and answers\",\"Collabera Technologies interview questions and answers\",\"compile time polymorphism in c++\",\"dark horse digital interview questions and answers\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"FIS Global Business Solutions India Pvt Ltd interview questions and answers\",\"Flipkart interview questions and answers\",\"IBM interview questions and answers\",\"Indecomm Global Services interview questions and answers\",\"Infosys Technologies interview questions and answers\",\"L&amp;T Infotech interview questions and answers\",\"method overloading in java\",\"method overriding in java\",\"Mphasis interview questions and answers\",\"NetApp interview questions and answers\",\"Oracle Corporation interview questions and answers\",\"PeopleStrong interview questions and answers\",\"Persistent Systems interview questions and answers\",\"polaris financial technology interview questions and answers\",\"polymorphism example c#\",\"polymorphism example in c++\",\"polymorphism example in java\",\"polymorphism in java\",\"polymorphism in object oriented programming\",\"polymorphism real time example\",\"RBS India De interview questions and answers\",\"Reliance Industries Ltd interview questions and answers\",\"runtime polymorphism in c# example\",\"runtime polymorphism in c++\",\"runtime polymorphism is achieved by\",\"SAP Labs India Pvt Ltd interview questions and answers\",\"static polymorphism in c++\",\"Tech Mahindra interview questions and answers\",\"telibrahma interview questions and answers\",\"types of polymorphism in c++\",\"UnitedHealth Group interview questions and answers\",\"Virtusa Consulting Services Pvt Ltd interview questions and answers\",\"Wells Fargo interview questions and answers\",\"Wipro Infotech interview questions and answers\"],\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/\",\"name\":\"What is Polymorphism in Java ? - Java Interview Questions & Answers\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/java\\\/polymorphism-in-java.png\",\"datePublished\":\"2021-07-13T23:07:15+00:00\",\"dateModified\":\"2022-05-02T06:20:36+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"What is Polymorphism in Java ? - Java Interview Questions & Answers - Polymorphism in Java is a concept in different ways we can perform a single action.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/java\\\/what-is-polymorphism-in-java\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/java\\\/polymorphism-in-java.png\",\"contentUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/java\\\/polymorphism-in-java.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Polymorphism in Java ? - Java Interview Questions & Answers","description":"What is Polymorphism in Java ? - Java Interview Questions & Answers - Polymorphism in Java is a concept in different ways we can perform a single action.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/","og_locale":"en_US","og_type":"article","og_title":"What is Polymorphism in Java ? - Java Interview Questions & Answers","og_description":"What is Polymorphism in Java ? - Java Interview Questions & Answers - Polymorphism in Java is a concept in different ways we can perform a single action.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/","og_site_name":"Wikitechy","article_published_time":"2021-07-13T23:07:15+00:00","article_modified_time":"2022-05-02T06:20:36+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/java\/polymorphism-in-java.png","type":"","width":"","height":""}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"What is Polymorphism in Java ?","datePublished":"2021-07-13T23:07:15+00:00","dateModified":"2022-05-02T06:20:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/"},"wordCount":234,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/java\/polymorphism-in-java.png","keywords":["Accenture interview questions and answers","Applied Materials interview questions and answers","Atos interview questions and answers","Capgemini interview questions and answers","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","CGI Group Inc interview questions and answers","Chetu interview questions and answers","Ciena Corporation interview questions and answers","Collabera Technologies interview questions and answers","compile time polymorphism in c++","dark horse digital interview questions and answers","Dell International Services India Pvt Ltd interview questions and answers","FIS Global Business Solutions India Pvt Ltd interview questions and answers","Flipkart interview questions and answers","IBM interview questions and answers","Indecomm Global Services interview questions and answers","Infosys Technologies interview questions and answers","L&amp;T Infotech interview questions and answers","method overloading in java","method overriding in java","Mphasis interview questions and answers","NetApp interview questions and answers","Oracle Corporation interview questions and answers","PeopleStrong interview questions and answers","Persistent Systems interview questions and answers","polaris financial technology interview questions and answers","polymorphism example c#","polymorphism example in c++","polymorphism example in java","polymorphism in java","polymorphism in object oriented programming","polymorphism real time example","RBS India De interview questions and answers","Reliance Industries Ltd interview questions and answers","runtime polymorphism in c# example","runtime polymorphism in c++","runtime polymorphism is achieved by","SAP Labs India Pvt Ltd interview questions and answers","static polymorphism in c++","Tech Mahindra interview questions and answers","telibrahma interview questions and answers","types of polymorphism in c++","UnitedHealth Group interview questions and answers","Virtusa Consulting Services Pvt Ltd interview questions and answers","Wells Fargo interview questions and answers","Wipro Infotech interview questions and answers"],"articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/","name":"What is Polymorphism in Java ? - Java Interview Questions & Answers","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/java\/polymorphism-in-java.png","datePublished":"2021-07-13T23:07:15+00:00","dateModified":"2022-05-02T06:20:36+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"What is Polymorphism in Java ? - Java Interview Questions & Answers - Polymorphism in Java is a concept in different ways we can perform a single action.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/java\/what-is-polymorphism-in-java\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/java\/polymorphism-in-java.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/java\/polymorphism-in-java.png"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=628"}],"version-history":[{"count":4,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/628\/revisions"}],"predecessor-version":[{"id":4233,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/628\/revisions\/4233"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}