Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are different type of access modifiers?

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


Please Help Members By Posting Answers For Below Questions

What’s the difference between unit, integration and functional testing?

1089


Can we override data members in java?

1130


What is linkedlist in java?

986


What is method and methodology?

1084


What is parse method?

996


how can you catch multiple exceptions in java?

1000


What is the difference between throw and throws in java?

1081


Write a program in java to find the maximum and minimum value node from a circular linked list.

1062


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

958


How can you generate random numbers in java?

1034


Name few java 8 annotations ?

1015


what is mena by object block any what is the use of that

2205


What is keyword and identifier?

1118


What access modifiers can be used for variables?

1132


Explain garbage collection in java?

960