{"id":2159,"date":"2025-02-27T16:52:53","date_gmt":"2025-02-27T11:22:53","guid":{"rendered":"https:\/\/isdtp.selvamtech.edu.in\/?p=2159"},"modified":"2025-02-27T16:52:53","modified_gmt":"2025-02-27T11:22:53","slug":"java-final-mcq","status":"publish","type":"post","link":"https:\/\/isdtp.selvamtech.edu.in\/?p=2159","title":{"rendered":"Java \u2013 Final &#8211; MCQ"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"font-family: arial, helvetica, sans-serif;\">In Java, the final keyword is used to define constants, prevent method overriding, and prevent inheritance. When applied to a variable, it makes the value unmodifiable after initialization. For methods, it ensures they cannot be overridden in subclasses, and for classes, it prevents further subclassing. This keyword promotes immutability and ensures program stability by enforcing these restrictions.<\/span><\/p>\n<div class=\"wp-block-pdfemb-pdf-embedder-viewer\"><a href=\"https:\/\/isdtp.selvamtech.edu.in\/wp-content\/uploads\/2025\/02\/10.-Final.docx.pdf\" class=\"pdfemb-viewer\" style=\"\" data-width=\"max\" data-height=\"max\" data-toolbar=\"top\" data-toolbar-fixed=\"on\">10. Final.docx<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In Java, the final keyword is used to define constants, prevent method overriding, and prevent inheritance. When applied to a variable, it makes the value<span class=\"more-button\"><a href=\"https:\/\/isdtp.selvamtech.edu.in\/?p=2159\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Java \u2013 Final &#8211; MCQ<\/span><\/a><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_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","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[26,5],"tags":[],"class_list":["post-2159","post","type-post","status-publish","format-standard","hentry","category-java-programming","category-technical-programming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=\/wp\/v2\/posts\/2159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2159"}],"version-history":[{"count":1,"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=\/wp\/v2\/posts\/2159\/revisions"}],"predecessor-version":[{"id":2161,"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=\/wp\/v2\/posts\/2159\/revisions\/2161"}],"wp:attachment":[{"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/isdtp.selvamtech.edu.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}