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
You're given a Boolean 2D matrix, can you find the number of islands?
What are static blocks in java ?
How strings are created in java?
Is set sorted in java?
What’s the difference between unit, integration and functional testing?
What is the difference between applet and application?
Can we call a non-static method from inside a static method?
What class allows you to read objects directly from a stream?
What are the special characters?
Will minecraft java be discontinued?
What is arraylist e?
Why is the main method static?
Is this valid in java ? Can we instantiate interface in java?
What is fail fast in java?
What is jpa specification?