logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What are Native methods in Java?


  • Correct Answer
  • Java applications can call code written in C, C++, or assembler This is sometimes done for performance and sometimes to access the underlying host operating system or GUI API using the JNI The steps for doing that are: First write the Java code and compile it Then create a C header file Create C stubs file Write the C code Create shared code library (or DLL) Run application 


  • Technology problems


    Search Results


    • 1. What is the SimpleTimeZone class?
    • Discuss
    • 2. What is the Set interface ?
    • Discuss
    • 3. How do you decide when to use ArrayList and When to use LinkedList?
    • Discuss
    • 4. How do you traverse through a collection using its Iterator?
    • Discuss
    • 5. When should I use abstract classes and when should I use interfaces?
    • Discuss
    • 6. What is Auto boxing and unboxing?
    • Discuss
    • 7. How does thread synchronization occurs inside a monitor?
    • Discuss
    • 8. Why do we need wrapper classes in Java?
    • Discuss
    • 9. What is Shallow and deep cloning in Java?
    • Discuss
    • 10. What is the similarity between Dynamic Binding and linking?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment