To avoid syntax or logic errors. Frame the concept in practical terms so you can explain it during interview discussion.
Consistent indentation in text blocks ensures that the appearance of the string in Java matches the intended structure, especially for data formats like JSON or SQL. Misalignment can lead to errors that are hard to diagnose, particularly when copying code between different environments.
Additional Notes
Why is consistent indentation important in text blocks?