Posts

Showing posts with the label History of Java

Java Programming Features Every Beginner Should Know

Features of Java Java is a powerful programming language that provides several important features, making it popular for developing secure and reliable applications. 1. Platform Independent Java is called a platform-independent language because a Java program does not depend on a specific operating system. When a Java program is compiled, it generates a .class file. This file contains intermediate bytecode, not machine-specific code. The .class file can run on any operating system as long as the system has JVM (Java Virtual Machine) installed. This concept is known as “Write Once, Run Anywhere.” 2. Java Compiler The Java compiler (javac) is a program that converts the source code written by a developer into bytecode. The compiler: Takes a .java file as input Converts it into intermediate machine code Stores the output in a .class file This bytecode is platform independent and can be executed on any system with JVM support. 3. Java Virtual Machine (JVM) The JVM (Java Virtual Machine) ...