what is difference betwenn Access Specifier and Access
Modifier ????
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sudhir dhumal
Access specifiers specify the access level.
There are four access specifiers:
public, private, protected and default
Access modifiers are the keywords used to modify the statement and specify the access level.
There are three access modifiers:
public, private and protected
*Here we don't write default which means we are not modifying the statement so its not a access modifier it just specify the access level
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the use of predicate in java 8?
Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.
What is thread count in java?
Is oracle java 11 free?
What is temp in java?
whats the purposr of using serialization?
How do you remove duplicates in java?
What is use of a abstract variable?
What is the use of optional ?
Is a boolean 1 bit?
What is the differenc between Enemuration interface and iterator interface according to accessing?
What is import java util arraylist?