what is the use/perpose of having a method antive?
Answers were Sorted based on User's Feedback
Answer / imtiyaz
if you want to call a methods which are specific to the
platform or if you want to use the OS calls or if you want
to use functionality which is developed in other language
we go through native interface.
In a real world we need to execute statements which are
specific to platform which java may or may not do, and
other language can do much faster than java at that time we
use to write the methods in that language and use that code.
And sometimes the code already developed in other language
and it is very cost effective or time consuming to convert
the code into java at that moments also we use java native
interface.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ravikiran
native method is used to call the methods declared in a
platform dependent environment.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is console based application in java?
How does thread synchronization occurs inside a monitor?
Why is singleton instance static?
What are scriptlets?
How to sort array in descending order in java?
Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.
Describe the term diamond problem.
Explain your academic project?
2 Answers Accenture, Levonsys, SDF, TCS, Tech Mahindra,
How GUI component handle its own events?
What is Transient and volatile
What is a deadlock ?
what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this
11 Answers IBM, L&T,