Introduction to Java

image

What is Java?

Java is a popular programming language, created in 1995.

It is owned by Oracle, and more than 3 billion devices run Java.

It is used for:

  • Mobile applications (specially Android apps)
  • Desktop applications
  • Web applications
  • Web servers and application servers
  • Games
  • Database connection and much more

Why Use Java?

Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.) and thus platform independent.

  • It is one of the most popular programming language in the world
  • It is easy to learn and simple to use
  • It is open-source and free
  • It is secure, fast and powerful
  • It has a huge community support (tens of millions of developers)
  • Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs
  • As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa

How to get started

I would surely advice you to first downloading the Java Development Kit(jdk) from the official Oracle website here dependent on your system whether linux, Macos or Windows.

Next, I would download an Integrated Development Environment(IDE). They are a tone of IDE's out there but I would surely recommend Intellij IDE made by JetBrains due to a number of reasons here and there, you can download the Intellij community edition from here.

  • A quick hello world program
    // a small Java program
    public class HelloWorld {
      public static void main(String[] args) {
          System.out.println("Hello World");
      }
    }
    
    For a more detailed introduction to java programming, I would surely encourage you to check out this wonderful Introduction to Java - Architecture & Installation by kunal kushwaha

Feel free to connect with me on github and linkedin, thank you.

Happy new month to all of you!