Keywords Reserved word in java logo

Keywords/Reserved word in java Part . 7

Keywords/Reserved word in java

Keyword are the predefined word, It has some functionality (working) & its functionality (working) is register with jvm.

Total Reserved Keywords in java

48 keyword Related to………… 

1 – Datatypes/return types :-

     byte,short,int,long,float,double,char,Boolean,void 

2 – Access modifiers/security Related  :-

     private,public,protected,static,final,abstract,native,voatie,transient,synchronized,strictfp

3 – Flow controlling Related keywords  :-

      If,else,for,while,do,case,default,break,return,continue,switch,assert  

4 – Class Related keywords  :-        

      Class,extends,import,implements,interface,package,enum

5 – Object Related keywords :-

      this,super,new,instanceof

6 – Exception handling related keywords :-

      try,catch,throw,throws,finally

Reserved words is also predefined word but it does not have any valid functionality and its functionality is not register with jvm.

Ex. :- const,goto (used in C++)but not used in java.

In java instead of “const” word we can use final keyword.

In java instead of “goto” word we can use break,continue,return keyword.

Note :-

All the reserved word can’t be keywords.

Total Reserved word (53) but

Keywords  ….50….   used keywords— 48—–unused keywords—-2(goto,const)

Reserved literals —– true,false,null                 These are not a keywords.

All keywords are in small letters.

Rating: 5 out of 5.

Now Friends If you like this post please tell us how can we help you to provide better knowledge?

If this post is use full for you please share the post with your friends.

Please follow as facebook : www.facebook.com

Please follow as twitter : www.twitter.com

And more information please visit here : www.weindians.in

Please Subscribe on youtube : www.youtube.com

Leave a Reply

Your email address will not be published.

%d bloggers like this: