So here,
when this code executed
Imports acct1 = new Imports();
It invoked following constructor
public Imports()
{
setNum(0);
}
which set num value as 0.0..
now next when this line of code executed
Imports copy = new Imports(acct1);
As it takes already created object accnt1 (having num 0.00) then copy object will be same as acct1.
Hence both following code will print "Number is 0.0"
System.out.println(acct1);
System.out.println(copy);
Read more about copy Constructor with example program
https://www.quizcure.com/java/what-i...n-java-program