Hi, Thiru & Jose
There's no concrete rule for parameter type of native methods-it depends what programming language you'll use for native methods.
For example if you wrote native method in C++
void foo(char [] ch,int i) {...} the implementation of this method in
Java will be
native void foo(String s,int i) In native methods you had to choose appropriate parameter & return types.
If you have some object in C++ or some type in Fortran, you cannot implement it for Java...
And vise versa - suppose you have
void add(Vector users) method in Java and you want to optimize speed of running, by using native C or C++ method. It will be impossible, in C++ 'cause there's no appropriate object to Vector.
If you have questions, ask me.
Jamal Hasanov
www.j-think.com