Comparison of 10 popular programming languages

This is a comparison of the following programming languages-

C
C++
Java
C#
VB.NET
PHP
JavaScript
Perl 5
Perl 6
Python
Ruby

comparison1comparison2comparison3

And now a comparison of “Hello World!” programs.

C

#include <stdio.h>
 
int main()
{
  printf("Hello world ");
  return 0;
}

C++

#include <iostream>

int main()
{
  std::cout << "Hello World!";
}

Java

public class HelloWorld {

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

}

C#

public class Hello1
{
   public static void Main()
   {
      System.Console.WriteLine("Hello World!");
   }
}

VB.NET

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        MessageBox.Show("Hello World!", "Message Box Title")
    End Sub

End Class

PHP

<?php  Print "Hello World!"; ?>

JavaScript

alert('Hello World!');

Perl

say "Hello World!"

Python

print " Hello World!”

Ruby

puts "Hello World"

Difference between C# and the .NET Framework

.NET is an umbrella term which comprises the Framework Class Library (FCL), many languages(C#, VB.NET, C++/CLI,…),  and the Common Language Runtime (CLR).

FCL compiles source code and outputs Intermediate Language (IL).

CLR manages the execution of .NET programs.A process known as just-in-time compilation converts IL code into platform specific code which the computer’s CPU then executes. The CLR provides additional services including memory management, type safety, exception handling, garbage collection, security and thread management.

C# is a programming language using which you can develop software utilizing the FCL.