Hot Posts

Access and Non-Access Modifiers

This table shows what modifiers are legal to use with classes, variables and methods.

Modifiers Classes Variables Methods
Access
private Yes Yes
package default Yes Yes Yes
protected Yes Yes
public Yes Yes Yes
Non-Access
final Yes Yes Yes
static Yes Yes
abstract Yes Yes (no body)
synchronized Yes
strictfp Yes Yes
native Yes (no body)
transient Yes
volatile Yes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: