Java-INterview-1
Basic Java Interview Questions Q1. Explain JDK, JRE and JVM? JDK vs JRE vs JVM JDK JRE JVM It stands for Java Development Kit. It stands for Java Runtime Environment. It stands for Java Virtual Machine. It is the tool necessary to compile, document and package Java programs. JRE refers to a runtime environment in which Java bytecode can be executed. It is an abstract machine. It is a specification that provides a run-time environment in which Java bytecode can be executed. It contains JRE + development tools. It’s an implementation of the JVM which physically exists. JVM follows three notations: Specification, Implementation, and Runtime Instance . Q2. Explain public static void main(String args[]) in Java. main() in Java is the entry point for any Java program. It is always written as public static void main(String[] args) . public : Public is an access modifier, which is used to specify who can access this method. Public means that this Method will be accessible by any Cla