Showing posts with label Interview Q. Show all posts
Showing posts with label Interview Q. Show all posts

JDBC Interview Q

  • What is JDBC?
JDBC is an API(Application Programming Interface) used to develop a java program that communicates with any DataBase server without changing the code.
  • Can we use C program to communicate with Database?
Yes, we can use C program to communicate with database, but it is able to communicate with only one database.

Core Java Interview Q

  • What is JVM? 
 JVM(Java Virtual Machine) is a program whose responsible is to take the .class file and convert the byte code instructions into machine code, and then make it executed by the processor.
  • What is a class loader?
Part of JVM which loads the .class file into JVM's memory. 
  • Where does the memory is allocated to the class?
when we run a java program class is stored in a runtime memory area called Method Area.