Answer Posted / janet
Public: Any thing declared as public can be accessed from
any where.
Private: Any thing declared as private can't be seen
outside of it's class.
Protected: Any thing declared as protected can be accessed
by classes in the same package and subclasses in the other
packages.
Default modifier: can be accessed only to classes in the
same package.
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
Give me example of derived data types.
why doesn't java run on all platforms?
Is list ordered in java?
Define how objects are stored in java?
What are the two ways to create a thread?
How can you read content from file in java?
Why we use protected in java?
How many types of memory areas are allocated by jvm?
What is the function of compareto in java?
java Technical questions asked by JPMC
What is ascii code?
You're given a Boolean 2D matrix, can you find the number of islands?
What is the meaning of flag day?
What are java annotations?
What is the major advantage of external iteration over internal iteration?