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 are the different ways of implementing thread? Which one is more advantageous?
What is the difference between JDBC 1.0 and JDBC 2.0?
Difference between a class and an object?
Can classes declared using the abstract keyword cab be instantiated?
How do you create a null object?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What are the two ways to create a thread?
Can a class have multiple constructors?
How do you do a line break in java?
Can you explain the meaning of aggregation and composition
What is difference between module and function?
What is array class in java?
Explain illegalmonitorstateexception and when it will be thrown?
Why is stringbuffer faster than string?
What is prefix of a string?