{"id":9469,"date":"2021-07-20T17:42:22","date_gmt":"2021-07-20T17:42:22","guid":{"rendered":"https:\/\/www.monsterindia.com\/career-advice\/50-oops-interview-questions-and-answers-9469\/"},"modified":"2023-03-23T12:11:19","modified_gmt":"2023-03-23T06:41:19","slug":"oops-interview-questions-and-answers","status":"publish","type":"post","link":"https:\/\/www.monster.co.th\/career-advice\/oops-interview-questions-and-answers\/","title":{"rendered":"OOPS interview questions and answers"},"content":{"rendered":"\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">Whether you are a fresher or an experienced candidate, if you apply for any role that requires you to know<a title=\"https:\/\/www.monsterindia.com\/search\/programming-languages-jobs\" href=\"https:\/\/www.monsterindia.com\/search\/programming-languages-jobs\"> programming languages<\/a>, you can expect many questions on <a title=\"https:\/\/www.monsterindia.com\/search\/oops-jobs\" href=\"https:\/\/www.monsterindia.com\/search\/oops-jobs\">OOPS <\/a>concepts from the interviewer without a shadow of a doubt. This article contains some important <\/span>object oriented programming interview questions<span style=\"font-weight: 400;\"> that will help you crack the interview. The article also contains several example programs to help you understand the <\/span>OOPS concepts interview questions<span style=\"font-weight: 400;\"> better.\u00a0<\/span><\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><strong>***PLEASE NOTE THAT public static void main(String[] args) is abbreviated as PSVM() in all the example programs.<\/strong><\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.monsterindia.com\/career-advice\/16-oops-interview-questions-to-help-you-succeed-in-your-next-interview\/\" title=\"https:\/\/www.monsterindia.com\/career-advice\/16-oops-interview-questions-to-help-you-succeed-in-your-next-interview\/\"><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\">OOPS interview questions and answers<\/span><\/a><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Basic definitions&nbsp;<\/span><\/li><li><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><em><span style=\"font-weight: 400;\">OOPS interview questions on features<\/span><\/em><strong>, <\/strong><span style=\"font-weight: 400;\">Core features of OOPS-questions related to inheritance, abstraction, encapsulation, and polymorphism<\/span><\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Questions based on inheritance<\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Questions based on polymorphism<\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Questions based on abstraction concept and encapsulation<\/span><\/li><li><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><em><em><span style=\"font-weight: 400;\">OOPS interview questions based on interface concept<\/span><\/em><\/em><\/span><ul><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Questions based on wrapper classes<\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Questions based on keywords this, super and final&nbsp;<\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Garbage collection<\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Ternary operator<\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Questions based on constructors<\/span><\/li><\/ul><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><em><em><span style=\"font-weight: 400;\">OOPS methods and functions interview questions<\/span><\/em><\/em><\/span><\/li><li style=\"font-weight: 400;\"><em><span style=\"font-weight: 400;\">OOPS interview questions on exception handling<\/span><\/em><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Applications, advantages, and disadvantages of object oriented programming system<\/span><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Interview Tips<\/strong><\/h2>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">Try to explain the <\/span>OOPS interview questions<span style=\"font-weight: 400;\"> by giving real-life examples. Always try to explain the concept in simple terms. Relating the concepts to the real world impresses the interviewer.<\/span><\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The final tip, which is very important, is don&#8217;t panic and be honest if you don&#8217;t know the answer.<\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">This article has the most asked <\/span>object oriented programming interview questions.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>OOPS interview questions and answers.<\/strong><\/h2>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">Basic definitions,<\/span> OOPS interview questions<span style=\"font-weight: 400;\">:<\/span><\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.What do you mean by OOPS?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">Object oriented programming system abbreviated as OOPS is a&nbsp;<\/span><em><span style=\"font-weight: 400;\">programming paradigm formulated around Objects<\/span><\/em><strong>.<\/strong><\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">OOPS, or object-oriented programming system, is a kind of programming that revolves around objects. Unlike C language, which is based on functions, programming languages like Java and <a href=\"https:\/\/www.monsterindia.com\/career-advice\/python-oops-interview-questions\/\" title=\"https:\/\/www.monsterindia.com\/career-advice\/python-oops-interview-questions\/\">Python are widely based on OOPS<\/a>. The core concepts in OOPS are classes and objects using which the programs are designed.&nbsp;<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. What is a class?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Class is like a blueprint or a template that is required to create objects. It contains variables and methods. A class doesn&#8217;t occupy any memory and is a logical entity.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">For example, Animal is a class, and Dog, Cat are objects. Here, methods could be Eat() and Run().&nbsp;<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. What is an object?&nbsp;<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">An <\/span><strong>object<\/strong><span style=\"font-weight: 400;\"> is an instance of a class. An object is created from a class. An object has a state and behavior, which are variables(data members) and methods(functions) performed on the data members. An object is a physical entity.<\/span><\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">This line of code in the program creates an object of Vehicle class in java.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Vehicle car= new Vehicle();<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">We call methods through objects in the main method.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4.What are access modifiers, and how many types are there?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Access modifiers describe the behavior of the class.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">In java, the allowed access modifiers for the top-level classes are<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">default<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">abstract<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">final<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">strictfp<\/span><\/li><\/ul>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">For inner level classes, in addition to the above five access modifiers, three more are allowed<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">private<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">protected<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">static<\/span><\/li><\/ul>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The Most restricted modifier is a private modifier, and the most accessible modifier is a public modifier.<\/span><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Accessibility<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Protected<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">private<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">default<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">If within the same class<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">From the derived class of the same package<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">No<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">From the non child class of the same package<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">No<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">From the child class of an outside package<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes, with child reference<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">No<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">No<\/span><\/td><\/tr><tr><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">From non child class of an outside package<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">No<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">No<\/span><\/td><td><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">No<\/span><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><em><span style=\"font-weight: 400;\">OOPS interview questions on<\/span><\/em><em><span style=\"font-weight: 400;\"> features<\/span><\/em><span style=\"font-weight: 400;\"> of <\/span><span style=\"font-weight: 400;\">object oriented programming interview questions<\/span><span style=\"font-weight: 400;\">-questions related to inheritance, abstraction, encapsulation, and polymorphism.<\/span><\/span><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5.What are the primary features of OOPS?<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">inheritance<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">abstraction<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">encapsulation&nbsp;<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">polymorphism<\/span><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Questions based on inheritance<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6.What is inheritance?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">This is a commonly asked <\/span>OOPS interview question<span style=\"font-weight: 400;\">. The inheritance feature in OOPS lets you inherit the properties from other classes. This feature helps in reducing the size of the code and promotes the reusability of the code. In java, we use the keyword &#8216;extends&#8217; to inherit the properties from the parent class.<\/span><\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">For example, if there is a class Doctor and another class called Physician, if we use inheritance property on the Physician class from the parent class Doctor, then the Physician class acquires all the properties, i.e., methods and variables present in the parent class Doctor without having to rewrite those again in the Physician class.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Consider this example where class Guitar inherits class Instrument and class Flute also inherits class Instrument.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Instrument <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Guitar extends Instrument\/\/methods in Instrument class are now available in Guitar class since Guitar inherits the Instrument class.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Flute extends Instrument<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public class Main<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7.What are different types of inheritance?<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Single inheritance&nbsp;<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Hybrid inheritance<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Multilevel inheritance&nbsp;<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Hierarchical inheritance<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Multiple inheritance<\/span><\/li><\/ol>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">In java, multiple inheritance is not possible but can be accomplished through the concept of Interface.<\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><strong>Single inheritance <\/strong><span style=\"font-weight: 400;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><strong>Multilevel inheritance<\/strong><span style=\"font-weight: 400;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><strong>Hierarchical inheritance<\/strong><\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><strong>Hybrid inheritance&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Multiple Inheritance<\/strong><\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>8.What is hybrid inheritance?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Hybrid inheritance combines multiple and multilevel inheritance.<\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>9.Why is multiple inheritance not possible in java?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">This is a frequently asked <a href=\"https:\/\/www.monsterindia.com\/career-advice\/top-30-php-oops-interview-questions-and-answers\/\" title=\"https:\/\/www.monsterindia.com\/career-advice\/top-30-php-oops-interview-questions-and-answers\/\">OOPS interview question<\/a>. This can be explained through an example. Let&#8217;s say there is class A,<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">with a method show(), class B extends class A, and Class C also extends class A. Let&#8217;s suppose there is a class D that extends both class B and class C. Now, if I create an object of class D and call the method show(), there is an ambiguity over which show() method to call. Should the Java compiler call the show() method from class B or class A? In order to avoid this confusion, multiple inheritance is not supported in Java.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">This is also called the&nbsp;diamond problem. Consider this example for a better understanding. This code gives an error. Java doesn\u2019t support multiple inheritance.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class A <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class B extends A <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class C extends A <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">\/\/java doesn&#8217;t support multiple inheritance due to ambiguity issue<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class D extends B, C <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public class Main<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> &nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>10. What are the drawbacks of inheritance?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">1.Inheritance requires jumping between the classes.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">2.It should be properly planned; otherwise, we might get errors.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">3.The parent class and the child class get tightly coupled when a subclass extends the parent class. When any changes are made in the parent class, child classes are also affected.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Questions based on Polymorphism<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>11.What is polymorphism?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">This is definitely asked as a part of <\/span><strong>OOPS interview questions.<\/strong><\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">As the name indicates, polymorphism can be translated into multiple forms. It is a concept where we create methods in different forms. If we want to understand this concept through a real-life example, Water is the best example. Water takes different forms \u2013 solid, liquid, and gaseous states.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">In java, polymorphism is of two types<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">1.Compile time polymorphism or method overloading, which is handled by the compiler.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">2.Runtime polymorphism or method overriding, which is handled by the JVM.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>12.What is method overloading?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Method overloading is a concept wherein multiple methods have the same name. To execute overloading, certain rules are to be followed:<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">1.The methods should have the same name.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">2.The methods should be within the same class.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">3.One of the three things must be true. Methods should have:<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Each overloaded method should have a different number of arguments or<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The type of arguments must be different or<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The sequence of arguments must be different.<\/span><\/li><\/ul>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Example in java:<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">display()<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">display(int a)<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">display(int a, String b)<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">display(String a, int b)<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">display(int a, String b, double c) These are overloaded methods with the same method name.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class A <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public void display(int a)<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public void display(int a, String b)<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public void display(String a, int b)<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public class Main<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>13.Is it possible to implement method overloading by changing the return type of the method in Java?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">This is an important <\/span><strong>OOPS interview question<\/strong><span style=\"font-weight: 400;\">. No, it is not possible to achieve overloading by changing the return type in Java since this leads to ambiguity.<\/span><\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>14.What is method overriding?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Through method overriding, we can redefine the methods in subclasses. To achieve a method overriding, three things must be true.<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The methods should be in different classes.<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The methods should have:<\/span><\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">the same name<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">the same arguments<\/span><\/li><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">the same sequence of arguments<\/span><\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"font-weight: 400;\"><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The class must have an IS-A relationship, i.e., follow inheritance property. Method overriding is only possible in sub classes that inherit the properties of the parent class.<\/span><\/li><\/ul>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Consider the following simple <a href=\"https:\/\/www.monsterindia.com\/search\/java-developer-jobs\" title=\"https:\/\/www.monsterindia.com\/search\/java-developer-jobs\">java <\/a>code. In the code below, Animal is a parent class, and Dog is a subclass. Here the classes follow inheritance, and the methods have the same name and arguments. Hence overriding is achieved.<\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Animal \/\/parent class<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Dog extends Animal \/\/sub class (inheritance)<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public class Main<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>15.Can we overload the main method in java?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Yes. It is possible to overload the main method in java as the main method has a string array as arguments. There should be an original main() method where the method calls are made.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public class Main<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> &nbsp;&nbsp;&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">\/\/Overloaded main method 2&nbsp;&nbsp;&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public static void main(int args)&nbsp;&nbsp;&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> &nbsp;&nbsp;&nbsp;<\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">\/\/Original main method<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">&nbsp;PSVM()  <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>16.Is overriding of overloaded methods possible?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt; font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">For this <\/span><strong>OOPS interview question,<\/strong><span style=\"font-weight: 400;\"> you could say; Yes. Overriding of overloaded methods is possible in java. Here the adding() method is overloaded in class A. Overriding of adding with three parameters is done in class B. This is possible in Java.<\/span><\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class A <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">&nbsp;&nbsp;public void adding(int a, int b, int c)\/\/overloading of adding() method<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">&nbsp;&nbsp; <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class B extends A <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">public class Main<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">}<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>17.What is hierarchical inheritance?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">In this type of inheritance, one parent class is inherited by several subclasses. Consider this code snippet(*This is not the complete code). Here the parent class is Animal, two classes namely Dog and Cat, both extend Animal.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Animal<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Dog extends Animal<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Cat extends Animal<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\"> <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>18.What is a superclass?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">super class is a class from which other classes can be derived. If a class inherits properties from a class, this class is called a superclass.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Consider this line of code.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Animal <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Dog extends Animal \/\/here Animal is the super class<\/span><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>19.What is a subclass?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The class which is derived from another class is a subclass. Here Dog is a subclass of the Animal class.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Animal <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">class Dog extends Animal \/\/here Dog is the subclass&nbsp;<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>20.What are abstract classes and methods?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Abstract classes contain abstract methods which are only declared in the parent class. An abstract method does not provide the definition or the implementation. The implementation is provided in the sub classes.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">An abstract class can contain zero or any number of abstract methods, but if there is at least one abstract method in a class, the class must be declared abstract. It is mandatory to provide the implementation of an abstract method in the sub class. Object of an abstract class cannot be created, which also implies instantiation of an abstract class is not possible. In short, abstraction allows us to provide only the necessary and relevant details to the user, and the internal implementation is hidden. Abstraction has several advantages like:<\/span><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">This increases security since only necessary details are made visible.<\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">Code reusability is possible.<\/span><\/li><li><span style=\"font-weight: 400; font-size: 12pt; font-family: verdana, geneva, sans-serif;\">The code becomes less complex.<\/span><\/li><\/ol>\n\n\n\n<p><strong>More Resources :&nbsp;<\/strong><a href=\"https:\/\/www.monsterindia.com\/career-advice\/android-developer-job-description\/\">Android Developer Job Description<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/www.monsterindia.com\/career-advice\/full-stack-developer-interview-questions-and-answers\/\">Full-Stack Developer Interview Questions for freshers<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/www.monsterindia.com\/career-advice\/front-end-developer-resume-samples\/\">Front End Developer Resume samples<\/a>&nbsp;|&nbsp;<a href=\"https:\/\/www.monsterindia.com\/career-advice\/data-entry-operator-exam-questions-and-answers\/\">Data Entry Operator Exam Questions and Answers<\/a><\/p>\n\n\n\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whether you are a fresher or an experienced candidate, if you apply for any role that requires you to know programming languages, you can expect many questions on OOPS concepts from the interviewer without a shadow of a doubt. This article contains some important object oriented programming interview questions that will help you crack the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9969,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[147],"tags":[],"class_list":{"0":"post-9469","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-interview-questions"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/posts\/9469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/comments?post=9469"}],"version-history":[{"count":5,"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/posts\/9469\/revisions"}],"predecessor-version":[{"id":15838,"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/posts\/9469\/revisions\/15838"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/media\/9969"}],"wp:attachment":[{"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/media?parent=9469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/categories?post=9469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.monster.co.th\/career-advice\/wp-json\/wp\/v2\/tags?post=9469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}