Classes in same package

listed in answer

Classes in same package
0 votes, 0.00 avg. rating (0% score)

ANSWER:

If they are in the same package, you can access A in class B without import:

package example;

public class B
    public static void main(String[] args)
        A myA = new A();
    
}

by talnicolas from http://stackoverflow.com/questions/10194194