Académique Documents
Professionnel Documents
Culture Documents
compare.ppt
compare.ppt
(2q 06)
40%
29%
15%
16%
in 2003
59%
24%
10%
7%
(05)
in 2007
59%
33%
5%
3%
65.6%
20.0%
9.5%
4.2%
0.7%
compare.ppt
main sections
1. simple programs
2. overview of platforms
compare.ppt
simple programs
compare.ppt
console programs
// Java
public class Hello {
public static void main(String[] args) {
System.out.println("Hello world in Java");
}
}
// C#
namespace Hello {
public class Hello {
static void Main(string[] args) {
System.Console.WriteLine ("Hello world in C#");
System.Console.ReadLine();
}
}
}
VB
Module HelloWorld
Sub Main
System.Console.WriteLine(Hello World in VB.NET)
System.Console.ReadLine()
End Sub
End Module
Mar 20, 2015
compare.ppt
compare.ppt
mininal window
import java.awt.*;
import javax.swing.*;
public class Hello extends JFrame implements
Runnable
using System.Windows.Forms;
{
namespace TinyWindowApp
{
public static void main(String[] args)
public class HelloForm : Form
{
{
SwingUtilities.invokeLater(new Hello());
static void Main()
}
{
Application.Run(new HelloForm());
public void run()
}
{
this.setSize(new Dimension(200,200));
public HelloForm()
this.setTitle("Hello in Java");
{
this.setVisible(true);
ClientSize = new
}
System.Drawing.Size(200, 200);
}
Text = "Hello in C#";
}
}
}
Mar 20, 2015
compare.ppt
overview of platforms
compare.ppt
compare.ppt
10
application servers
Tomcat
Glassfish (Sun)
BEA Weblogic
IBM Websphere
FREE
NOT
application servers
compare.ppt
11
features 1
virtual machine
platforms (all major OSs)
spec
implementations
libraries
languages
Java
Jython
Groovy
web capabilities
servlet
JSP
JSF
Mar 20, 2015
virtual machine
platforms (all versions of Windows)
spec
implementations
libraries
languages
C#, VB.NET, J# from Microsoft
many others from third parties
(Haskell, Lisp, Python, COBOL, Fortran, etc.)
web capabilities
handler
ASP (.NET)
(forgot equivalent name)
compare.ppt
12
features 2
native code calling
components
beans
environments
applet (in browser)
servlet (in server)
Web Start
installs from web
caches on users PC
deployment
.jar
.war
.ear
.class
complex, painful learning
curve that differs for each web
server, container, and IDE
environments
ActiveX (in browser)
handler (in server)
Smart Client
installs from web
caches on users PC
deployment
.exe (on file system)
.exe (in GAC)
.dll (on file system)
all builds and web installation
is automatically handled by
Visual Studio (Microsofts IDE)
compare.ppt
13
features 3
databases
JDBC
CORBA
binary object remoting
XML
databases
ODBC
COM
binary object remoting
XML
IDEs
IDEs
annotations
web services WS-I
superbly automated by Visual
Studion since 2005
compare.ppt
14
compare.ppt
15
compilation
source
code
compiler
bytecode
.class file
metadata
before installation,
or the first time
each method is
called
execution
native
code
JIT
Compiler
compare.ppt
16
hello.java
hello.cs
csc
javac
hello.class
1001111010001110
Java bytecode
hello.exe
1001111010001110
Common Intermediate Language (CIL)
> hello.exe
assembly
compare.ppt
17
VB
C++
C#
J#
Python
Windows Designer
ASP.NET, IIS
download free
Software
Development
Kit (SDK)
compilers
Microsoft Visual
Studio .NET
compare.ppt
free
downloa
d
18
Java JRuby
JPython
download free
Software
Development
Kit (SDK)
compilers
free
downloa
d
compare.ppt
19
Hewlett-Packard
Java runtime for HP-UX, OpenVMS,
Tru64, Reliant(Tandem) UNIX)
IBM
Java runtime for MVS, AIX, OS/400, z/OS
Apple Computer
MacOS Runtime for Java (MRJ)
J2SE built-in on Mac OS X
includes JDK (compilers)
BEA Systems
JRockit (for their web server)
compare.ppt
20
jargon checklist
metadata
bytecode
JVM
JRE
JDK
J2SE
J2ME
J2EE
IDE
GUI
what is an assembly?
what is metadata?
compare.ppt
21
compare.ppt
22
compare.ppt
23
single inheritance
avoiding the deadly diamond of death
encapsulation
all code must be in a classintended to encourage
information hiding
compare.ppt
24
compare.ppt
25
compare.ppt
26
5
15
25
35
compare.ppt
27
Windows 98
Windows 98 Second Edition
Windows 2000 Professional with SP4
Windows 2000 Server with SP4
Windows 2000 Advanced Server with SP4
Windows 2000 Datacenter Server with SP4
Windows XP Professional with SP2
Windows XP Home Edition with SP2
Windows XP Media Center Edition 2002 with
SP2
Windows XP Media Center Edition 2004 with
SP2
Windows XP Media Center Edition 2005
Windows XP Tablet PC Edition with SP2
Windows XP Starter Edition
Microsoft Windows Millennium Edition
Microsoft Windows Server 2003 Standard
Edition
Windows Server 2003 Enterprise Edition
Windows Server 2003 Datacenter Edition
Windows Server 2003 Web Edition
Windows Server 2003 R2, Standard Edition
Windows Server 2003 R2, Enterprise Edition
Windows Server 2003 R2, Datacenter Edition
compare.ppt
28
Windows versions that can not run the .NET framework v2.0
1.
2.
3.
4.
Windows
Windows
Windows
Windows
Systems
5. Windows
Systems
95
NT Server
NT Workstation
Server 2003, Enterprise Edition for Itanium-based
Server 2003, Datacenter Edition for Itanium-based
compare.ppt
29
compare.ppt
30
who are the big web server and database marketplace players?
Sun
IBM
BEA
SAP
Oracle
Microsoft
compare.ppt
31
Beans
CORBA (binary)
.NET handlers
Active Server Pages (ASP.NET)
compare.ppt
32
compare.ppt
33
1. simple programs
2. overview of platforms
compare.ppt
34
Hooray!
compare.ppt
35