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
How do I convert a string to an int in java?
Why is the main method static?
How to print nodes of a Binary tree?
What is generic type?
Does java allow default arguments?
Can we override tostring method in java?
How can you add and remove nodes in jtree?
What is an accessor?
what is synchronization and why is it important? : Java thread
Which variables are stored in stack?
Does java runtime require a license?
Write a function to print Fibonacci series and Tribonacci series?
What is autoboxing and unboxing?
Is arraylist a class in java?
What are the two ways of implementing multi-threading in java?