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

Is c better than java?

553


Is linked list a linear or non-linear data structure?

555


What languages are pass by reference?

558


Can we declare the static variables and methods in an abstract class?

556


How long will it take to learn java?

513






How does remove work in java?

528


Is int primitive data type?

520


When throws keyword is used?

588


What is a dynamic array in java?

569


What is a function in java?

576


Explain the significance of listiterator.

596


Where we write javascript code in html page?

573


What happens if constructor is private?

578


Explain a few methods of overloading best practices in java?

521


What if static is removed from main method?

583