4567891011
//class B is in different package with A //therefore B cannot use A class public class B { public static void main(String[] args) { A a = new A(); }