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 aggregation in java?
What is boolean keyword in java?
Can a method be overloaded based on different return type but same argument type?
When is an object subject to garbage collection?
What an i/o filter?
What are benefits of java?
Explain about sets?
How can we make a class singleton?
Can a main method be overloaded?
Can a source file contain more than one class declaration?
What is replacefirst in java?
What function extracts specified characters from a string?
What do you mean by multithreaded program?
What is numel matlab?
What does compareto () do in java?