What is the difference between Access Modifier and Access
specifier?

Answer Posted / nilesh.bhil@gmail.com

Access Modifier can define the ristrict level of visibility.
There are three types of Access Modifier.
1)Private
2)Protected
3)Public
There are four types of Access Mode.
1)Private
2)Protected
3)Public
4)Default or Pakage mode

Access specifiers define behaviour level of visibility.
The Access Specifier are
abstract, static, final, strictfp etc.

Is This Answer Correct ?    10 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does java have two ways to create child threads?

461


What is boolean query?

524


What is adapter in java?

506


How do you use compareto in java?

547


Can you declare an interface method static?

577






What is :: operator in java 8?

552


Explain the hierarchy of java exception classes?

585


What is the collections api in java programming?

544


define the terminology association.

607


Is java programming easy?

530


What is hashing in java?

556


Why main function is static?

663


how can you catch multiple exceptions in java?

537


What is a class reference?

546


What restrictions are placed on method overloading in java programming?

561