Answer Posted / chandra rekha
Access modifiers is different from Access specifiers. The
access specifiers tells whether member data\methods\classes
of a class can be accesible or not by other
classes\subclasses\packages whereas the modifiers tells how
the memberdata\methods\classes can be used by other classes.
The access specifiers available in java are
Public,private,protected,default(friend or package).
The modifiers available are
static:can be applied to member data,methods,inner
classes.used to define class variables and methods that
belong to the a class but not to any particular instance of
class.all the variables share the same static method.
final:(variables,methods,classes) final modifier indicates
that the variable\method\class cannot be modified in any
other classes\subclasses\packages.
abstract:(classes) used to declare classes having same
properties and methods.abstract classes are used to derive
classes of the same type.
native:(methods) indicates that the code is out of java
runtime environment,written in some other programming
language other than java.
synchronized:(methods) used to control access to a
particular method in a multithreaded java program.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
when should you use stringbuilder class in a program?
How to retrieve data from database in java using arraylist?
Difference between method overloading and overriding.
What do you mean by local class?
What are different types of classloaders?
Which class should you use to obtain design information about an object in java programming?
What are the states of thread in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is 32 bit float?
What is identifier in java?
What is jar?
How do you check if two given string are anagrams?
What do you mean by a JVM?
Why java is a platform independent? Explain
What is the difference between the ">>" and " >>>" operators in java?