> For the complete documentation index, see [llms.txt](https://cpb.gitbook.io/book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cpb.gitbook.io/book/languages/jvm/java/misc.md).

# 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

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

### C++

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

### C

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