ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is the use/perpose of having a method antive?
 Question Submitted By :: Bablu_nand81a
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the use/perpose of having a method antive?
Answer
# 1
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 ?    0 Yes 0 No
Imtiyaz
 
  Re: what is the use/perpose of having a method antive?
Answer
# 2
native method is used to call the methods declared in a 
platform dependent environment.
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Are there any tools available in java to create reports?  4
How to add two numbers with out using Arithmetic , union operators in java....? But we can use bitwise operators... but how...? CTS1
If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface? Synechron4
can we create object for static class in java Marlabs3
what is the purpose of method overriding in java where v r completely re-defining a inherited method instead y can't v create a new method and define.If the question is very silly plz excuse me and do reply.Thank U!  3
how cani read a command line argument?(usingfile object).  3
What is compile time polymorphism? Elementus-Technologies5
In which JDK version event-delegation model is introduced?  1
What is a thin-client application? Adobe3
Explain the concept of polymorphism with examples?  3
how to connect one jsp page to another jsp page???? Symphony2
Why is prepared Statement, Callable Statement used for? What is the need of Batch updates? Logica-CMG1
what is the difference between Cpp And Java Infosys3
What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?  1
watz the difference between abstract class and interface? Which one u ill choose as a designer? Sonata1
what Data encapsulation in java?  2
What is casting?  2
What is clipping?  2
java can provide security ,how can provide? IBM2
why the constructor should be used in class,if there is no constructor what will happen?  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com