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
Explain about oops concepts.
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is a hashmap used for?
What is the requirement of thread in java?
Is vector thread safe in java?
Is java se free?
What is the length of a string?
Can an arraylist be empty?
When does a class need a virtual destructor?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What is the difference between static binding and dynamic binding?
What are the advantages of functions?
What is the difference between equals() and == in java?
What is the relationship between clipping and repainting under awt?
Can list be final in java?