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

Answer Posted / emilie jose

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 ?    91 Yes 47 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is vector?

773


Can we convert list to set in java?

727


What is java autoboxing?

717


Is 0 a prime number?

734


Is string pool garbage collected?

760


how to deploy apache tomcat server to weblogic server in java

1791


Write a program to calculate factorial in java?

766


Why java is secure? Explain.

767


How do you escape in java?

796


What are different types of expressions?

747


What is static synchronization?

762


What are thread safe functions?

716


Can we write any code after throw statement?

811


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

874


What is java util?

777