Im wondering if it is possible to create this object based on the code below or is it a cyclic dependency which cant be solved?
public class A {
private B b;
public A(B b) {
this.b = b;
}
public class B {
public B() {}
}
}
I was provided with a class which looked like this and I cant find a way to initialize B or A. Its like and impossible cycle.