{"id":17423,"date":"2016-12-11T13:43:10","date_gmt":"2016-12-11T13:43:10","guid":{"rendered":"https:\/\/www.whizlabs.com\/?p=17423"},"modified":"2020-08-31T12:45:04","modified_gmt":"2020-08-31T12:45:04","slug":"ocajp-this-super-keywords","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/ocajp-this-super-keywords\/","title":{"rendered":"OCAJP &#8211; How to use this and super keywords in Java?"},"content":{"rendered":"<p>We are writing the series of posts on <a href=\"http:\/\/whizlabs.com\/ocajp-scja\/\" target=\"_blank\" rel=\"noopener\">OCAJP certification exam<\/a>. We are offering <a href=\"https:\/\/www.whizlabs.com\/oracle-certified-associate-java-se-7-programmer\/\">OCAJP 7,<\/a> OCAJP 8, <a href=\"https:\/\/www.whizlabs.com\/oracle-certified-professional-java-se-6-programmer\/\">OCPJP 6<\/a>, <a href=\"https:\/\/www.whizlabs.com\/oracle-certified-professional-java-se-7-programmer\/\">OCPJP 7<\/a> and <a href=\"https:\/\/www.whizlabs.com\/ocpjp-scjp\/\">OCPJP 8<\/a> for programmer level certifications. Keep watching our blog updates for the interesting tips on certification topics.<\/p>\n<p>We have also written about <a href=\"https:\/\/www.whizlabs.com\/blog\/how-to-prepare-for-ocajp-8-certification\/\" title=\"How to prepare for OCAJP 8 Certification\">how to prepare for OCAJP<\/a> and <a href=\"https:\/\/www.whizlabs.com\/blog\/how-to-prepare-for-ocpjp-exam-2\/\" title=\"How to prepare for OCPJP Exam\">how to prepare for OCPJP certifications<\/a>. This posts are very useful if you are looking for guidance on preparing for the certification exams.<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/wp-content\/uploads\/2016\/12\/ocajp-this-super-keywords.png\"><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/wp-content\/uploads\/2016\/12\/ocajp-this-super-keywords.png\" alt=\"How to use this and super keywords?\" width=\"698\" height=\"315\" class=\"aligncenter  wp-image-17425\" \/><\/a><\/p>\n<p>This post is about the OCAJP exam objective &#8220;<strong>Use super and this to access objects and constructors<\/strong>&#8220;. In the exam , you will be tested about super,this keywords usage.\u00a0Here we would try to cover all the points related to this exam objective. In the following sections, we explain how to use super and this keyword with examples.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ea7e02;color:#ea7e02\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ea7e02;color:#ea7e02\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.whizlabs.com\/blog\/ocajp-this-super-keywords\/#What_is_the_use_of_this_keyword_in_Java\" >What is the use of this keyword in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.whizlabs.com\/blog\/ocajp-this-super-keywords\/#What_is_the_use_of_this\" >What is the use of this()?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.whizlabs.com\/blog\/ocajp-this-super-keywords\/#What_is_the_use_of_super\" >What is the use of super()?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.whizlabs.com\/blog\/ocajp-this-super-keywords\/#Summary\" >Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.whizlabs.com\/blog\/ocajp-this-super-keywords\/#Practice_Questions\" >Practice Questions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.whizlabs.com\/blog\/ocajp-this-super-keywords\/#Technical_Support\" >Technical Support<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_is_the_use_of_this_keyword_in_Java\"><\/span>What is the use of this keyword in Java?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&#8220;this&#8221; keyword is used for referring the curreynt instance of an object. If you use this keyword, that means you are referring the current context or instance of that class. This simplifies the need to create an object using the &#8220;new&#8221; keyword.<\/p>\n<ul>\n<li>&#8220;this&#8221; keyword is used to access present class object instance variables.<\/li>\n<li>&#8220;this&#8221; is mostly used in constructors while initializing instance variables if constructor parameter names are same as instance variables.<\/li>\n<li>&#8220;this&#8221; keyword can be used in the method to access the instance variables.<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test {\n\tint num1;\n\tint num2;\n\n\tpublic Test(int num1, int num2) {\n\t\tthis.num1 = num1;\n\t\tthis.num2 = num2;\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tTest t = new Test(7, 8);\n\t\tSystem.out.println(t.num1 + \" \" + t.num2);\/\/it prints 7 8\n\t}\n\n}\n<\/pre>\n<ul>\n<li>If constructor parameter names and instance variables are different, you are not required to use this. If you use this, there won&#8217;t be any compile time error.<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test {\n\tint num1;\n\tint num2;\n\n\tpublic Test(int n1, int n2) {\n\t\tnum1 = n1;\n\t\tnum2 = n2;\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tTest t = new Test(7, 8);\n\t\tSystem.out.println(t.num1 + \" \" + t.num2);\/\/ it prints 7 8\n\t}\n\n}\n<\/pre>\n<ul>\n<li>When super class and sub class contains same variable names,sub class variable hides the super class variable . It is variable hiding.<\/li>\n<li>In that situation if you print that variable , JVM always print sub class variable value<\/li>\n<li>Look at below example to understand this point<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test extends Test1 {\n\tint oca = 8;\n\n\tpublic void printValue() {\n\t\tSystem.out.println(oca);\/\/prints 8\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tt.printValue();\n\t}\n\n}\n\nclass Test1 {\n\tint oca = 7;\n}\n<\/pre>\n<ul>\n<li>In the above situation, you should use &#8220;this&#8221; to call present class current object instance variable and super to call super class instance variable<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test extends Test1 {\n\tint oca = 8;\n\n\tpublic void printValue() {\n\t\tSystem.out.println(this.oca + \" \" + super.oca);\/\/ prints 8 7\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tt.printValue();\n\t}\n\n}\n\nclass Test1 {\n\tint oca = 7;\n}\n<\/pre>\n<ul>\n<li>You can also use &#8220;this&#8221; to call instance method from another instance method<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test {\n\tint oca = 8;\n\n\tpublic void printValue() {\n\t\tSystem.out.println(this.oca);\/\/ prints 8\n\t}\n\n\tpublic void call() {\n\t\tthis.printValue();\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tt.call();\n\t}\n\n}\n<\/pre>\n<ul>\n<li>You can use super to call parent class method when that method is overridden in sub class<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test extends Test1 {\n\tint oca = 8;\n\n\tpublic int giveValue() {\n\t\treturn oca;\n\t}\n\n\tpublic void call() {\n\t\tSystem.out.println(giveValue());\/\/ prints 8\n\t\tSystem.out.println(super.giveValue());\/\/ prints 7\n\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tt.call();\n\t}\n\n}\n\nclass Test1 {\n\tint oca = 7;\n\n\tpublic int giveValue() {\n\t\treturn oca;\n\t}\n\n}\n<\/pre>\n<ul>\n<li>You can&#8217;t use both this, super in static method. If you use you get compile time error<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test extends Test1 {\n\tint oca = 8;\n\n\tpublic int giveValue() {\n\t\treturn oca;\n\t}\n\n\tpublic static void call() {\n\t\tSystem.out.println(this.giveValue());\/\/ generates compile time\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/ error,this can't be used in\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/ static method\n\t\tSystem.out.println(super.giveValue());\/\/ generates compile time\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/ error,super can't be used in\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/ static method\n\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tt.call();\n\t}\n\n}\n\nclass Test1 {\n\tint oca = 7;\n\n\tpublic int giveValue() {\n\t\treturn oca;\n\t}\n\n}\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"What_is_the_use_of_this\"><\/span>What is the use of this()?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>You can use this() to call from constructor to constructor of same class<\/li>\n<li>When you are calling constructor using this(), you need to pass corresponding arguments to this()<\/li>\n<li>Let us see the below example to understand this point<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test {\n\n\tint num1;\n\tint num2;\n\n\tTest() {\n\t\tthis(7);\/\/ line 1\n\t}\n\n\tTest(int num1) {\n\t\tthis(num1, 8);\/\/ line 2\n\t}\n\n\tTest(int num1, int num2) {\n\t\tthis.num1 = num1;\n\t\tthis.num2 = num2;\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tSystem.out.println(t.num1 + \" \" + t.num2);\n\t}\n\n}\n\n<\/pre>\n<ul>\n<li>At line 1 , you are calling one argument constructor. so you need to pass one argument<\/li>\n<li>At line 2 , you are calling two argument constructor. so you need to pass two arguments<\/li>\n<\/ul>\n<ul>\n<li>In every constructor , the first statement should be either this() or super() (may contain arguments)<\/li>\n<li>If you write this() after first statement of constructor, you will get compile time error<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test {\n\n\tint num1;\n\tint num2;\n\n\tTest() {\n\t\tthis.num1=9;\n\t\tthis(7,8);\/\/ line 1\n\t}\n\tTest(int num1, int num2) {\n\t\tthis.num1 = num1;\n\t\tthis.num2 = num2;\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tSystem.out.println(t.num1 + \" \" + t.num2);\n\t}\n\n}\n\n<\/pre>\n<ul>\n<li>You will get compile time error at line1 because this() statement is after first statement in constructor<\/li>\n<li>So In every constructor , the first statement should be either this() or super() (may contain arguments)<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"What_is_the_use_of_super\"><\/span>What is the use of super()?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>You can use super() to call from one constructor of sub class to another constructor of super class<\/li>\n<li>When you are calling super class constructor using super(), you need to pass corresponding arguments to super()<\/li>\n<li>Let us see the below example to understand this point<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test extends Test1 {\n\n\tTest() {\n\t\tthis(7);\n\t}\n\n\tTest(int num1) {\n\t\tthis(num1, 8);\n\t}\n\n\tTest(int num1, int num2) {\n\t\tsuper(num1, num2);\/\/ line 1\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tSystem.out.println(t.num1 + \" \" + t.num2);\n\t}\n}\n\nclass Test1 {\n\tint num1;\n\tint num2;\n\n\tTest1(int num1, int num2) {\n\t\tthis.num1 = num1;\n\t\tthis.num2 = num2;\n\t}\n\n}\n<\/pre>\n<ul>\n<li>At line 1 , you are calling two argument constructor of super class (Test1). so you need to pass two arguments<\/li>\n<\/ul>\n<ul>\n<li>In every constructor , the first statement should be either this() or super() (may contain arguments)<\/li>\n<li>If you write super() after first statement of constructor, you will get compile time error<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test extends Test1 {\n\n\tTest() {\n\t\tthis(7);\n\t}\n\n\tTest(int num1) {\n\t\tthis(num1, 8);\n\t}\n\n\tTest(int num1, int num2) {\n\tSystem.out.println(\"ocajp\");\n\t\tsuper(num1, num2);\/\/ line 1\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\t\tSystem.out.println(t.num1 + \" \" + t.num2);\n\t}\n}\n\nclass Test1 {\n\tint num1;\n\tint num2;\n\n\tTest1(int num1, int num2) {\n\t\tthis.num1 = num1;\n\t\tthis.num2 = num2;\n\t}\n\n}\n<\/pre>\n<ul>\n<li>You will get compile time error at line1 because super() statement is after first statement in constructor<\/li>\n<li>So In every constructor , the first statement should be either this() or super() (may contain arguments)<\/li>\n<\/ul>\n<ul>\n<li>In every constructor , the first statement should be either this() or super() (may contain arguments)<\/li>\n<li>If you didn&#8217;t type anything either this() or super(), Java compiler will insert super() statement with no arguments<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><strong>Example :<\/strong><\/span><\/p>\n<pre>public class Test extends Test1 {\n\n\tpublic static void main(String[] args) {\n\n\t\tTest t = new Test();\n\n\t}\n}\n\nclass Test1 {\n\n\tTest1() {\n\t\tSystem.out.println(\"super\");\n\t}\n\n}\n<\/pre>\n<p>It prints<\/p>\n<pre>super\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>It is important to remember the this and super keyword rules for OCAJP and OCPJP certification exams. This article have provided the example programs to use the various scenarios. You have to practice yourself to understand the concepts and remember all the concepts for answering the exam questions.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Practice_Questions\"><\/span>Practice Questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>It is important to practice more number of questions for preparing for the OCAJP certification exam. We have prepared 600+ high quality questions that covers all the exam objectives and provides explanation for all the option given for the question. This would help you to improve our confidence on the exam before you are taking the real exam.<\/p>\n<ul>\n<li><a href=\"http:\/\/whizlabs.com\/ocajp-scja\/\" target=\"_blank\" rel=\"noopener\"><strong>600+ Practice Questions for OCAJP Exam<\/strong><\/a><\/li>\n<li><a href=\"http:\/\/whizlabs.com\/ocpjp-scjp\/\" target=\"_blank\" rel=\"noopener\"><strong>600+ Practice Questions for OCPJP Exam<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.whizlabs.com\/blog\/how-to-prepare-for-ocajp-8-certification\/\" title=\"How to prepare for OCAJP 8 Certification\"><strong>How to prepare for OCAJP exam?<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.whizlabs.com\/blog\/how-to-prepare-for-ocpjp-exam-2\/\" title=\"How to prepare for OCPJP Exam\">How to prepare for OCPJP exam?<\/a><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Technical_Support\"><\/span>Technical Support<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you are looking for any technical support like more explanation on each questions or clarifications, we have a dedicated support for Java certification to answer all your queries. You can drop us a mail at info@whizlabs.com with your queries. We would respond to your questions within 12 hours of time.<\/p>\n<p><strong>Good luck for your exam preparation!!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are writing the series of posts on OCAJP certification exam. We are offering OCAJP 7, OCAJP 8, OCPJP 6, OCPJP 7 and OCPJP 8 for programmer level certifications. Keep watching our blog updates for the interesting tips on certification topics. We have also written about how to prepare for OCAJP and how to prepare for OCPJP certifications. This posts are very useful if you are looking for guidance on preparing for the certification exams. This post is about the OCAJP exam objective &#8220;Use super and this to access objects and constructors&#8220;. In the exam , you will be tested [&hellip;]<\/p>\n","protected":false},"author":220,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[13],"tags":[],"class_list":["post-17423","post","type-post","status-publish","format-standard","hentry","category-java"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"profile_24":false,"profile_48":false,"profile_96":false,"profile_150":false,"profile_300":false,"tptn_thumbnail":false,"web-stories-poster-portrait":false,"web-stories-publisher-logo":false,"web-stories-thumbnail":false},"uagb_author_info":{"display_name":"Aditi Malhotra","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/aditi\/"},"uagb_comment_info":0,"uagb_excerpt":"We are writing the series of posts on OCAJP certification exam. We are offering OCAJP 7, OCAJP 8, OCPJP 6, OCPJP 7 and OCPJP 8 for programmer level certifications. Keep watching our blog updates for the interesting tips on certification topics. We have also written about how to prepare for OCAJP and how to prepare&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/17423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/220"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=17423"}],"version-history":[{"count":1,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/17423\/revisions"}],"predecessor-version":[{"id":71607,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/17423\/revisions\/71607"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=17423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=17423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=17423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}