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
Is space a char?
What is a flag variable?
What is the static field modifier?
Can we extend singleton class in java?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is the common usage of serialization?
What is fail first in java?
What is the type of lambda expression?
What is meant by main method?
What are the advantages of assembly language?
What is byte code and why is it important to java’s use for internet programming?
What is the program development process?
Explain about narrowing conversion in java?
Which are the two subclasses under exception class?
When will we prefer to use set and list in java and why?