Question: Which statements about the final modifier are correct? Each correct answer represents a complete solution. Choose all that apply. A Local variables cannot be declared
Which statements about the final modifier are correct?
Each correct answer represents a complete solution. Choose all that apply.
A Local variables cannot be declared with type var and the final modifier.
B
A primitive that is marked final cannot be modified.
C
Instance and static variables can be marked final.
D
A variable is effectively final only if it is marked final.
E
An object that is marked final cannot be modified.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
