{"id":11,"date":"2009-06-07T15:05:46","date_gmt":"2009-06-07T13:05:46","guid":{"rendered":"http:\/\/dirk.forbiddendream.be\/?p=11"},"modified":"2016-01-07T10:50:33","modified_gmt":"2016-01-07T10:50:33","slug":"use-of-private-static-final-declarations","status":"publish","type":"post","link":"https:\/\/dirk.schuermans.me\/?p=11","title":{"rendered":"Use of private static final declarations"},"content":{"rendered":"<p>When we declare a variable like this:<\/p>\n<pre name=\"code\" class=\"java\">private static final String foo = \"FOO!\";<\/pre>\n<ul>\n<li>private\n<ul>\n<li>Variable can only be used in the current class, not in any parent or child classes<\/li>\n<\/ul>\n<\/li>\n<li>static\n<ul>\n<li>There will only be 1 instance throughout the entire class<\/li>\n<\/ul>\n<\/li>\n<li>final\n<ul>\n<li>&#8220;FOO!&#8221; will remain the value of this variable at all times, it cannot be changed.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When we declare a variable like this: private static final String foo = &#8220;FOO!&#8221;; private Variable can only be used in the current class, not in any parent or child classes static There will only be 1 instance throughout the entire class final &#8220;FOO!&#8221; will remain the value of this variable at all times, it &hellip; <a href=\"https:\/\/dirk.schuermans.me\/?p=11\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Use of private static final declarations<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[38],"tags":[],"_links":{"self":[{"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/posts\/11"}],"collection":[{"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11"}],"version-history":[{"count":2,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":793,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions\/793"}],"wp:attachment":[{"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dirk.schuermans.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}