what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / sujit kumar nishank
Access specifier :- it is used in java when we declare a method,viarable or class then it specify how it access to other classes .
. it is of 4 types
public(access everywhere like any classes and any package and inherited)
private(access itself with in the package and it is not inherited)
protected(access any classes with in the same package and it is inherited)
defaults(it same as protected but not inherited )
access modifier
final
static
abstract
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How many types of constructors are used in java?
What is structure of java heap? What is perm gen space in heap?
What is the difference between a method and a function in alice?
Why is stringbuffer called mutable?
What is currentthread()?
What is string builder?
You're given a Boolean 2D matrix, can you find the number of islands?
Is java ee a framework?
Is java platform independent?
What does || || mean in math?
What is the string function?
What are internal and external variables?
What is the difference between length and size in java?
What is string subsequence method?
Is zero a natural number?