Some interesting facts

  • Most of the Android apps are written in Java

  • Many banks and financial services also use Java

  • More than 95% of Enterprise Desktops run Java

  • 3 billion phones run Java

  • We can easily tell that every company on this world somehow is using at least a tiny piece of Java.

Java code compared to other languages

Example of Hello World app in some languages

Java

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

C++

#include <iostream>
int main()
{
    std::cout << "Hello, World!";
    return 0;
}

C

#include <stdio.h>
int main()
{
   // printf() displays the string inside quotation
   printf("Hello, World!");
   return 0;
}

Last updated