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
What are the restrictions imposed by a Security Manager on Applets?.
What is abstraction in java?
Why java doesn’t support multiple inheritances?
What is a dynamic array java?
Which one will take more memory: an int or integer?
What is function and method in java?
If a class is declared without any access modifiers, where can the class be accessed?
What is meant by stack and queue?
Are primitives objects?
What does nextint () do in java?
What is string length in java?
What are loops in java? What are three types of loops?
What is a void method?
Can you declare an interface method static?
What are the differences between throw and throws?