Languages-Java [3i Infotech Placement]: Sample Questions 50 - 52 of 141

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 50

Edit

Write in Short

Short Answer▾

Is there any tag in html to upload and download files?

Explanation

Yes, < input type = “file” > is there tag in html to upload and download files.

Question 51

Edit

Describe in Detail

Essay▾

Header file ________

Explanation

Understanding of C Formate of Header File
  • A header file is a file containing C declarations and macro definitions to share between several source files.
  • Included using C pre-processing directive ‘ include’ .

Header Files Serve Two Purposes

  • System header files declare the interfaces to parts of the operating system.
  • Supply declarations and definitions to invoke system calls and libraries.
  • Programmers՚ header files contain declarations for interfaces between the source files of their program.
  • Group of related declarations and macro definitions needed in several different source files are combined in header file.

Question 52

Edit

Describe in Detail

Essay▾

What is JNI?

Explanation

Understanding of Java Netive Intarface
  • Java Native Interface (JNI) programming framework enables Java code running in a Java Virtual Machine (JVM) to call and be called by native applications (programs specific to a hardware and operating system platform) and libraries written in other languages such as C, C ++ and assembly.
  • “JNI” enables use of native codes to overcome the memory management and performance constrains in java.

Motivation for JNI

  • Code reusability:

    Reuse existing/legacy code with java.

  • Performance:
    • Native code used to be 20 times faster than java, when running in interpreted mode
    • JIT compilers make this a moot point.
  • Allow java to tap into low level O/S, H/W routines.

Problems with JNI

  • JNI code is not portable.
  • JNI involves two languages and runtimes.

Developed by: