J-Sharp

J # is a technology developed by Microsoft object-oriented programming language that should facilitate Java and Visual J programmers the order or entry into the. NET environment. In the long run Java developers should be familiar with the framework in more detail, later to be able to use all features of. NET in C #. Also J # served rather to the fact that Java developers existing Java code could easily take in the surroundings and to use in new projects under another. NET language like C # or VB.NET on.

Microsoft has declared January 10, 2007, that J # no longer being developed and there will be no new version of Visual Studio for this. By 2015, the normal product support continues, but which is limited to bug fixes.

Differences between J # and Java

Although both languages ​​have the same " basic syntax to" Put yet on different runtime environments. J # is used CLR (Common Language Runtime), while Java uses the JRE (Java Runtime Environment) from Oracle or a similar environment.

In Visual Studio 2005, Microsoft provides a variety of inherited from the Java world namespaces and classes that make it easier for a Java programmer to work with. NET. In particular, emphasis was placed on the conversion of standard and Swing classes. In addition, there exists a translated compiler which J # source code in C # code.

Programming Example

The following lines give a little insight into the structure and usage of J #:

Import System.Console; System.Windows.Forms import *. ;   public final class Program extends Object {      public static final String Hello World expression = " Hello, world!";        / **       * Entry point       * /      public static void main ( String [ ] args)      {          (new Program ()) Run ( args). ;      }        / **       * " Hello, world!" Output to standard output (usually console)       * /      private void DefOutput ()      {          System.Console.WriteLine (" output to console ... \ n");            Console.get_Out () WriteLine ( Hello World expression). ;            System.Console.WriteLine (" Press ENTER to continue ... \ n");          Console.ReadLine ();      }        / **       * A kind of non- static entry point       * /      private void Run ( System.String [ ] args)      {          / / Output = > Console          this.DefOutput ();            / / Output to Windows          WinOutput ();      }        / **       * " Hello, world!" Output as a Windows window       * /      private void WinOutput ()      {          System.Console.WriteLine ( "Output as Windows window ... ");            MessageBox.Show ( Program.HalloWeltAusdruck, "Output as Windows MessageBox. ");            System.Console.WriteLine (" Press ENTER to continue ... \ n");          Console.ReadLine ();      } } see also

  • List of. NET languages
  • . NET
  • Microsoft
  • Java ( programming language)
422531
de