AceTheInterview
Jobs in Pune | Work better in teams | Socialize with friends | Submit Q&A | Tell a friend
Search site for 

Top 100 Interview Questions & Answers in a convenient and easy to read book!

“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”

– Ravi, California

Read more comments...

Interview Questions And Answers RSS Feed

Answers »

  1. Submitted By: rmohan — October 6, 2006
    +1 votes
      + -

    Native methods are methods that are defined as public static methods within a java class, but whose implementation is provided in another programming language such as C.

    Refer to : http://scv.bu.edu/Doc/Java/tutorial/native/

    for more info.

  2. Submitted By: raja — October 6, 2006
    +3 votes
      + -

    Native methods are methods written in other languages like C, C++, or even assembly language.

    You can call native methods from Java using JNI.

  3. Submitted By: mnigam — October 6, 2006
    +3 votes
      + -

    Native methods are used when the implementation of a particular method is present in language other than Java say C, C++.
    To use the native methods in java we use the keyword native
    public native method_a()
    This native keyword is signal to the java compiler that the implementation of this method is in a language other than java.
    Native methods are used when we realize that it would take up a lot of rework to write that piece of alerady existing code in other language to java.

  4. Submitted By: pinipatel — October 6, 2006
    -1 votes
      + -

    Native methods are stored in a dynamically linked library whose exact form is platform specific where as Java methods are platform independent. When a runnig Java program calls a native method, the virtual machine loads the dynamic library that contains the native method and invokes it.

  5. Leave an Answer/Comment

    To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
    Click to hear an audio file of the anti-spam word

Our Sponsors
Our Sponsors
Contact Us | FAQ | Sitemap | Terms of Use | Privacy Policy | Tell a Friend

Copyright © 1999-2006 Jeeve Technologies LLC. All rights reserved.