How interviewers ask it“Let's start with the basics — how would you explain the main features of Java?”
What are the main features of Java?
Key features interviewers expect you to list:
- Platform independence:
.javasource compiles to.classbytecode, which any JVM can run - Object-oriented: encapsulation, inheritance, polymorphism and abstraction
- Automatic memory management: the garbage collector frees unreachable objects
- Strong type system and compile-time checks
- Built-in multithreading and a rich standard library (collections, I/O, networking, concurrency)
- Security and robustness: no pointer arithmetic, bytecode verification, checked exceptions