LogoLogo
  • Welcome
  • Preface
  • Languages
    • Assembly Language
      • Introduction
      • History
      • What it solves
      • Advantages
      • Disadvantages
      • Conclusion
    • C++
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • ABC
      • Introduction
      • History
      • What it solves
      • Advantages
      • Disadvantages
      • An Example
      • Conclusion
    • Python
      • Introduction
      • History
      • What it solves
      • Advantages
      • Disadvantages
      • Few more points
      • Conclusion
    • Erlang
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • JavaScript
      • Introduction
      • History
      • Purpose & Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • C#
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • Go
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • Haskell
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • Brainfuck
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
      • Some interesting facts
    • Malbolge
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • Perl
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • C
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • Lua
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • JVM
      • Introduction
      • Java
        • Introduction
        • History
        • Advantages
        • Disadvantages
        • Some interesting facts
        • Conclusion
      • Clojure
        • Introduction
        • History
        • Advantages
        • Disadvantages
        • Some interesting facts
        • Conclusion
  • End
    • Credits
Powered by GitBook
On this page
  • Java code compared to other languages
  • Java
  • C++
  • C
  1. Languages
  2. JVM
  3. Java

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;
}
PreviousDisadvantagesNextConclusion

Last updated 5 years ago