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
What is immutable state?
How to split arraylist elements in java?
Write java program to reverse string without using api?
What are the differences between this and super keyword?
What is assembly language?
What is private static class in java?
How does hashmap work in java ?
Difference between concurrent hashmap and hashtable and collections
How do you sort in ascending order in java?
What is double word?
What is collection sort in java?
What is stringwriter?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is arrays sort in java?
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?