What would happen if I did not give a access specifier. Would the class method or attribute be accessible to all other classes?

1 answer

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