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

Can constructor be protected in java?

497


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

531


when should you use stringbuilder class in a program?

516


Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

7403


Is there a sort function in java?

569






How can you share data between two thread in Java?

516


What is the properties class in java programming?

538


What is string and its types?

602


What are the different conditional statements?

551


What are the difference between string, string builder, and string buffer in java?

543


What is the maximum size of arraylist in java?

484


Is an empty arraylist null?

587


Define how destructors are defined in java?

581


Can a list be null in java?

533


How do you create a method in java?

533