Java Programming: Lesson 71 - Pass by Value

Published: 18 January 2023
on channel: youmils03
67
0

Thanks for watching, and PLEASE SUBSCRIBE!!!

This video replaces    • Java Programming: Lesson 71 (OLD, SEE...  

In the previous lesson (   • Java Programming: Lesson 70 - Techniq...  ), we had a chance to review concurrent hash maps. Recall that there are 4 types of dictionaries which are very similar:
Lesson 55 - HashMap (   • Java Programming: Lesson 55 - Maps (A...  )
Lesson 64 - Hashtable (   • Java Programming: Lesson 64 - Hashtables  )
Lesson 68 - LinkedHashMap (   • Java Programming: Lesson 68 - Linked ...  )
Lesson 69 - ConcurrentHashMaps (   • Java Programming: Lesson 69 - Concurr...  )

In this lesson, we discuss pass by value. If a local variable from one method is passed into another static method, any adjustments to that local variable in the second method are discarded at the end of that call to that second method (pass by value).
3 solutions:
1. Use an instance variable - 13:20
2. Return a new value - 15:47
3. Use a one-dimensional array - 17:27

0:28 Review of Data Structures and Iterators
10:40 NEW: Pass by Value

An equivalent Python lesson is available here    • Python Programming: Lesson 70 - Pass ...  

The next lesson is available here    • Java Programming: Lesson 72 - Final  

Thanks for watching, and PLEASE SUBSCRIBE!!!


On this page of the site you can watch the video online Java Programming: Lesson 71 - Pass by Value with a duration of hours minute second in good quality, which was uploaded by the user youmils03 18 January 2023, share the link with friends and acquaintances, this video has already been watched 67 times on youtube and it was liked by 0 viewers. Enjoy your viewing!