How native code in java being implemented

Showing Answers 1 - 2 of 2 Answers

Ananda

  • Feb 2nd, 2006
 

You have to declare the method containing the Native code with the keyword 'Native'.

  Was this answer useful?  Yes

suman

  • May 26th, 2006
 

 Native code is implemented in Java using

system.classLoader("method Name");

Eg: you have a native method methos "Test" written in 'C' you can implement it in java as

static Test{

System.classLoader("Test");

}

The native method must be declared as static since it must be caled only once in a programme

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions