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

Answer Posted / murali m

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 ?    58 Yes 35 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible for a yielded thread to get chance for its execution again?

509


What is bifunction in java?

678


Is the milky way in a void?

540


How to print nodes of a Binary tree?

1753


Can you start a thread twice in Java?

632






Which is bigger float or double java?

523


List implementations of list interface?

563


What method is used to specify a container's layout in java programming?

540


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

753


How do you sort an array in java?

541


What is the default access specifier for variables and methods of a class?

566


How to retrieve data from database in java using arraylist?

528


Which variables are stored in heap?

541


What is classpath?

550


What are different type of exceptions in java?

545