Hi,
What is possible is to specify a "larger" type :
say for basic types, if your method expects a type "long", you may call it
with type "int" or type "long" or type "short"
For Objects, if your method expects type "Object", you may call it with any
kind of object.
Apart from that, maybe Java 1.5 gives other possibilities that I ignore.
Regards,
Arnaud
> Hi
> Is it possible in Java like in C++ with templates, to write a Method
> only once, for different types of parameter? Or do I have to write the
> same methode for each parameter type I have?
> Thanks for your help