what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / vikram singh rawat
Access Specifier are like:
1) public
2) private
3) protected
4) Default
Access Specifier or modifiers in java control the access
and visibility of classes and class members.
Access Modifiers are like:
1) Volatile
2) Native
3) Transient
Field and method modifiers are keywords used to identify
fields and methods that need to be declared for controlling
access to users. Some of these can be used along with
public and protected keywords.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Does .length start 0 java?
How many bytes are a float?
Can we change the scope of the overridden method in the subclass?
Can we override protected method in java?
Why do we need wrapper classes?
What is type inference in java8?
What is the difference between char and char *?
What is a string token?
How do you override a variable in java?
What are locale settings?
What is the difference between inner class and nested class?
What is generic type?
What is the difference between abstraction and encapsulation?
What is operator overloading. Is it is supported in java?
Explain the difference between private, public, package and protected in java?