{"id":285,"date":"2025-06-29T13:47:32","date_gmt":"2025-06-29T13:47:32","guid":{"rendered":"https:\/\/thetestdata.com\/blog\/?page_id=285"},"modified":"2025-07-06T09:33:28","modified_gmt":"2025-07-06T09:33:28","slug":"java-interview-questions-and-answers","status":"publish","type":"page","link":"https:\/\/thetestdata.com\/blog\/java-interview-questions-and-answers\/","title":{"rendered":"Latest Java Interview Questions &amp; Answers"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/thetestdata.com\/blog\/why-string-is-immutable-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">Why String is immutable in Java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-static-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is static in java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-final-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is final in java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-this-word-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is this word in java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-finally-and-where-do-we-use-it\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is finally and where do we use it?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-autoboxing-and-unboxing\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is Autoboxing and unboxing?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-serialization-and-deserialization\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is serialization and deserialization?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-an-abstract-modifier\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is an abstract modifier?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-call-by-reference-and-call-by-value\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is call by reference and call by value?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/primitives-and-non-primitives-datatype-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">Primitives and Non-Primitives datatypes in Java? <\/a><\/li>\n\n\n\n<li>String is primitive or non-primitive?<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-left\">Ans : <strong><code>String<\/code> is a non-primitive (reference) type<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-the-method-overloading\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is the method of overloading?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/why-is-it-important-to-override-hashcode-when-you-override-equals\/\" target=\"_blank\" rel=\"noreferrer noopener\">Why is it important to override HashCode() when you override equals()?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-the-difference-between-a-checked-and-unchecked-exceptions\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is the difference between a checked and unchecked exceptions?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-final-finally-finalize\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between final, finally, finalize?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-abstract-and-interface\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between abstract and interface?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-string-builder-and-string-buffer\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between String Builder and String Buffer?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-array-and-arraylist\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between Array and ArrayList?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-arraylist-and-linkedlist\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between ArrayList and LinkedList?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/how-to-define-dynamic-array\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to define dynamic array?<\/a><\/li>\n\n\n\n<li>Can we create the object for the abstract classes?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: No, we <strong>cannot directly create an object<\/strong> of an abstract class in Java. This is because an abstract class is <em>incomplete<\/em>\u2014it may contain abstract methods that don&#8217;t have a body. Java prevents you from creating an instance of something that&#8217;s not fully defined.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can we create the object for an interface?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: No, you cannot directly create an object of an interface in Java. An interface is like a pure blueprint\u2014it only defines <em>what<\/em> should be done, not <em>how<\/em>. Since there\u2019s no actual implementation in it (at least before Java 8), there\u2019s nothing for Java to instantiate!<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can we create constructor of abstract class?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Yes, absolutely! While you can\u2019t create an object of an abstract class directly, you can define a constructor inside it\u2014and it&#8217;s actually quite useful.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Why define a constructor in an abstract class?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Because when a subclass inherits the abstract class, the constructor of the abstract class is automatically called when the subclass object is created. It allows the abstract class to initialize shared variables or run setup code.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/can-constructor-be-overloaded-explain-why\/\" target=\"_blank\" rel=\"noreferrer noopener\">Can constructor be overloaded. Explain why?<\/a><\/li>\n\n\n\n<li>Can main method be overloaded?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Yes, the <code>main<\/code> method <em>can<\/em> be overloaded in Java\u2014just like any other method!<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can main method be overridden?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: No, the <code>main<\/code> method cannot be overridden in the traditional sense.<\/li>\n\n\n\n<li>\ud83e\udde0 <strong>Here&#8217;s why:<\/strong><br>Overriding applies to instance methods\u2014that is, non-<code>static<\/code> methods that belong to objects.<br>But the <code>main<\/code> method in Java is <strong><code>static<\/code><\/strong>, which means it belongs to the class, <em>not<\/em> an instance of the class. Since <code>static<\/code> methods are not part of the object&#8217;s inheritance structure, they are not overridden, though they can be hidden if redefined in a subclass.<br><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can we override static method?\n<ul class=\"wp-block-list\">\n<li><strong>Ans<\/strong>: No<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can we overload static method?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Yes<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can we write non-abstract methods in Interface?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Yes, since <strong>Java 8<\/strong>, interfaces <em>can<\/em> contain <strong>non-abstract methods<\/strong>, but only in special forms: <strong>default<\/strong> and <strong>static<\/strong> methods.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can we call a non-static variable in static method?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: No, a static method cannot directly access non-static variables or methods\u2014because static methods belong to the class, while non-static members belong to an instance (object) of that class. <a href=\"https:\/\/thetestdata.com\/blog\/can-we-call-a-non-static-variable-in-static-method\/\" target=\"_blank\" rel=\"noreferrer noopener\">Detail&#8230;<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can I execute multiple catch blocks without try will it give me compile time error?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Nope\u2014you <strong>cannot<\/strong> have <code>catch<\/code> blocks in Java without a <code>try<\/code> block. It\u2019s actually a <strong>compile-time error<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-serialization-and-deserialization\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to achieve serialization and deserialization?<\/a><\/li>\n\n\n\n<li>If we declare the main method as private what will happen?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: If you declare the <code>main<\/code> method as <code>private<\/code> in Java, the program will <strong>compile<\/strong>, but it will <strong>fail to run<\/strong>, throwing a <strong>runtime error<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/how-to-check-whether-the-array-is-empty-and-null\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to check whether the array is empty and null?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-are-the-classes-available-in-a-list-interface\/\" target=\"_blank\" rel=\"noreferrer noopener\">What are the classes available in a list interface?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-the-use-of-constructor-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is the use of constructor in java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-hashmap\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is Hashmap? <\/a><\/li>\n\n\n\n<li>Can we store objects in Hashmap and how to retrieve them?\n<ul class=\"wp-block-list\">\n<li>Ans : you can <strong>store objects in a <code>HashMap<\/code><\/strong> as values, and even use objects as keys\u2014as long as they properly implement <code>hashCode()<\/code> and <code>equals()<\/code>. <a href=\"https:\/\/thetestdata.com\/blog\/what-is-hashmap\/\" target=\"_blank\" rel=\"noreferrer noopener\">Details<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-hash-map-and-hash-set\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between Hash Map and Hash Set?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/where-did-you-use-hashmap-in-your-automation-project\/\" target=\"_blank\" rel=\"noreferrer noopener\">Where did you use HashMap in your Automation project?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/access-modifiers-in-java-and-its-scope\/\" target=\"_blank\" rel=\"noreferrer noopener\">Access modifiers in java and its scope?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-meant-by-thread\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is meant by Thread?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-singleton-class-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is singleton class in java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-the-difference-between-static-binding-and-dynamic-binding\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is the difference between static binding and dynamic binding?<\/a><\/li>\n\n\n\n<li>Is Hashmap thread safe?\n<ul class=\"wp-block-list\">\n<li>Ans : No, a <strong><code>HashMap<\/code> is not thread-safe<\/strong> in Java<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-static-how-to-set-value-of-static-variable\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is static, How to set value of static variable?<\/a><\/li>\n\n\n\n<li>Can we overload private methods?\n<ul class=\"wp-block-list\">\n<li><strong>Ans : <\/strong>Yes, <strong>private methods can be overloaded<\/strong> in Java\u2014but with a key detail: they can only be accessed and overloaded <strong>within the same class<\/strong>. <\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Is it possible to extend Final Class?\n<ul class=\"wp-block-list\">\n<li><strong>Ans :<\/strong> No, it is <strong>not possible to extend a <code>final<\/code> class<\/strong> in Java. When a class is declared as <code>final<\/code>, it means that the class is <strong>not allowed to be subclassed<\/strong>\u2014in other words, you cannot create a child class that inherits from it.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Is it possible to override Static method?\n<ul class=\"wp-block-list\">\n<li><strong>Ans :<\/strong> No, <strong>you cannot override a static method<\/strong> in Java. Static methods are <strong>bound at compile time<\/strong>, not at runtime, which means they are associated with the <strong>class itself<\/strong>, not with instances of the class.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Is it possible to overload main method?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Yes, it is absolutely possible to <strong>overload the <code>main()<\/code> method<\/strong> in Java\u2014just like any other method. However, there\u2019s a twist: <strong>only the standard <code>main(String[] args)<\/code> method is called by the JVM<\/strong> when your program starts. Any other overloaded versions must be called manually from within your code.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Is it possible to initialize a variable present in an Interface?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Yes, it is possible\u2014but with a twist. In Java, <strong>any variable declared in an interface is implicitly <code>public<\/code>, <code>static<\/code>, and <code>final<\/code><\/strong>, meaning it must be <strong>initialized at the time of declaration<\/strong>, and its value <strong>cannot be changed<\/strong> later.<\/li>\n\n\n\n<li>Example : \n<ul class=\"wp-block-list\">\n<li>interface Constants {<\/li>\n\n\n\n<li>int MAX_USERS = 100; \/\/ implicitly public static final<\/li>\n\n\n\n<li>}<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-would-happen-if-multiple-inheritance-is-possible-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">What would happen, if multiple inheritance is possible, in Java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/explain-exceptions-hierarchy-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">Explain Exceptions hierarchy in java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/explain-set-and-map-in-java\/\" target=\"_blank\" rel=\"noreferrer noopener\">Explain Set and Map in Java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/explain-about-inheritance\/\" target=\"_blank\" rel=\"noreferrer noopener\">Explain about Inheritance.<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-overloading-and-overriding\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between overloading and overriding?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-encapsulation-and-abstraction\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference Encapsulation and Abstraction ?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-throw-and-throws\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between throw and throws?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-polymorphism\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is polymorphism?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/how-and-when-to-use-interface\/\" target=\"_blank\" rel=\"noreferrer noopener\">How and when to use interface?<\/a><\/li>\n\n\n\n<li>Can we instantiate an interface?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Not directly! You <strong>cannot instantiate an interface<\/strong> because it&#8217;s a contract, not a concrete class. Think of it like a blueprint\u2014you can\u2019t build with a blueprint alone; you need to create a class that uses the blueprint to build something.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can we over load main method in Java?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: Absolutely, we <em>can<\/em> overload the <code>main<\/code> method in Java.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/can-we-override-constructor\/\" target=\"_blank\" rel=\"noreferrer noopener\">Can we override constructor?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/where-do-you-use-polymorphism-in-java-explain-w-r-t-automation\/\" target=\"_blank\" rel=\"noreferrer noopener\">Where do you use polymorphism in java?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/why-do-we-use-finally-and-how-it-differs-from-the-final-keyword\/\" target=\"_blank\" rel=\"noreferrer noopener\">Why do we use finally and how it differs from the final keyword?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/can-we-use-multiple-catches-when-can-we-use-multiple-catches\/\" target=\"_blank\" rel=\"noreferrer noopener\">Can we use multiple catches? When can we use multiple catches?<\/a><\/li>\n\n\n\n<li>How to prevent the override method in Java?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: To prevent a method from being overridden by subclasses, you simply mark the method with the <code>final<\/code> keyword. If a subclass attempts to override a <code>final<\/code> method, the compiler will throw a <strong>compile-time error<\/strong>:<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/why-is-the-main-method-static\/\" target=\"_blank\" rel=\"noreferrer noopener\">Why is the main method static?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-the-use-of-static-variables\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is the use of static variables?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-is-the-difference-between-list-and-set\/\" target=\"_blank\" rel=\"noreferrer noopener\">What is the difference between list and set?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/how-will-you-access-default-and-protected-class\/\" target=\"_blank\" rel=\"noreferrer noopener\">How will you access default and protected class?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/why-object-creation-not-possible-in-abstract-classes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Why Object creation not possible in Abstract classes?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/situations-when-we-use-abstraction-and-interface\/\" target=\"_blank\" rel=\"noreferrer noopener\">Situations when we use abstraction and Interface? <\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/explanation-about-loosely-coupled-and-tightly-coupled\/\" target=\"_blank\" rel=\"noreferrer noopener\">Explanation about loosely coupled and tightly coupled?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/will-java-provide-default-constructor-by-own-how\/\" target=\"_blank\" rel=\"noreferrer noopener\">Will Java provide default constructor by own ? How<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-arraylist-and-linked-listin-which-situation-they-are-used\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between Arraylist and Linked List,In which situation they are used ?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/difference-between-list-list-new-arraylist-and-arraylist-list-new-arraylist\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference between List list = new ArrayList() and ArrayList list = new ArrayList();<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/in-which-situation-the-method-should-be-static-and-when-non-static\/\" target=\"_blank\" rel=\"noreferrer noopener\">In which situation the method should be static and when non static?<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/how-does-hashmap-is-implemented-using-key-value-pair\/\" target=\"_blank\" rel=\"noreferrer noopener\">How does HashMap is implemented using key value pair?<\/a><\/li>\n\n\n\n<li>If there is a class and an abstract class, and the class contains a user-defined constructor along with a main method, which one will be executed first during program execution?\n<ul class=\"wp-block-list\">\n<li><strong>Ans <\/strong>: The main method executes first, as it&#8217;s the program&#8217;s entry point, and then the user-defined constructor runs when the class is instantiated.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/thetestdata.com\/blog\/what-do-you-mean-by-pojo-why-we-use-pojo\/\" target=\"_blank\" rel=\"noreferrer noopener\">What do you mean by POJO why we use POJO?<\/a><\/li>\n<\/ul>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Ans : String is a non-primitive (reference) type.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"class_list":["post-285","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thetestdata.com\/blog\/wp-json\/wp\/v2\/pages\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thetestdata.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thetestdata.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thetestdata.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thetestdata.com\/blog\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":12,"href":"https:\/\/thetestdata.com\/blog\/wp-json\/wp\/v2\/pages\/285\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/thetestdata.com\/blog\/wp-json\/wp\/v2\/pages\/285\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/thetestdata.com\/blog\/wp-json\/wp\/v2\/media?parent=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}