Basic Java Interview Question and Answers

37. What is heap in Java?
 
  • Java is fully Object oriented language. It has two phases first one is Compilation phase and second one is interpretation phase.
  • The Compilation phase convert the java file to class file (byte code is only readable format of JVM) than interpretation phase interoperate the class file line by line and give the proper result.
 
Your Name Your Email-ID
Your Answer
38. What is Dynamic Binding (late binding)?
 
  • Binding refers to the linking of a procedure call to the code to be executed in response to the call.
  • Dynamic binding means that the code associated with a given procedure call is not known until the time of the call at run time.
 
Your Name Your Email-ID
Your Answer
39. What type of parameter passing does Java support?
  In Java the arguments are always passed by value.
 
Your Name Your Email-ID
Your Answer
40. What is the purpose of the runtime class?
 
  • The purpose of the Runtime class is to provide access to the Java runtime system.
 
Your Name Your Email-ID
Your Answer