Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the use/perpose of having a method antive?

Answers were Sorted based on User's Feedback



what is the use/perpose of having a method antive?..

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

what is the use/perpose of having a method antive?..

Answer / ravikiran

native method is used to call the methods declared in a
platform dependent environment.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can a java program have 2 main methods?

0 Answers  


How the elements are organized in GridLayout?

2 Answers  


Which is faster set or list in java?

0 Answers  


How is rounding performed under integer division?

2 Answers   Satyam,


what is the use/perpose of having a method antive?

2 Answers  


How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


What is the difference between abstract class and interface1? What is an interface?

0 Answers  


Define a package.

0 Answers  


What is the maximum size of byte array in java?

0 Answers  


What are runtime exceptions?

0 Answers  


what is object type casting? give some example with related?

2 Answers   HP, SparkTG,


Explain java thread life cycle.

0 Answers  


Categories