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
Can constructor be protected in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
when should you use stringbuilder class in a program?
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.
Is there a sort function in java?
How can you share data between two thread in Java?
What is the properties class in java programming?
What is string and its types?
What are the different conditional statements?
What are the difference between string, string builder, and string buffer in java?
What is the maximum size of arraylist in java?
Is an empty arraylist null?
Define how destructors are defined in java?
Can a list be null in java?
How do you create a method in java?