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
Explain the polymorphism principle?
What is the common usage of serialization?
Should a main method be compulsorily declared in all java classes?
Are arrays static in java?
Outline the major features of java.
What is proper subset?
What is meant by class and object in java?
What is balanced tree in java?
How many types of voids are there?
What is the importance of finally block in exception handling?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What exceptions occur during serialization?
Is intellij better than eclipse?
What is jagged array in java?
What is identifier give example?