What is "Java Native Interface" and how to use it?
Answer / shilpi agarwal
The Java Native Interface (JNI) is the native programming
interface for Java that is part of the JDK. By writing
programs using the JNI, you ensure that your code is
completely portable across all platforms. It allows Java
code that runs within a Java Virtual Machine (VM) to
operate with applications and libraries written in other
languages, such as C, C++, and assembly.
| Is This Answer Correct ? | 20 Yes | 0 No |
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is proper subset?
What is the primitive type short?
Difference between nested and inner classes ?
Explain reverse a linked list recursive java solution?
Using callable statement how can you pass out parameters, explain with example?
What is an argument java?
1.) if we use "private" in place of "public" in public static void main()... 2.) if we use "int" in place of "void".... 3.) can we ommit "static" keyword from that statement.... 4.) also can we give the command line arguments type as int type or float,etc.(.i.e (string args[]))
What are methods and how are they defined?
How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused object Parmanently or it maintains something.
If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?
What is difference between char array and string?