Question: Which statements about the following program are correct public class Bear { private Bear pandaBear; private void roar ( Bear b ) { System .
Which statements about the following program are correct
public class Bear
private Bear pandaBear;
private void roarBear b
Systemout.printlnRoar;
pandaBear b;
public static void mainString args
Bear brownBear new Bear;
Bear polarBear new Bear;
brownBear.roarpolarBear;
polarBear null;
brownBear null;
System.gc;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
