what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / filistin
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 ? | 11 Yes | 22 No |
Post New Answer View All Answers
List some features of the abstract class.
What is the benefit of abstract class?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is the importance of hashcode() and equals() methods?
What is the effect of keeping a constructor private?
Why are global variables used?
Does java linked list allow duplicates?
Define max and min heap, also the search time of heap.
Is static variable stored in heap?
What is the main use of generics in java?
What are daemon Threads in java?
How can we make a class singleton?
Explain the protected field modifier?
Is singleton a bad practice?
Why parameters should be passed by reference?