Thursday, 8 May 2014

Different between Access specifiers and Access modifiers




From C++:

Public,private,protected,default are Access specifier. But rest of the final, static,synchronized,abstract,native,strictfp,transiant,volatile are Access modifiers.

From Java

we dont have Access specifier terminalogy in java. All 12 Public,private,protected,default, final, static,synchronized,abstract,native,strictfn,transiant,volatile  are Access modifiers only.

The only Access modifiers allowed for top level classes are public,default,final,abstract,strictfp

No comments:

Post a Comment