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 does singleton class mean?
How to overcome the exception object reference not set to an instance of object?
What are the steps involved to create a bean?
What is the SimpleTimeZone class?
Can a constructor call the constructor of parent class?
What is a variable declaration?
What is boolean law?
Define how objects are stored in java?
Can you sort a list in java?
What are the types of java languages?
What is an exception? difference between Checked and Unchecked exception in Java
Write a method that will remove given character from the string?
How do you input a string in java?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
Is it possible to override the main method?