Linguaggi di programmazione a confronto
| Caratteristica | Java | C | C++ | C# | Python | PHP |
|---|---|---|---|---|---|---|
| Paradigma di programmazione |
Object Oriented | Procedurale | Object Oriented Procedurale |
Object Oriented | Object Oriented Funzionale Procedurale |
Object Oriented Procedurale |
| Tipizzazione variabili |
Statica, forte | Statica, debole | Statica, forte | Statica, forte | Dinamica, forte | Dinamica, debole |
| Compilato Interpretato Misto |
Misto | Compilato | Compilato | Misto | Interpretato | Interpretato |
| Risultato compilazione Interprete |
bytecode Java Virtual Machine (JVM) |
Intermediate Language (IL) Common Language Runtime (CLR) |
||||
| Gestione della memoria |
Garbage Collector | Manuale | Manuale | Garbage Collector | Garbage Collector | Gestita dall'interprete |
| Delimitatore istruzione | ; | ; | ; | ; | ; | |
| Commento riga |
// | // | // | // | # | // oppure # |
| Commento multiriga |
/* */ | /* */ | /* */ | /* */ | /* */ | |
| Dichiarazione variabili |
|
|
|
|
|
|
| Input |
|
|
|
|
|
|
| Output |
|
|
|
|
|
|
| Selezione semplice |
|
|
|
|
|
|
| Selezione doppia |
|
|
|
|
|
|
| Selezione multipla |
|
|
|
|
|
|
| Switch |
|
|
|
|
|
|
