OCP Java 11 Java Key Features

Simplification over C and C++

Santiago
1 min readFeb 8, 2024

Java inherits its syntax from C and C++, but simplifies complexity by eliminating features like pointers, multiple inheritance.

Architecture Neutrality

It can run on any device with a Java Virtual Machine (JVM). This cross-platform compatibility is achieved by compiling Java code into bytecode, which the JVM interprets on any platform.

Object-Oriented Programming (OOP)

Java is an object-oriented languag. It supports encapsulation, inheritance, and polymorphism. It restricts to single inheritance of classes to maintain simplicity and avoid complexity.

Static Typing

It requires explicit declaration of variable types, which facilitates error checking at compile time.

Dynamic Language Features

It supports runtime operations such as reflection, class loading, and garbage collection.

Multi-threading

It provides built-in support for multi-threaded programming, allowing concurrent operations.

Automatic Memory Management

Automates memory management through garbage collection, relieving developers from the manual memory allocation and deallocation.

Java’s garbage collector automatically identifies and disposes of objects that are no longer needed, optimizing memory usage and preventing memory leaks.

--

--