What happens if a modifier is not specified in java? -


this question has answer here:

 class btnode  {          btnode left, right;      int data;       //constructors , methods }  

in piece of code no specific modifier used. happens in context of modifier? default behavior?

from java docs:

if class has no modifier (the default, known package-private), visible within own package (packages named groups of related classes)

you can read here


Comments