We may earn an affiliate commission when you visit our partners.

Mutability

Save
May 1, 2024 3 minute read

The concept of mutability refers to the ability of an object to change its state or value. In programming languages, variables can be either mutable or immutable, which determines whether their value can be modified after creation. Mutability plays a crucial role in various aspects of programming, including data structures, object-oriented programming, and multithreading.

1. Mutability in Data Structures

In data structures, mutability determines how elements can be added, removed, or modified within a data structure. For example, arrays are mutable data structures, allowing elements to be added or removed dynamically. On the other hand, tuples are immutable data structures, meaning their elements cannot be altered once defined.

Share

Help others find this page about Mutability: by sharing it with your friends and followers:

Reading list

We've selected 11 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Mutability.
Provides a comprehensive overview of concurrency in Java. It includes a discussion of mutability and how it can be used to create concurrent code that is both safe and efficient.
Provides a comprehensive overview of operating systems design and implementation. It includes a discussion of mutability and its implications for the design and implementation of operating systems.
Provides a collection of best practices for writing effective Java code. It includes a number of tips on how to use mutability effectively.
Provides a comprehensive overview of object-oriented design principles. It includes a discussion of mutability and how it can be used to create more flexible and reusable code.
Provides a comprehensive overview of the Rust programming language. Rust systems programming language that emphasizes safety and concurrency. Mutability key concept in Rust, and the book provides a good overview of how to use it effectively.
Provides a broad overview of software engineering, including a discussion of mutability and its implications.
Provides a comprehensive overview of the Haskell programming language. Haskell purely functional programming language, which means that it does not support mutability. The book provides a good overview of how to write functional code that is both safe and efficient.
Provides a more detailed look at how to implement domain-driven design in practice. It includes a number of examples of how to use mutability effectively in domain-driven design applications.
Explores the concept of domain-driven design and how it can be used to create more maintainable and extensible software. Mutability key concept in domain-driven design, and the book provides a good overview of how to use it effectively.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser