1. class Test { private Demo d; void start() { d = new Demo(); this.takeDemo(d); / Line 7 / } / Line 8 / void takeDemo(Demo demo) { demo = null; demo = new Demo(); } } When is the Demo object eligible for garbage collection?
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use