Prev Next

Java / volatile

Can a volatile variable be marked as final?

No. Java does not allow that because final variable value cannot be changed once initialized.

More Related questions...

Show more question and Answers...


Comments & Discussions