Does Java have the equivalent of “const” arguments in C and C++?
• A. Java 1.1 adds the ability to use the “final” keyword to make arguments constant. When used to qualify a reference type, however, this keyword indicates that the reference is constant, not that the object or array referred to is constant. For example, the following Java code: • void foo(final MyClass c, final int a[]) { c.
Related Questions
- I took the equivalent of CS 112 (and 211) in another language (not Java) before transfering to GMU. Do I need to retake that material here by taking the GMU courses CS 112 and CS 211?
- Does Java DB have an equivalent of the LIMIT clause or ROWNUM function for pagination queries?
- Does Java have the equivalent of "const" arguments in C and C++?