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


Please Help Members By Posting Answers For Below Questions

What is object english?

576


What is a local class in java?

576


What does \ mean in regex?

617


What is byte value?

549


How do you use find and replace?

501






Define an applet in java?

627


Why are lists ordered in java?

537


What is the difference between state-based unit testing and interaction-based unit testing?

491


What does a void function return?

541


I want to persist data of objects for later use. What is the best approach to do so?

587


What is meant by polymorphism?

530


Difference between serialization and deserialization in java?

645


How do you sort in ascending order in java?

516


Which is better stringbuffer or stringbuilder?

521


How many threads can java run?

553