SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Applying Object-Oriented Principles in Java Programs

Definite assignment: locals have no default value

2 min read · 426 words1Z0-831Updated

In one line: Locals have no default, and the compiler only trusts constant expressions when proving a local is assigned on every path before a read.

You’ve read your 2 free 1Z0-831 lessons

Sign up free to read every lesson — your progress is saved.

Spotted a mistake in this part?

Part 3 of 10Next