Escaping References - part 3 of Java Memory Management

แชร์
ฝัง

ความคิดเห็น • 11

  • @ruixue6955
    @ruixue6955 6 ปีที่แล้ว +11

    1:10 escaping references
    2:05 another ant-pattern example
    2:28 getCustomers()
    3:02
    3:31 call clear() on that collection will
    3:59 reference to the map has escaped from the class in which it should have been encapsulated
    4:10 violate the encapsulation rule
    5:17 an example of resolving escaping references
    7:35 issue: the Iteracor has a remove() method
    8:10 another better solution
    11:52 elegant solution: return an immutable collection
    12:05 Collections.unmodifiableMap()
    12:05 Collections.unmodifiableList()
    20:02 use interface to implement a Customer
    20:44 Exclipse tip - extract interface from existing class
    25:52 exercise of escaping reference

  • @uyildiz
    @uyildiz 6 ปีที่แล้ว +2

    Great tutorial! Best I 've seen so far!

  • @ahamedsyed6589
    @ahamedsyed6589 7 ปีที่แล้ว +2

    exclement explenation greate work

  • @mohammedviso2269
    @mohammedviso2269 7 ปีที่แล้ว

    Best tutorial ever .... Thanks

  • @googleuser9805
    @googleuser9805 5 ปีที่แล้ว

    Very clear!

  • @coach-okr
    @coach-okr 7 ปีที่แล้ว

    thank you! very good

  • @avseqzxcv
    @avseqzxcv 5 ปีที่แล้ว

    Good tutorial! Where can I download the sample code in the video?

  • @Ritvik117
    @Ritvik117 6 ปีที่แล้ว

    Please make tuts on JUnit too.

  • @ejazahmad2636
    @ejazahmad2636 6 ปีที่แล้ว

    Awesome Explanation

  • @jhguygih
    @jhguygih 6 ปีที่แล้ว +2

    Why and when develop focusing immutability?

    • @shattertempter1788
      @shattertempter1788 6 ปีที่แล้ว +2

      Immutability lets avoid synchronization in concurrent applications