Immutability ensures an object's state cannot change after creation, while encapsulation restricts access to its state. A class can be encapsulated but mutable. For example, an order might be encapsulated but allow status changes, whereas a receipt might be immutable.
Additional Notes
What’s the difference between immutability and encapsulation?