Rancher,
Need your help in this
class Knowing
{
static final long toth = 343L;
static long doit(long tooth)
{
System.out.println(++tooth);
return ++tooth;
}
public static void main(
String [] a)
{
System.out.println(tooth);
final long tooth=340L;
newkKnowing().doit(tooth);
System.out.println(tooth);
}
}
o/p 343,341,340
Can anyone expalin me this
How can final variable been modified