Const vs final

Do any of you guys know java and if so are there any differences between const in c++ and the “final” keyword in java? Thanks!

I’m not sure, but I think the difference is that in java you can’t override a final method, while you can in c++.

Privacy & Terms