Basic Java Interview Question and Answers

13. Does Java support pointers?
  Java doesn't support the use of pointers as their improper handling causes memory leaks and compromises the reliability.
 
Your Name Your Email-ID
Your Answer
14. What is a Java package and how is it used?
 
  • A Java package is a naming context for classes and interfaces.
  • A package is used to create a separate name space for groups of classes and interfaces.
  • Packages are also used to organize related classes and interfaces into a single.
  • API unit and to control accessibility to these classes and interfaces.
 
Your Name Your Email-ID
Your Answer
15. How Java enabled high performance?
 
  • Java uses Just In Time compiler to enable high performance.
  • Just-In-Time compiler is a program that runs Java bytecode, which is a program that contains instructions that must be interpreted into instructions that can be sent directly to the processor.
 
Your Name Your Email-ID
Your Answer
16. What is JTI compiler?
 
  • Just In Time compiler: It is used to improve the performance.
  • JIT compiles parts of the byte code that have similar functionality at the same time, and hence reduces the amount of time needed for compilation.
  • Here the term compiler refers to translator from the instruction set of a Java virtual machine (JVM) to the instruction set of a specific CPU.
 
Your Name Your Email-ID
Your Answer