Java_Basics_QA_Notes
Java_Basics_QA_Notes
1. What is Java?
Java is a high-level, object-oriented, and platform-independent programming language developed by Sun Microsystems
in 1995. It is used to build various types of applications such as web, mobile, and enterprise software.
3. What is JVM?
JVM stands for Java Virtual Machine. It is a part of the Java Runtime Environment (JRE) and is responsible for
executing Java bytecode. It provides platform independence and handles memory management, garbage collection, and
security.
System.out.println("Hello, World!");
Explanation:
Java has 8 primitive data types: byte, short, int, long, float, double, char, and boolean. A variable is a container that
Java keywords are reserved words that have predefined meanings in the language and cannot be used for variable
names or identifiers.
Examples: class, public, static, void, int, if, else, return, new, etc.