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 meant by interface?

565


Is it necessary for the port addresses to be unique? Explain with reason.

575


Can we convert stringbuffer to string?

563


Is java util regex pattern thread safe?

516


Explain about data types?

576






Can a singleton class be inherited?

527


What is the escape character in java?

512


Can an abstract class be a final class?

529


What is function overriding and overloading in java?

582


List implementations of list interface?

563


What is visibility mode?

531


What type of variable is gender?

548


Differentiate between class and structure.

633


Define packages in java?

578


In how many ways we can do exception handling in java?

577