ok .. i see
this leads me to other question is there any way to define in java some kind global object that can hold any primitive data type
(int,long,
string...)
so if i will define :
myGlobalType foo = "string1";
myGlobalType foo1 = "string2";
and if i will do :
foo+foo1 =string1string2"
and if i will do
myGlobalType foo = 2;
myGlobalType foo1 = 3;
and if i will do :
foo+foo1 =5
can it be implement this somehow in java