[HD Pg 212, Sec. 8.5.3 - invoking-a-constructor]
Posted: Thu Feb 14, 2019 3:23 pm
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?
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?