public class
HelloWorld.
public class HelloWorld { public static void main( String[ ] args ) { System.out.println( "Hello, World!" ); } } |
print("Hello, World!") |
#include <iostream> using namespace std; int main( ) { cout << "Hello, World!" << endl; return 0; } |
log
” to the console to announce its presence.
console.log( "Hello, World!" ); |
using System; class Program { static void Main( ) { Console.WriteLine( "Hello, World!" ); } } |
SELECT 'Hello, World!' AS greeting; |
printf
” tradition to send greetings.
#include <stdio.h> int main( ) { printf( "Hello, World!\n" ); return 0; } |
echo
” to make its introduction.
<?php echo "Hello, World!"; ?> |
fmt
” to extend a warm welcome.
package main import "fmt" func main( ) { fmt.Println( "Hello, World!" ) } |
print
” statement.
import Swift print( "Hello, World!" ) |
fun
” and “println.
”
fun main( ) { println("Hello, World!") } |
puts
” the message on the screen.
puts "Hello, World!" |
console.log
” for its greeting.
console.log( "Hello, World!" ) |
object
”“ and a “def
” to send its warm regards.
object HelloWorld { def main( args: Array[String] ): Unit = { println( "Hello, World!" ) } } |
cat
” to convey its message with a newline character.
cat( "Hello, World!\n" ) |