Unit1 Java Notes
Unit1 Java Notes
2. Features of Java
- Simple: Java has a syntax similar to C, making it easier for new developers to learn.
- Platform-Independent: Java programs can run on any platform that supports Java without
modification (Write Once, Run Anywhere).
- Secure: Java has built-in security features, such as bytecode verification and runtime
security management.
- Robust: Java has strong memory management features and built-in error-handling
mechanisms.
- JRE (Java Runtime Environment): A runtime environment that includes the Java Virtual
Machine (JVM), core libraries, and other resources needed to run Java applications.
- IDEs (Integrated Development Environments): Software that provides tools for writing,
debugging, and testing Java programs, such as Eclipse, IntelliJ IDEA, and NetBeans.
Variables are used to store data values. A variable must be declared with a specific data type
before it can be used.
- Literals: Fixed values assigned to variables, such as 10, 3.14, and "Hello".
- Relational Operators: ==, !=, >, <, >=, <= (comparison of values)
- Logical Operators: && (AND), || (OR), ! (NOT) (used for logical operations)
- Bitwise Operators: &, |, ^, ~, <<, >>, >>> (used to perform bit-level operations on integer
data types)