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
What is the lifetime and scope of a variable?
What is treemap in java?
What are the important methods of java exception class?
What is reflexive association?
Explain Basics of OOP Language in java
Can set contain duplicates?
What is the symbol for average?
How do you use compareto?
What is re-factoring in software?
What is basic syntax?
Can we call virtual funciton in a constructor ?
Is singleton class thread safe?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
Is singleton thread safe in java?
What are different access specifiers in java? Explain