Java RMI Tutorial
This chapter shows you the steps to follow to create a distributed version of the classic Hello World program using Java™ Remote Method Invocation (RMI).
The distributed Hello World example uses an applet to make a remote method call to the server from which it was downloaded to retrieve the message “Hello World!”. When the applet runs, the message is displayed on the client.
Read more
Hello Java World! A Tutorial for Interfacing to Java Archives inside R Packages
This document provides detailed guidance on interfacing R to Java archives inside an R package. The package we will create in this tutorial, the hel- loJavaWorld package, will invoke a very simple Java class, the HelloJavaWorld class, from inside an R function of the package, the helloJavaWorld function. The objective is to help other people to make available Java algorithms to the R world, be it to compare results, or for their own sake.
Read more
C# Versus Java
Microsoft describes C# (”C sharp”) as a “simple, modern, object-oriented, and type-safe programming language derived from C and C++.” That statement would apply equally well to Java. In fact, after comparing the two languages, it’s obvious that prerelease descriptions of C# resemble Java more than C++. As Example 1 illustrates, the language features and syntax are similar. Example 1(a) is the canonical “Hello World” program in Java, while Example 1(b) is the program in C#.
Read more
A Scala Tutorial for Java programmers
This document gives a quick introduction to the Scala language and compiler. It is intended for people who already have some programming experience and want an overview of what they can do with Scala. A basic knowledge of object-oriented programming, especially in Java, is assumed.
Read more
Programming in CSharp
CSharp is designed for the .NET framework. The .NET framework is object oriented. CSharp has a great set of tools for the object oriented programmer. CSharp is the first component oriented language in the C/C++ family. Component concepts are first class:
Properties, methods, events
Design-time and run-time attributes
integrated documentation using XML
CSharp can be embedded in web pages. In C++ and Java primitive date types (int, double, etc) are magic and do not interoperate with objects. In Smalltalk and Lisp primitive types are objects, but at great performence cost. CSharp unifies this with no performance cost. CSharp also adds new primitive data types, for example decimal. Collections work for all types.
Read more