what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / santosh kumar(siddhu)
Acess specifer gives some boundry to access.
these r 1)Public(boundry:any where with in package and
outside of package)
2)Private(Boundry:within class scope only)
3)Defult(Boundry:within package scope only)
4)Protected(Boundry:within package scope and
outside subclass of this package class)
Acess modifier change the properties,Behaviour
these are
Public
Abstract
Final
Static
Volatile
Synchronized
Transient
Native
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is n in java?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is difference between next () and nextline () in java?
Are global variables initialized to zero?
Can we start a thread twice in java?
Can a class have a static inner class?
What is the ==?
Whats the difference between notify() and notifyall()?
Can we have any code between try and catch blocks?
What is the meaning of variable in research?
Explain the scope or life time of class variables or static variables?
What is a treeset in java?
Are variables stored in ram?
What is difference between adapter class and listener?
What is the SimpleTimeZone class?