我想知道当我将静态对象分配给非静态对象时会发生什么?例如:
public class Test{
public void test(){
BoneCp cp=BoneCpLoad.getBoneCpPool();
}
}
public class BoneCpLoad{
private static BoneCpPool pool =new BoneCpPool();
public static BoneCp getBoneCpPool(){
return pool;
}
}