Wednesday, December 22, 2010

Can we Override the Native Methods in The Java ..???

native method is a great way to gain and merge the power of C or C++ programming into Java. To use Java as a scientific and high performance language, when efficient native Java compilers are not fully implemented, use native method can boost the performance to at least the speed of C compiled code.
 Example for this concept is as follows.

public class MyDemo
{
public Object clone()
{
return "hai";
}
}

No comments:

Post a Comment