Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Visual J Sharp
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Fundamental differences between J# and Java== Java and J# use the same general syntax but there are non-Java conventions in J# to support the .NET environment. For example, to use .NET "properties" with a standard [[JavaBean]] class, it is necessary to prefix getter and setter methods with the [[Javadoc]]-like annotation: <syntaxhighlight lang="java">/** @beanproperty */</syntaxhighlight> β¦and change the corresponding private variable name to be different from the suffix of the getXxx/setXxx names{{Citation needed|date=February 2017}}. J# does not compile Java-language source code to Java bytecode (.class files), and does not support [[Java applet]] development or the ability to host applets directly in a [[web browser]], although it does provide a wrapper called Microsoft J# Browser Controls for hosting them as [[ActiveX]] objects. Finally, [[Java Native Interface]] (JNI) and [[Java Native Interface#Microsoft.27s RNI|raw native interface]] (RNI) are substituted with [[Platform Invocation Services|P/Invoke]]; J# does not support [[remote method invocation]] (RMI).<ref>{{cite web|url=http://msdn.microsoft.com/en-us/library/7622y256(v=vs.80).aspx|title=Visual J# Migration|department=[[Visual Studio 2005]]|work=[[MSDN Library]]|archive-url=https://web.archive.org/web/20120316061217/http://msdn.microsoft.com/en-us/library/7622y256(v=vs.80).aspx|archive-date=2012-03-16|access-date=2021-12-25}}</ref> ''[[InfoWorld]]'' said: "J#'s interface to the .NET framework is solid, but not as seamless as [[C Sharp (programming language)|C#]]. In particular, J# code cannot define new .NET attributes, events, value types, or delegates. J# can make use of these language constructs if they are defined in an assembly written in another language, but its inability to define new ones limits J#'s reach and interoperability compared to other .NET languages."<ref>{{cite web |last1=Yager |first1=Tom |date=2001-11-21 |df=dmy |url=https://www.infoworld.com/article/2075819/just-don-t-call-j--java.html |title=Just don't call J# Java |work=[[InfoWorld]] |access-date=2020-07-20}}</ref> Contrariwise, Microsoft documentation for Visual Studio 2005 details the definition of .NET delegates,<ref>{{cite web |url=https://msdn.microsoft.com/en-us/library/0kks3c36(v=vs.80).aspx |title=delegate (Visual J#) |department=[[Visual Studio 2005]] |work=[[MSDN Library]] |archive-url=https://web.archive.org/web/20111219230625/http://msdn.microsoft.com/en-US/library/0kks3c36(v=VS.80).aspx |archive-date=2011-12-19}}</ref> events,<ref>{{cite web |url=https://msdn.microsoft.com/en-us/library/09b0135h(v=vs.80).aspx |title=Definition and Use of Events |department=[[Visual Studio 2005]] |work=[[MSDN Library]] |archive-url=https://web.archive.org/web/20111219230625/https://msdn.microsoft.com/en-us/library/09b0135h(v=vs.80).aspx |archive-date=2011-12-19}}</ref> and value types<ref>{{cite web |url=https://msdn.microsoft.com/en-us/library/wysdab55(v=vs.80).aspx |title=User-Defined Value Types |department=[[Visual Studio 2005]] |work=[[MSDN Library]] |archive-url=https://web.archive.org/web/20111220004451/http://msdn.microsoft.com/en-US/library/wysdab55(v=VS.80).aspx |archive-date=2011-12-20}}</ref> directly in J#.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)