Kapil Verma

Greenhorn
+ Follow
since Dec 15, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kapil Verma

Hi,
If you have an array declared in a class Xyz as :
public static final int MAXALLOWEDBENF[] = { 0,
3};
and access it from another class as:
int maxAllowedBenf[]= Xyz.MAXALLOWEDBENF;
and change the content: maxAllowedBenf[0]=1;
it changes the content of original array (MAXALLOWEDBENF in Xyz). Making it final doesnt work.
How can you make the members of MAXALLOWEDBENF constant so that they cannot be changed
Regards,
Kapil
19 years ago