package subPackage; public class A { } package anotherPackage; // line 1 public class B { public static void main(String[] args) { // line 2 } }
public class A { }
package anotherPackage;
// line 1
public class B {
public static void main(String[] args) {
// line 2
}
at line 2 add : new A();
at line 2 add : new subPackage.A();
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.