Computer Science, asked by akshatbarnwal87, 10 months ago

Predict the message generated after the execution of the given Java statements: final double pie=3.142; double pie=pie*pie; *

Answers

Answered by sanjeevsitapur2
0

Answer:

: error: cannot assign a value to final variable pie

Explanation:

: Because We Cannot Change the Value of the Final Variable whether it's a integer type or double type. A Final Variable Remains Constant throughout the Compilation of the Program...

---------------------------------------------------------------

HOPE IT HELPS

Similar questions