# 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;
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cpb.gitbook.io/book/languages/jvm/java/misc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
