samedi 24 janvier 2015

final static data member in java [duplicate]


This question already has an answer here:




Can we change the value of final static data member inside a method and is it possible by using Reflection or not?


see this code:


class ABC{



final static int saleTax=4;

public int calTax(){
saleTax=40; // Is it possible?
}

}





Aucun commentaire:

Enregistrer un commentaire