A good answer might be:

Yes. But declaring a constant with final prevents the programmer from accidentally changing a constant in an assignment statement.


End of the Chapter

The remainder of this chapter is a list of subjects you may wish to review. Click on a blue subject that interests you to go to where it was discussed. To get back here, click on the "back arrow" button of your browser.

The next chapter tells how to get data from the keyboard into your program.



Click here     Back to the main menu.

You have reached the end of the chapter.