Thursday, 6 November 2014

JAVA|INTERVIEW QUESTIONES

API DOCUMENT IN JAVA

  • API stands for Application Programming Interface.
  • An API document is a .html file that contains description of all the features of a software, a product , a technology .
  • API document is helpful for user to understand how to use the software or technology.   


DIFFERENCE BETWEEN #include  AND import STATEMENT

  • #include directive makes the compiler go to the c/c++ standard library and copy the code from the header files into the program . due to this, the size of program increases thus wasting of memory as well as processing time increases.
  • Import statement makes  the JVM  to go the java standard library , execute the code their ,and substitute the result in the program . in java no code is copied .so waste of memory as well as processing time decreases.

          So we can say that import Mechanism is efficient compare to the  #include . 

0 comments:

Post a Comment