Vs Java
Vs Java
J2EE
Suresh Ramachandran Duke Energy
Defined through the Java Community Process (JCP) Wholly owned property of Sun Microsystems
Similarities
Both multi-tiered, similar computing technologies Both support standards Both offer different tools & ways to achieve the same goal. A lot of parallelism can be seen. Very difficult to compare and qualify the comparison because each has its own advantages & disadvantages.
Significant features include garbage collection, hierarchical namespaces) are present in both. Different Syntax but same result. Java runs on any platform with a Java VM. C# only runs in Windows for the foreseeable future. C# is implicitly tied into the CLR and is compiled entirely into native code. Java code runs as Java Virtual Machine and executes byte code
ASP(+) vs. JSP ASP(+) can use Visual Basic, C#, and possibly other languages for code snippets. JSPs use Java code (snippets, or JavaBean references), compiled into Java Win Forms/Web Forms Vs Swing/Java Server Faces
Concepts Presentation Business Logic Language Platform DB Connectivity Web Services Messaging Runtime Transaction Distributed computing XML Parser
J2EE JSP/Servlets EJB/Servlets Java Any JDBC JWSDP JMS JRE JTA/JTS, XA RMI, CORBA, SOAP JAXP, Others
.NET ASP.NET Code Behind, Remoted Classes C#, VB.NET Windows ADO.NET (OLE-DB, ODBC) Web Services MTS CLR Com+, DTC SOAP, DCOM Built-in (System.XML)
VB.net and C# are easier to use than J2EE Execute Java Code on Mainframe Java Can run on many platforms through the JVM VB,C#,J# all run in the same run-time environment VB/Com developmen in 1993 Equal Performance VB code easiar to learn Deploy saame code on multiple platforms and multiple projects Java, JVM are open standards
**** *****
** *
Overall
56%
51%
IIS on W2k Server Browser ASP .NET .NET managed component SQL Server
Windows Client
Browser
DB Server
EJB Container JMS EJB Container JSP Servlet Servlet Container J2EE Server
Component Component Component CLR Host Component Component Component Comp. Services CLR Host ASMX Controls ASPX ASP.NET CLR Platform
11500
5,891
5,404
User Interface
Middle Tier
Windows OS
Both are middle layers between an intermediate language & the underlying OS
Garbage Collection
Runtime-level security
.Net Disadvantages
Security
.NET better than prior frameworks (DNA, DCOM, ActiveX, etc.), but still based on Windows
Immaturity
Version 1.0 issues, likely to change in future Language changes for developers new to .NET
Application migration to .NET costly Not enough real world use yet to evaluate Vendor lock-in Future direction determined by Microsoft.
Questions