> For the complete documentation index, see [llms.txt](https://educacion.gitbook.io/programacion/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://educacion.gitbook.io/programacion/ud1-introduccion-a-programacion/execucion-secuencial/sentenzas.md).

# Sentenzas

En Java, unha **instrución** (ou sentenza) é unha unidade básica de execución que indica ao programa realizar unha acción específica. Cada instrución en Java realiza unha operación concreta

As características dunha instrución en Java son:

* **Terminación con punto e coma**: A maioría das instrucións en Java deben rematar cun punto e coma (`;`). Isto indica o final da instrución.

  ```java
  int x = 5;
  ```
* **Instrucións executadas secuencialmente**: Por defecto, as instrucións execútanse na orde na que aparecen no código, de arriba a abaixo, a menos que se modifique o fluxo de control.

  ```java
  int a = 3;
  int b = 4;
  int suma = a + b;
  ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://educacion.gitbook.io/programacion/ud1-introduccion-a-programacion/execucion-secuencial/sentenzas.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.
