Here is how you can say 'Hello World' in 26 different coding languages

Say ‘Hello World’ in 26 Different Programming Languages

Programming always fascinates people. Programming forms the core of all computers and “Hello World” is the first phrase that we try out when trying a new coding language. Writing the code for “Hello, world!” program outputs “Hello, World!” on a display device.

Hello World is normally tried because it is one of the simplest programs possible in almost all computer languages. As such it can be used to quickly compare syntax differences between various programming languages. It is also used to verify that a language or system is operating correctly. The following is a list of “Hello, world” programs in 26 of the most commonly used programming languages.

1. Bash

echo "Hello World"

2. Basic

PRINT "Hello, world!"?

3. C

int main(void)
    puts("Hello, world!");

4. C++

int main()
    std::cout << "Hello, world!
    return 0;

5. C#

using System;
class Program
    public static void Main(string[] args)
        Console.WriteLine("Hello, world!");

6. Clipper

? "Hello World"

7. CoffeeScript

console.log 'Hello, world!'

8. Delphi

program HelloWorld;
  Writeln('Hello, world!');


Hello World!

10. Java

import javax.swing.JFrame;  //Importing class JFrame
import javax.swing.JLabel;  //Importing class JLabel
public class HelloWorld {
    public static void main(String[] args) {
        JFrame frame = new JFrame();           //Creating frame
        frame.setTitle("Hi!");                 //Setting title frame
        frame.add(new JLabel("Hello, world!"));//Adding text to frame
        frame.pack();                          //Setting size to smallest
        frame.setLocationRelativeTo(null);     //Centering frame
        frame.setVisible(true);                //Showing frame

11. JavaScript

document.write('Hello, world!');

12. jQuery

$("body").append("Hello world!");

13. Julia

println("Hello world!")

14. Logo

print [Hello, world!]

15. MatLab

disp('Hello, world!')

16. Objective-C

int main(void)
    NSLog(@"Hello, world!
    return 0;

17. Pascal

program HelloWorld;
  WriteLn('Hello, world!');

18. Perl 5

print "Hello, world!

19. Processing

void setup(){
  println("Hello, world!");

20. Python

print "Hello, world!"

21. R

cat('Hello, world!

22. Ruby

puts "Hello, world!"

23. Swift

println("Hello, world!")

24. VBScript

MsgBox "Hello, World!"

25. Visual Basic .NET

Module Module1
    Sub Main()
        Console.WriteLine("Hello, world!")
    End Sub
End Module

26. XSLT

      Hello World


  1. java? wrong, its just :
    public class helloWorld{
    public static void main(String args[]) { System.out.print(“hello world”)
    } ,,,, since u just want to ouptput “hello world” and not create an applet of swing application

  2. java? wrong, its just :
    public class helloWorld{
    public static void main(String args[]) { System.out.print(“hello world”);}
    } ,,,, since u just want to output “hello world” and not create an applet or swing application

  3. What a bias post.
    java is just
    class Main{
    public static void main(String[] args)
    System.out.print(“Hello World”);
    and HTML is just a Mark-up

  4. lol java is quite off, thats all useless, that creates a window which shows hello world as a message, every other example just printed to the console..

    no imports necessary ..

    public static void main(String[] args){
    System.out.print(“Hello World”);


Please enter your comment!
Please enter your name here