Why To Choose Java

Introduction

This article exlains Java and why we use it. So friends, talking about Java, over 3 Billion Devices use Java. As for computers, approximately 97% of Enterprises Desktops and 89% of PCs in the U.S. use Java. For mobile phones, 3 Billion cell phones runs on Java. Not only computers and mobile phones but also printers, ATMs, credit cards, home security systems, televisions and so on use Java. For more you can open the link.

Well friends Java is chosen for the following reasons.

  1. Easy to learn: Well friends Java was designed for the C++ programmer because it is derived from C++. The team of Java developers actually started a very big project that will be platform-independent but they stuck and decided to develop a new language and if they change the syntax of Java then its very difficult to understand a new programming language. That is why it inherits all the features of C and C++. For example, here is a simple program that prints "Hello User":
    1. class demo  
    2. {  
    3.    public static void main(String args[])  
    4.    {  
    5.       System.out.println("Hello User");  
    6.    }  
    7. }  
  2. Secure: Java is secure because it provides Encapsulation and Data Abstraction by which we can do data hiding. That is how we secure our data. Not only Encapsulation and Data Abstraction, an Applet (it is a small program that runs directly in web browser) also provides security.
    Security model

  3. Free: Believe it or not but people want free stuff. Don't you? But if we talk about an organization's cost then it is an important factor in development and to create a Java application you need to pay nothing but your idea.

  4. Documents Supports: Javadocs! friends you have no idea about it. I am sure you will be amazed when you read it. It has all the stuff you want when you learn Java or when creating application . It has each and every thing about Java, like how to use a class, what method belongs to which class and so on.

    Here is a link of javadoc.

  5. Rich API: It is also one of the best reasons to learn Java because it has a highly visible and rich API because if we talk about other programming languages like Turbo C++, it has a simple interface and very poor quality animation capability. But in Java, it has a great interface and very high quality animation capability.



  6. Robust: Robustness means that which is strong, powerful and not effected by others. But how is Java strong and powerful, in what sense? So friends here robust means reliable and there is no programming language as reliable as Java. It provides a very low chance of error for the programmer because of its strong memory allocation, garbage collection mechanism and exception handling compared to other programming languages.

  7. Platform Independent: As I said earlier, the team started a project that will be platform-independent but they had no resource to make a program platform-independent. That is why Java was born. And now we can see that if we write a Java program we can run in any environment using the JVM.



  8. Object Oriented: Well object oriented itself a different thing. It depends on (classandobjects, encapsulation, Inheritance, Abstraction and polymorphism) and Java supports all the features of OOP. Using OOP we can break complex code into a modular form and make a fine application without giving extra effort.

  9. Multithreaded: Java supports multithreaded (thread is a light weight process) that helps us to develop a program that can do multiple tasks at a time and it increases CPU efficiency. It is not supported by other programming languages.



  10. Open Source: Well friends Java is also an open source programming language by which we can make fast and cost effective applications easily. And the reason behind it is it has a great framework like Spring, Struts and so on and many libraries that are contributed by Google and other organizations.

  11. High Performance: Java is high-performance language because the JVM is very intelligent. When we run a Java program the JVM does not interpret the entire code into machine instructions. It interprets the required code that will be executed. This enhance the performance.

  12. Distributed: Distributed systems are those systems in which resources are shared and this can be done in Java using Remote Method Invocation (RMI). In RMI there is a server and one or more clients can communicate or share resources in a network area.



  13. Portable: Java is a portable language because we can make a program in one computer, compile in another computer and execute in another computer. And using its platform independence we can write code in one operating system and execute in another operating system.

  14. Development Tools: Java has great development tools such as Netbeans, Eclipse and so on that plays a major role in development . Using these tools we can create our code faster because it provides help and great debugging capability.
Summary

The summarization of the preceding article is that Java is not only a programming language but also it is a technology, it is an enterprises tool (J2EE), a mobile tool (J2ME) and its allows you to play mobile games as well as online games and so on. on one hand it is simple, free, has a rich API, is portable, distributed and on other hand it is secure, platform independent, robust and high performance.

Up Next
    Ebook Download
    View all
    Learn
    View all