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?

Answers were Sorted based on User's Feedback



What are different type of access modifiers?..

Answer / janet

Public: Any thing declared as public can be accessed from
any where.
Private: Any thing declared as private can't be seen
outside of it's class.
Protected: Any thing declared as protected can be accessed
by classes in the same package and subclasses in the other
packages.
Default modifier: can be accessed only to classes in the
same package.

Is This Answer Correct ?    11 Yes 4 No

What are different type of access modifiers?..

Answer / ravikiran

static
final
native
abstract
synchronized
strictfp
transient
volatile

Is This Answer Correct ?    6 Yes 2 No

What are different type of access modifiers?..

Answer / 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

More Core Java Interview Questions

How do you empty a list in java?

0 Answers  


What are the two ways in which thread can be created?

0 Answers  


How do weakhashmap works?

0 Answers  


What is connection class in java?

0 Answers  


what are the purposes of native, transiant key words?

2 Answers  


Why java is not 100% object-oriented?

1 Answers  


Explain what do you mean by functional overloading in java?

0 Answers   Maveric, Verifone,


Explain cookies?

2 Answers   Canon,


What are constants and how to create constants in java?

0 Answers  


Define Compiling?

3 Answers  


static inner classes means..?

1 Answers  


What are the various access specifiers in java?

0 Answers  


Categories