English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-02-12 07:39:06 · 4 answers · asked by vtec 1 in Computers & Internet Programming & Design

you cannot change the value of a variable whose declaration uses the final keyword

2007-02-12 07:56:32 · update #1

4 answers

Well, in basic Java, the answer is True

But in Advanced Java Programming you can change whatever variable you would like to by using Reflection (the so called cracking method :d) using reflection, you can control all variables, methods in whatever class without the real need to know the structure of that class, that includes final, private, consts and all other types of variables.

So, my answer is going to be based on advanced Java programming, in other words, the answer is FALSE

Thanks.

2007-02-12 11:14:05 · answer #1 · answered by Fox 3 · 0 0

Final is Java constant, you have to set the value in the same line with the declaration; I think it is somewhat relaxed a bit in recent versions of Java as it is write once or writable once in certain situation.

So False I say.

2007-02-12 08:29:37 · answer #2 · answered by Andy T 7 · 0 0

final keyword from java is a constant that value cannot be changed

2007-02-12 07:54:50 · answer #3 · answered by Anonymous · 0 0

you cannot what? READ - WRITE - REMOVE...

revise ur question...

2007-02-12 07:42:05 · answer #4 · answered by Ody 3 · 0 0

fedest.com, questions and answers