Java has some benefits we need to know when we decide to learn and use it. Let’s review each one of those benefits:
- Object Oriented: Java is an object-oriented language, meaning that all the code is defined in classes that can be instantiated in objects. Java also allows functional programming within a class, but we must not forget that in Java the code organization is object-oriented.
- Encapsulation: Java supports access modifiers to protect data from unintended access and modificatión. Encapsulation is one of the aspects of object-oriented languages.
- Platform Independent Java is an interpreted language that gets compiled to bytecode. “write once, run everywhere”, a key benefit is that Java code gets compiled once rather than needing to be compiled each time for different operating systems. This means that java is a portable code.
- Robust is one of the advantages of Java over C++ is that java prevents memory leaks, manages the memory on its own, and does the garbage collector automatically.
- Simple Java was created to be simple to understand than C++, eliminating pointers, and getting rid of the overloading operator. In C++, you could write a + b and have it mean almost anything.
- Secure java code runs inside of the JVM. This creates a sandbox that makes it hard for java to do evil things to the computer it is running on.
- Multithreaded java is designed to allow multiple pieces of code to run at the same time. java offers multiple APIs to facilitate this task.
- Backward Compatibility java Architects pay careful attention to making sure old programs will work with later versions of Java. Deprecation is a technique that is used to avoid breaking the code with the new changes made for the new changes/optimizations in the code. This lets the developers know that the new versions of java have different approaches so they can easily change the code.
These are the benefits that Java offers. Do you feel prepared to enter the fascinating world of Java?
Happy Learning


Leave a comment