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
Can we have return statement in finally clause? What will happen?
What is an object class?
What are untrusted applets?
Can we able to pass objects as an arguments in java?
What is a stringbuilder?
Define Multiprogramming and Multiprocessing in java.
Is string is a class in java?
Can we serialize singleton class?
How do you detect memory leaks?
Can a class have a static inner class?
Explain the difference between comparator and comparable in java?
Can we override protected method in java?
Explain about doubly linked list
State one difference between a template class and class template.
How to disable caching on back button of the browser?