what is the Diff. between Access Specifiers and Access
Modifiers?

Answer Posted / vikram singh rawat

Access Specifier are like:
1) public
2) private
3) protected
4) Default

Access Specifier or modifiers in java control the access
and visibility of classes and class members.

Access Modifiers are like:
1) Volatile
2) Native
3) Transient

Field and method modifiers are keywords used to identify
fields and methods that need to be declared for controlling
access to users. Some of these can be used along with
public and protected keywords.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the restrictions imposed by a Security Manager on Applets?.

2051


What is abstraction in java?

606


Why java doesn’t support multiple inheritances?

570


What is a dynamic array java?

499


Which one will take more memory: an int or integer?

756






What is function and method in java?

512


If a class is declared without any access modifiers, where can the class be accessed?

583


What is meant by stack and queue?

590


Are primitives objects?

548


What does nextint () do in java?

540


What is string length in java?

475


What are loops in java? What are three types of loops?

536


What is a void method?

503


Can you declare an interface method static?

569


What are the differences between throw and throws?

514