hello world program

Hello World Program in Different Languages

As every programmer knows,the Hello World Program, “Hello World!” is like an universal program/code for starting any programming language. Making a program which just prints “Hello World!” is not only the easiest program of a particular programming language, but can also make you feel welcome in that language. You can take it as you are saying hello to the programming world or the program is saying hello to you. It may be weird, but it’s just for fun.

Hello World Programming in Java


“Hello World!” in C# -Hello World Program:

using System;
namespace st
    class MainClass
        public static void Main (string[] args)
            Console.WriteLine ("Hello World!");
            Console.ReadKey ();

“Hello World!” in C++ -Hello World Program:

using namespace std;
void main()
cout<<"Hello World!";

“Hello World!” in Python -Hello World Program:

print("Hello World") 

Note:Python is space sensitive.


“Hello World!” in Windows Batch -Hello World Program:

@echo off      
echo Hello World!                 

“Hello World!” in JavaScript -Hello World Script:

Using Alert function(As it is the simplest one)-

⁢<script>alert("Hello World!")⁢<script>          //Script function by default uses javascript in html 

“Hello World!” in HTML -Hello World Script:

<!Doctype html>
<Title>Hello World Page</Title>
<p>Hello World!</p>

“Hello World!” in PHP -Hello World Web Program:

echo "Hello World!<br>";      //Any of print and hello function can be used.
print "Hello World!";

“Hello World!” in Perl -Hello World Script:

print "Hello World!" 

“Hello World!” in Java -Hello World Program:

public class Main {

    public static void main(String[] args) {
        System.out.println(" Hello Cruel World !");



“Hello World!” in SQL -Hello World Command:

I know it’s weird to print “Hello World!” using a database query language.
But in this “Hello World!” section we are trying to print “Hello World!” using almost every programming language.

select "Hello World!";

Hopefully, this will help you choose your first or next programming language!

Which language do you prefer at top?
  • 9.09% - ( 3 votes )
  • 15.15% - ( 5 votes )
  • 0% - ( 0 votes )
  • 33.33% - ( 11 votes )
  • 6.06% - ( 2 votes )
  • 0% - ( 0 votes )
  • 9.09% - ( 3 votes )
  • 0% - ( 0 votes )
  • 24.24% - ( 8 votes )
  • 3.03% - ( 1 vote )

    Don’t forget to comment and share our post if you liked it! ☯


    Leave a Reply