Access Modifiers and Specifiers

prashantSum's Avatar
Contributor
What are Access Modifiers and
What are Access Specifiers
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
There is no difference between Access Modifiers and Access Specifiers. Its just different names for the same Stuff.

Quote:
private
public
protected
0
prashantSum's Avatar
Contributor
then some people say
Access Modifiers are
transient
static...etc

what are those
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Transients and statics are different and there is nothing relating to the difference between Access Modifiers and Specifiers.

Transient
Temporary; transitory; not lasting or enduring. or Varying in time, as opposed to steady state.

Static
For class variables, the variable is shared by all objects of the class and retains its value within the entire program.
For internal variables, the variable has block scope and retains its value between function calls.

Thanks
Shabbir Bhimani
0
prashantSum's Avatar
Contributor
thanks for the reply
0
aniruddha's Avatar, Join Date: May 2007
Newbie Member
hi
expalian transient in java with example
0
aniruddha's Avatar, Join Date: May 2007
Newbie Member
can we change access modifiers in case of over loading and overriding
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by aniruddha
can we change access modifiers in case of over loading and overriding
Yup.