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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -