{"id":42,"date":"2016-01-05T05:03:41","date_gmt":"2016-01-05T05:03:41","guid":{"rendered":"http:\/\/kaizen-koka.com\/?p=42"},"modified":"2016-01-05T05:03:41","modified_gmt":"2016-01-05T05:03:41","slug":"core-java-assignment-2","status":"publish","type":"post","link":"https:\/\/kaizen-koka.com\/?p=42","title":{"rendered":"Core Java Assignment 2"},"content":{"rendered":"<p>1) Try implementing Two interfaces with same method name &#038; signature and same return type?<br \/>\n2) Try implementing Two interfaces with same method name with different return type ?<br \/>\n3) Try adding a static block and instance block inside interface ?<br \/>\n4) Add a static block and instance block inside abstract class and identify the sequence of execution ?<br \/>\n5) Create a class static block, instance block and default constructor. create object for the same class and let me know the sequence of execution ?<br \/>\n6) Create object for a class which implements two interfaces and an abstract class and verify the visibility of all the methods(both dummy and concrete).<br \/>\n7) create a parent class &#8216;P&#8217; and child classs &#8216;C&#8217;. P having methods variables and 2 methods. In child class override all variables and override only one method. create Class &#8216;C&#8217; specific methods and variables as well.<br \/>\n   a) create a parent reference variable and assign child class. Verify scope of all parent and child member through parent reference variable.<\/p>\n<p>9) Come up with an awesome your Own object and build interfaces and abstract classes around.<br \/>\n10) Can we override a construtors?<br \/>\n11) Cam we overload a construtor?<br \/>\n12)Is java follow pass-by-value or pass-by-reference ?<br \/>\n13)Apply all access specifiers to class, methods and variables. Identify by writing which ones not allowed and which ones allowed?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) Try implementing Two interfaces with same method name &#038; signature and same return type? 2) Try implementing Two interfaces with same method name with different return type ? 3) [&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":[8,3,2],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-assignments","category-java","category-technology"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p70lnf-G","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/42","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=42"}],"version-history":[{"count":2,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":44,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions\/44"}],"wp:attachment":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}