OOP Java Unit1 Unit2 Detailed Notes
OOP Java Unit1 Unit2 Detailed Notes
5. Security in JVM:
- Java provides memory protection, bytecode verification, and access control.
6. Sandbox Model:
- A security mechanism that restricts untrusted code execution.
3. Arrays in Java:
- Used to store multiple values of the same type.
- Example:
int[] numbers = {1, 2, 3};
4. Operators in Java:
- Arithmetic: +, -, *, /
- Logical: &&, ||, !
7. Exception Handling:
- try-catch block handles runtime errors.
8. Collection API:
- Used for data structures (ArrayList, HashMap).
9. Iterators:
- Used to traverse collections.
- Example:
Iterator<Integer> it = list.iterator();