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 is the Diff. between Access Specifiers and Access
Modifiers?

Answers were Sorted based on User's Feedback



what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / venkat

Access Specifiers :

public,private,protected and default.


Access Modifiers :

abstract,native,transient,final,static,volatile and
strictfp.

Is This Answer Correct ?    1 Yes 1 No

what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / sujit kumar nishank

Access specifier :- it is used in java when we declare a method,viarable or class then it specify how it access to other classes .
. it is of 4 types
public(access everywhere like any classes and any package and inherited)
private(access itself with in the package and it is not inherited)
protected(access any classes with in the same package and it is inherited)
defaults(it same as protected but not inherited )

access modifier
final
static
abstract

Is This Answer Correct ?    1 Yes 1 No

what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / jiggi

Class Modifiers / Member Modifiers

Modifiers :
public protected private
abstract static final synchronized native strictfp

The access modifiers are public, protected and private

The modifier (non Access modifiers) abstract static final synchronized native strictfp

Modifiers are also called as Specifiers

Ref :Java language Specification 8

Is This Answer Correct ?    0 Yes 0 No

what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / sunil

Acess specifers gives acess privelages to outside
application ot to others. they are public protected,
private,Defaults.


Acess Modifers gives additional meaning to data ,methods
clasees like final, abstract

Is This Answer Correct ?    8 Yes 9 No

what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / arun

In old laguages like c,c++ we have public,private,protected and default are considered as "Access specifiers" but all remaining considered as "Access modifiers".

But in case of Java there is no such type of difference .all are(public,private,protected,default,final,abstract,strictfp,native,synchronized,transcient,volatile and static) considered as "Access modifiers"

Is This Answer Correct ?    0 Yes 1 No

what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / deepthi

for the access specifiers we use one at time i.e,public int a;
bt for the access modifiers we can use two at a time i.e, static final int a;

Is This Answer Correct ?    0 Yes 1 No

what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / vijay

Access Specifiers :

1. Private
2. Public
3. Default
4. Protected


Non - Access Specifiers (Access Modifiers):

1. Abstract
2. Final
3. Native
4. Static
5. Synchronized
6. Transient
7. Volatile
8. Strictfp

Is This Answer Correct ?    0 Yes 1 No

what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / indrabahadur singh

Access specifiers ::

The access specifier determines how accessible the field is
to code in other classes. Access ranges from totally
accessible to totally inaccessible. You can optionally
declare a field with an access specifier keyword: public,
private, or protected.


Access Modifiers ::

You can optionally declare a field with a modifier keyword:
final or volatile and/or static and/or transient.

Is This Answer Correct ?    0 Yes 2 No

what is the Diff. between Access Specifiers and Access Modifiers?..

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

what is the Diff. between Access Specifiers and Access Modifiers?..

Answer / ejp

Still wrong. Don't you people read the thread? There is no
such thing as an access specifier in Java.

Is This Answer Correct ?    6 Yes 9 No

Post New Answer

More Core Java Interview Questions

Explain method local inner classes ?

0 Answers  


What is the difference between state-based unit testing and interaction-based unit testing?

0 Answers  


What is array list in java?

0 Answers  


Differentiate between stringbuffer and string?

0 Answers  


If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?

5 Answers  


What is size () in java?

0 Answers  


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

0 Answers   TCS,


Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?

3 Answers   Aricent,


Why do I need to declare the type of a variable in java?

0 Answers  


What is data and its types?

0 Answers  


class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); }

8 Answers   Logica CMG,


What is thread life cycle?

0 Answers  


Categories