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
What is object english?
What is a local class in java?
What does \ mean in regex?
What is byte value?
How do you use find and replace?
Define an applet in java?
Why are lists ordered in java?
What is the difference between state-based unit testing and interaction-based unit testing?
What does a void function return?
I want to persist data of objects for later use. What is the best approach to do so?
What is meant by polymorphism?
Difference between serialization and deserialization in java?
How do you sort in ascending order in java?
Which is better stringbuffer or stringbuilder?
How many threads can java run?