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 is flag in python?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
When is the arraystoreexception thrown?
What is flush () in java?
Why declare Main() method as a static in java ?
What is bubble sort in java?
Difference between a process and a program?
Can a java program have 2 main methods?
Is string an object?
What do you mean by mnemonics?
What is udp in java?
What is the basic difference between string and stringbuffer object?
What is space character in java?
What is wrapper class html?
What is the difference between a field variable and a local variable?