Page 1 of 1

[HD Pg 212, Sec. 8.5.3 - invoking-a-constructor]

Posted: Thu Feb 14, 2019 3:23 pm
by OCAJO1
If the following was introduced as LINE E in the example,

System.out.println(new Account().id+", "+new Account().name);

Is it correct to say that although it will print 111 and "dummy", the 111 and "dummy" are printed from two different Account objects?

Re: [HD Pg 212, Sec. 8.5.3 - invoking-a-constructor]

Posted: Thu Feb 14, 2019 9:51 pm
by admin
Yes, that would be correct.