1What is Java and what are its key features?
Java is a high-level, object-oriented programming language developed by Sun Microsystems (now owned by Oracle).
Key Features:
- Platform Independent: Write once, run anywhere (WORA) - compiled code runs on any platform with JVM
- Object-Oriented: Follows OOP principles (encapsulation, inheritance, polymorphism, abstraction)
- Simple: Easy to learn with clear syntax
- Secure: Built-in security features and sandbox execution
- Robust: Strong memory management, exception handling, and type checking
- Multithreaded: Built-in support for concurrent programming
- Portable: Architecture-neutral bytecode
- High Performance: Just-In-Time (JIT) compiler for optimization