ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is the Diff. between Access Specifiers and Access
Modifiers?
 Question Submitted By :: JavaLearner
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 1
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 ?    50 Yes 24 No
Dev
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 2
Access specifier are public, 
private, or protected.


Access modifiers are public, 
private,  protected or default.
 
Is This Answer Correct ?    11 Yes 84 No
Pandian
 
 
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 3
Access Specifier are used to specifiy how the member 
variable ,methods or class to other classes.They are 
public ,private and protected.


Access Modifier:
   1.Access
   2.Non Access

Access:
    public ,private,protected and default.
Non Access:
    
abstract,final,native,static,synchronized,transient,volatile
 and strictfp
 
Is This Answer Correct ?    27 Yes 13 No
Pandian.r
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 4
Access Specifiers
                 They are used to set the visibility of a 
class or variable or a method. Classes can be Public or 
Default.Variables and methods can be 
public,private,protected or default

Access Modifiers
               They are used to optionally declare a 
field.That is we can set access modifiers for class,method 
or variables. Classes can have modifier like Abstract. 
Methods can have abstract, native,synchronised etc..
 
Is This Answer Correct ?    20 Yes 15 No
Emilie Jose
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 5
Access Specifier is like a super class of Access Modifier
and Non-Access Modifier, which specifies the accessibility
of a field.

Access Modifier is like a sub class of Access Specifier,
there are actually 3 kinds in it namely,
1. Public
2. Protected
3. Private

Access Control in java is a little tricky as there are four
access control.
1. Public
2. Protected
3. Default
4. Private
 
Is This Answer Correct ?    3 Yes 28 No
Paul Williams
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 6
Access Specifiers :

public,private,protected and default.


Access Modifiers :

abstract,native,transient,final,static,volatile and 
strictfp.
 
Is This Answer Correct ?    9 Yes 10 No
Swetha
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 7
Access Specifiers
                 They are used to set the visibility of a 
class or variable or a method. 
ex:public,private,protected and default.

Access Modifiers
               They are used to optionally declare a 
field.
ex:abstract,native,transient,final,static and volatile.
 
Is This Answer Correct ?    12 Yes 8 No
Murali M
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 8
access specifier:
                 an access specifier allows the user to
control the access of classes,methods and fields.
    

access modifier:
                an access modifier specifies the visibility
ofclasses,methods and fiels.
 
Is This Answer Correct ?    0 Yes 21 No
Tamanna
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 9
"Public" is both a access specifier and access modifier.
What is the difference here?
 
Is This Answer Correct ?    6 Yes 22 No
Subhadip
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 10
Access Specifiers  A.S gives access privileges to outside
of application (or) others; they are Public, Protected,
Private, Defaults   
Access Modifiers  A.M which gives additional meaning to
data, methods and classes, final cannot be modified at any
point of time
 
Is This Answer Correct ?    24 Yes 6 No
Gautham
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 11
There is no difference between Access Modifiers and Access
Specifiers. Its just different names for the same Stuff.
 
Is This Answer Correct ?    5 Yes 20 No
Skk
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 12
Access Specifiers
They are used to set the visibility of a 
class or variable or a method. 
ex:public,private,protected and default.

Access Modifiers
They are used to optionally declare a 
field.
ex:abstract,native,transient,final,static and volatile.
 
Is This Answer Correct ?    7 Yes 9 No
Filistin
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 13
There is no such thing as an 'access specifier' in Java so
there is nothing for 'access modifier' to be different from.
There are 'type specifiers' and 'access modifiers'. See the
Java Language Specification.
 
Is This Answer Correct ?    10 Yes 4 No
Ejp
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 14
what is the need for access specifier in c++?
 
Is This Answer Correct ?    3 Yes 2 No
K.yamini
 
  Re: what is the Diff. between Access Specifiers and Access Modifiers?
Answer
# 15
access specifier : it will define scope
access modifier : it will define behaviour
 
Is This Answer Correct ?    7 Yes 2 No
Sreenivasarao
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
How does Vector implement synchronization? Ness-Technologies2
What is user defined exception?  4
Can we declare static variables in JSP page. TCS3
Explain about GridBag Layout?  1
What is hash method?  1
Explain the difference between the Boolean & operator and the && operator?  1
what is request dispatcher and how does it work? CTS1
Which class has no duplicate elements?  8
Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?  1
What is the use of an interface?  3
Life Cycle of Thread IBM3
class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract? Logica-CMG2
could you run the java program without main method?  3
What is method Overloading in the perspective of OOPS?  4
what is mutability?which one is mutable String or StringBuffer?and why?give examples of each which shows the mutability of each String or StringBuffer  2
methods in Applet?  1
What happens if an exception is not caught?  4
What is the immediate superclass of Menu?  1
what is the difference between the "protected and default" modifiers?  4
Which class is the immediate superclass of the Container class?  1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com