Navigator


Archive

201139
201230
201312
20151
201633
201755
201865
201943

Creation date:

Last update: 13 November, 2016

Java access and nonaccess modifiers

  class method variable member (field) local variable / method arguments interface interface method interface variable
Access modifiers
public + + + + + +
protected + +
default + + + +
private + +
Nonacces modifiers
final + + + + +
static + + + +
abstract + + + +
transient +
synchronized +
native +
strictfp + + +
volatile +

* final modifier can not be used with abstract and private.

Author: Jafar N.Aliyev (Jsoft)

Read also

Use instanceof carefully

Usage of 'instanceof' method in some situations will give you a compilation error

Static methods can not be overriden

Here I explain, why static methods can not be overriden

© Copyright

All articles in this site are written by Jafar N.Aliyev. Reproducing of any article must be followed by the author name and link to the site of origin(this site). This site also keeps the same rules relative to the articles of other authors.