I have two public classes class A and class B in two different packages.
So when I try to initialize class B inside class A, it throws a null pointer exception. Something like :
public class A {
class B = new class B();
}
Infact I have to initialize it inside a method to use it. Example :
public class A {
public void method(){
class B = new class B();
}
}
I know I am missing something here, but need an urgent help on this