SyntaxFix
Write A Post
Hire A Developer
Questions
You can.
package test; public class Test { public static void main(String[] args) { B b = new B(); } } class B { // Essentially package-private - cannot be accessed anywhere else but inside the `test` package }