construction final의 의미 1. 라인 A가reader()를 실행할 때 f.x가 3인 것을 볼 수 있습니다. x는final이기 때문입니다. 2. 라인 A가reader()를 실행할 때 f.y가 4라는 것을 보장할 수 없습니다. y는final이 아니기 때문입니다. 스레드 A를 글로벌로 읽습니다.obj, 이때 라인 A는 f.x를 보면 3을 보장할 수 없습니다 final field의 정확한 구축 값을 볼 수 있습니다. 이 능력... objectClassconcurrencyimmutableConstructorconstruction 각종 구조 함 수 를 깊이 이해 하 다. this is construction of test 1111 //A 의 구조 함수 this is copy construction of test 1111 //전송 값 이 발생 한 결과, 즉 A 가 Aa this is construction of test 를 복사 한 것 입 니 다. 0000 //Bb 의 구조 함수 this is operator =: 0000=... c최적화 하 다.deletefunconstruction
final의 의미 1. 라인 A가reader()를 실행할 때 f.x가 3인 것을 볼 수 있습니다. x는final이기 때문입니다. 2. 라인 A가reader()를 실행할 때 f.y가 4라는 것을 보장할 수 없습니다. y는final이 아니기 때문입니다. 스레드 A를 글로벌로 읽습니다.obj, 이때 라인 A는 f.x를 보면 3을 보장할 수 없습니다 final field의 정확한 구축 값을 볼 수 있습니다. 이 능력... objectClassconcurrencyimmutableConstructorconstruction 각종 구조 함 수 를 깊이 이해 하 다. this is construction of test 1111 //A 의 구조 함수 this is copy construction of test 1111 //전송 값 이 발생 한 결과, 즉 A 가 Aa this is construction of test 를 복사 한 것 입 니 다. 0000 //Bb 의 구조 함수 this is operator =: 0000=... c최적화 하 다.deletefunconstruction