what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / emilie jose
Access Specifiers
They are used to set the visibility of a
class or variable or a method. Classes can be Public or
Default.Variables and methods can be
public,private,protected or default
Access Modifiers
They are used to optionally declare a
field.That is we can set access modifiers for class,method
or variables. Classes can have modifier like Abstract.
Methods can have abstract, native,synchronised etc..
| Is This Answer Correct ? | 91 Yes | 47 No |
Post New Answer View All Answers
What is difference between protected and private?
What is a marker interface?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What is a class component?
What are the differences between getting and load method?
What is a double vs float?
how to create constants in java?
Can we override private constructor in java?
How do you empty a list in java?
How do you bind variables?
What is continuity of a function?
Explain java thread life cycle.
What are voids?
What is use of a abstract variable?