Asked by jake
What would happen if I did not give a access specifier. Would the class method or attribute be accessible to all other classes?
Answers
Answered by
MathMate
This is different from public, or private.
Sometimes it is call package or default access.
Read up at:
http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html
Sometimes it is call package or default access.
Read up at:
http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.