what are the different access specifiers that can be used
by interfaces and abstract classes? can anyone give me
detailed description on this
Answer Posted / dhiren
public accsess specifier means it can publically accessed
by the class whether it's subclass of that class or present
in same packege or diffrent classes.
private access specifier is private to that class i.e. it
cant access out side the class
procted -it's accesesed by the sub class of the ckass
whether that present in the sane package or diffrent but it
must be a subclass
noacces accessed with in the same package
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What are classloaders?
What are three advantages of using functions?
What is the main difference between java platform and other platforms?
Can we override tostring method in java?
What about anonymous inner classes in java?
what is an objects lock and which objects have locks? : Java thread
What is the final keyword denotes?
What is the difference between path and classpath variables?
What is string in java is it a data type?
Does java allow overriding static methods ?
What is deserialization?
Does constructor be static?
What is array list in java?
In which language java is written?
Can we override private constructor in java?