Why there is a Java class declaration without public or private at the beginning?
For example :
class MyClass{
// code
}
Why there is a Java class declaration without public or private at the beginning?
For example :
class MyClass{
// code
}
It is called default access modifier or package private modifier. It means that class is accessible only within the package it is in.