{"id":37,"date":"2016-01-04T03:44:48","date_gmt":"2016-01-04T03:44:48","guid":{"rendered":"http:\/\/kaizen-koka.com\/?p=37"},"modified":"2016-01-07T06:13:24","modified_gmt":"2016-01-07T06:13:24","slug":"access-specifiers-access-modifiers-visibility-modifiers","status":"publish","type":"post","link":"https:\/\/kaizen-koka.com\/?p=37","title":{"rendered":"Access specifiers \/ Access Modifiers \/ Visibility Modifiers"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Below matrix provides the details about access specifier and their scope on variable, methods and classes.<\/p>\n<p><strong>Static<\/strong> :<\/p>\n<ol>\n<li>Only one copy will be created in memory (i.e same copy will be available across all the objects created for a particular class)<\/li>\n<li>Can be applied to variables, methods, inner classes and blocks.<\/li>\n<li>Static members will be loaded along with Class loading.<\/li>\n<li>Static members can also be accessed through Class Name along with through the object.<\/li>\n<li>non-static members can not be accessed inside static methods <strong>directly<\/strong>.<\/li>\n<li>non-static members can be accessed inside static methods by creating object of the non-static member of the class.<\/li>\n<li>static members can be accessed inside non static members directly.<\/li>\n<\/ol>\n<p><strong>Access Specifiers Scope<\/strong><br \/>\n<a href=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/Access-Secifiers-scope-in-packages1.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"59\" data-permalink=\"https:\/\/kaizen-koka.com\/?attachment_id=59\" data-orig-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/Access-Secifiers-scope-in-packages1.jpg?fit=598%2C180&amp;ssl=1\" data-orig-size=\"598,180\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Access Secifiers scope in packages\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/Access-Secifiers-scope-in-packages1.jpg?fit=300%2C90&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/Access-Secifiers-scope-in-packages1.jpg?fit=598%2C180&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/Access-Secifiers-scope-in-packages1.jpg?resize=598%2C180\" alt=\"Access Secifiers scope in packages\" width=\"598\" height=\"180\" class=\"aligncenter size-full wp-image-59\" srcset=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/Access-Secifiers-scope-in-packages1.jpg?w=598&amp;ssl=1 598w, https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/Access-Secifiers-scope-in-packages1.jpg?resize=300%2C90&amp;ssl=1 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/AccessModifiers.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"40\" data-permalink=\"https:\/\/kaizen-koka.com\/?attachment_id=40\" data-orig-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/AccessModifiers.jpg?fit=819%2C460&amp;ssl=1\" data-orig-size=\"819,460\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"AccessModifiers\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/AccessModifiers.jpg?fit=300%2C168&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/AccessModifiers.jpg?fit=819%2C460&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/AccessModifiers.jpg?resize=819%2C460\" alt=\"AccessModifiers\" width=\"819\" height=\"460\" class=\"aligncenter size-full wp-image-40\" srcset=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/AccessModifiers.jpg?w=819&amp;ssl=1 819w, https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/01\/AccessModifiers.jpg?resize=300%2C168&amp;ssl=1 300w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Below matrix provides the details about access specifier and their scope on variable, methods and classes. Static : Only one copy will be created in memory (i.e same copy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3,2],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-java","category-technology"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p70lnf-B","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=37"}],"version-history":[{"count":6,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions\/60"}],"wp:attachment":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}