what is difference betwenn Access Specifier and Access
Modifier ????

Answer Posted / praveen111tripathi

Access Specifiers specify the scope of anything(D.M,Member
function ,class)while Access modifiers define that thing's
accessibility in different scops
A.S. in java
1-Public
2-default
3-protected
4-private
A.M. in java
static,final etc.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check if a list is sorted in java?

582


Why java is secure? Explain.

583


Describe how to implement singleton design pattern in struts.

523


Why singleton pattern is better than creating singleton class with static instance?

528


How many types of exception can occur in a java program?

527






What are keywords and reserved words in java?

549


What is the best definition for data?

511


What is the effect of keeping a constructor private?

470


Can we extend immutable class?

523


What is the use of generics? When was it added to the Java development Kit?

551


What is enhanced loop in java?

540


why would you use a synchronized block vs. Synchronized method? : Java thread

528


What is the length of a string?

515


Does hashset allow duplicates in java?

576


Is zero a natural number?

556