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 a finally block? Is there a case when finally will not execute?

557


What is double word?

551


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1519


Can you inherit a constructor java?

583


What do you mean by compiler?

589






What are keywords give examples?

588


Explain implementation and how is it different from conversion?

599


What is use of map in java?

523


How does sublist works in java?

555


Which java version is latest?

548


Can we declare register variable as global?

521


Explain about transient variables in java?

654


Explain naming conventions for packages?

584


What is unmodifiable list in java?

540


What does you mean in math?

548