Answer Posted / venki
Private : It can access with in the class only
public :It can Access Any where
proteced:It can access with in the package and sub class of
the package also
default:it access with in the package only.
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
Why for each loop is used?
What is constructor chaining and how is it achieved in java?
How do you compare two objects?
Which collection does not allow duplicates in java?
Is java map thread safe?
What is anti pattern in java?
Is integer passed by reference in java?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What is the constructor?
Is java hard to learn?
What is a protected method?
How will you communicate between two applets?
What is difference between printf and scanf?
How do you sort in java?
How many days will it take to learn java?