Why Java?

Niroopama Kumarasinghe
2 min readJun 4, 2021

Java was the language of the year in 2005 and 2015. Java Standard Edition 16.0 is the latest Java version. Java is one of the most popular programming languages.

So, why Java?

Java is an platform independent, open source and object oriented programming language which allows the programmer a greater control over the code. Since Java is simple, flexible and easy to learn, a coding beginners definite choice would be java. From the possibility to implement the simplest web application to the most complex financial web network, java provides a greater potential to the developer.

Earlier it took nearly 2–3 years to release a new java version. But when moving into recent statistics, a new java version is released every 6 months. It’s robust nature with a strong memory management has become the major causes of its rising fame and popularity.

  • Object oriented

Java is an object oriented programming language. Object oriented programming is the most popular programming paradigm and it creates a structure of the program. The entire concept relies on the classes and objects where class is more like a design of a structure with methods and attributes and an object is an instance of the class.

Java uses major object oriented concepts as inheritance, polymorphism, encapsulation and abstraction. Inheritance allows the child object to inherit the features of the parent object and this causes the repetition of the same code. Polymorphism allows different interpretation to one entity via method overloading and method overriding. Abstraction creates a structure and hides the internal functions. And encapsulation wraps the data increasing the privacy.

This entire object oriented concept creates reusable codes which can be modified according to the situation. It reduces code redundancy and enhances code re-usability. Security wise java plays a better role with the aid of encapsulation and abstraction.

  • Rich API

Java API allows the developers to use them without even knowing what happens inside. With the maturity of the programming language, java has opened up for a wide range of APIs. Something really nice is that java APIs are flexible and compatible enough to fit into the code of the developer.

  • Platform-independent

Java compiler converts the java file into the byte code. This byte code is platform independent and can run in any OS. So this has created the “Write once and read anywhere” nature in java.

  • Java Documentation

Java provides a polished documentation for the developers to make their life easy. Developers can code with a clear mind and know what they really do.

  • Better examples

LinkedIn, eBay, Facebook and Amazon have trusted java with their applications. I think there is no need for more explanations for “why Java?”

--

--

Niroopama Kumarasinghe

Undergraduate — University of Moratuwa, Faculty of Information Technology