Page 1 of 1

About Question enthuware.ocpjp.v8.2.1804 :

Posted: Wed Oct 14, 2015 3:37 am
by Martyjee
List<Student> ls = Arrays.asList(new Student("S1", Student.Grade.A), new Student("S2", Student.Grade.A), new Student("S3", Student.Grade.C));
The given code will not compile, because the enum Grade is not defined in Student!

Re: About Question enthuware.ocpjp.v8.2.1804 :

Posted: Wed Oct 14, 2015 9:19 pm
by admin
Yes, the enum was supposed to be inside Student. Fixed.
thank you for your feedback!
Paul.