J Sharp

From Free net encyclopedia

Template:Pound The J# (pronounced 'J-sharp') programming language is a transitional language for programmers of Sun's Java and Microsoft's J++ languages, so they may use their existing knowledge, and applications on Microsoft's .NET platform. J# can work with java bytecode as well as source so it can be used to transition applications that use third party libraries even if their original source is unavailable.

As with J++, it only supports a limited set of Java's features.

If one wanted to run Java code for the Java framework in the .NET framework, one would want to look at IKVM. While J# provides a Java syntax on top of .NET's framework, IKVM is effectively a Java framework running on top of .NET's framework.

Fundamental differences between J# and Java

Java and J# use the same general syntax but the API differs. One example is the FileOutputStream class. Instead of receiving a File object as a parameter in the Java API, Microsoft's .NET implementation receives a String object containing the file path.

J# does not compile Java-language source code to Java bytecode (.class files), does not support Java applet development or the ability to host applets in a web browser (though .net does have its own system for browser embedding so presumablly a wrapper could be written). Finally, J# does not support Java Native Interface (JNI), Raw Native Interface (RNI), and Remote Method Invocation (RMI).

J# Architecture

Template:Compu-lang-stub

de:J Sharp fr:J sharp it:J sharp ru:Visual J Sharp fi:J sharp zh:J#