class beta{ } class demo{ static beta b1; beta b2; public static void main(String args[]){ beta b1 = new beta(); beta b2 = new beta(); demo d1 = new demo(); demo d2 = new demo(); d1.b1=b1; d1.b2=b1; d2.b2=b2; d1= null; b1= null; b2=null; } }
b1
main()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)