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

Answer Posted / prema

Access Specifier: It controls the access of class members
and variables by other objects.
Types of access specifiers in Java:
public
private
protected
friendly or package or default

Access Modifiers: Modifiers determine or define how the data
members and methods are used in other classes and objects.
Modifiers in Java:
static
final
abstract
native
synchronized

The main difference between access specifiers and modifiers
is that access specifiers define the accessibility of the
data members in a class and modifiers determine how these
methods are used and modified by other classes

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is immutable state?

762


How to split arraylist elements in java?

870


Write java program to reverse string without using api?

771


What are the differences between this and super keyword?

762


What is assembly language?

751


What is private static class in java?

777


How does hashmap work in java ?

764


Difference between concurrent hashmap and hashtable and collections

818


How do you sort in ascending order in java?

698


What is double word?

767


What is collection sort in java?

778


What is stringwriter?

749


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

776


What is arrays sort in java?

776


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

763