Java
----
-> File_Name: Test.java
class Hello{
public static void main(String[] args){
System.out.println("Hello");
}
}
Compile:
-------
javac Test.java
Run:
--- java Hello // Using the Class name which contains the main() method.
C#
----
-> File_Name: Test.cs
class Hello
{
static void Main()
{
System.Console.WriteLine("Hello");
}
}
Compile:
------- csc.exe Test.cs
Run:
--- Test.exe // Using the File name itself for compile as well as running it.
Pages
▼
No comments:
Post a Comment