Select from following answers:- It will compile successfully.
- compile-time error.

- run-time error.
- None of these.
- All Above
It will give compile-time error saying that
"A const field requires a value to be provided"
Meaning that a constant variables must be initialized at the time of declaration.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator