{"id":299,"date":"2015-12-08T08:02:04","date_gmt":"2015-12-08T08:02:04","guid":{"rendered":"http:\/\/abhiandroid.com\/java\/?page_id=299"},"modified":"2016-02-25T06:22:06","modified_gmt":"2016-02-25T06:22:06","slug":"keywords-in-java-with-examples","status":"publish","type":"page","link":"https:\/\/abhiandroid.com\/java\/keywords-in-java-with-examples","title":{"rendered":"Keywords In JAVA With Examples"},"content":{"rendered":"<p>Keywords in JAVA are predefined list of keywords which has a specific meaning and cannot be used in the Java programming language as an identifier, such as the name of a variable, method, class, function, or label. JAVA has total of 50 such keywords.<\/p>\n<hr \/>\n<h4><strong>List of Keywords In JAVA:<\/strong><\/h4>\n<p>Abstract, Continue, For, New, switch, assert, default, goto, package, synchronized, boolean, do, if, private, this, break, double, implements, protected, throw, byte, else, import, public, throws, case, enum****, instanceof, return, transient, catch extends, int, short, try, char, final, interface, static, void, class, finally, long, strictfp**, volatile, const*, float, native, super and while<\/p>\n<hr \/>\n<h4><strong>Keywords Explanation With Examples:<\/strong><\/h4>\n<p>As we said predefined keywords cannot be used in the JAVA language as an identifier. Lets try to create a <a href=\"\/java\/variables-with-examples\">variable<\/a> name while:<\/p>\n<pre>int while;<\/pre>\n<p>You will get Sytax error &#8220;while&#8221;, invalid VariableDeclarator. So above keywords cannot be used as an identifier and that is also the reason why they are also called as <strong>reserved word or reserved identifier<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keywords in JAVA are predefined list of keywords which has a specific meaning and cannot be used in the Java programming language as an identifier, such as the name of a variable, method, class, function, or label. JAVA has total of 50 such keywords. List of Keywords In JAVA: Abstract, Continue, For, New, switch, assert, &hellip; <a href=\"https:\/\/abhiandroid.com\/java\/keywords-in-java-with-examples\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Keywords In JAVA With Examples<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"home.php","meta":{"footnotes":""},"class_list":["post-299","page","type-page","status-publish","hentry"],"psp_head":"<title>Keywords In JAVA With Examples \u2013 Abhi Android<\/title>\r\n<meta name=\"description\" content=\"Keywords in JAVA are predefined list of keywords which has a specific meaning and cannot be used in the Java programming language as an identifier, such as the name of a variable, method, class, function, or label. JAVA has total of 50 such keywords.\" \/>\r\n<meta name=\"robots\" content=\"index,follow\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/abhiandroid.com\/java\/keywords-in-java-with-examples\" \/>\r\n","_links":{"self":[{"href":"https:\/\/abhiandroid.com\/java\/wp-json\/wp\/v2\/pages\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/abhiandroid.com\/java\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/abhiandroid.com\/java\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/java\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/abhiandroid.com\/java\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":0,"href":"https:\/\/abhiandroid.com\/java\/wp-json\/wp\/v2\/pages\/299\/revisions"}],"wp:attachment":[{"href":"https:\/\/abhiandroid.com\/java\/wp-json\/wp\/v2\/media?parent=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}