what do you mean by private in java
Answers
Answered by
1
private is a Java keyword which declares a member's access as private. That is, the member is only visible within the class, not from any other class
hope it helps☺
hope it helps☺
Answered by
0
a private member is only accessible within the same class as it is declared. a member with no access modifier is only accessible within classes in the same package. a protected member is accessible within subclasses in other packages.
Similar questions