java – vs -dotnet

29
.NET SoftPro India Computer Technologies Pvt. Ltd

Upload: vivek-kushwaha

Post on 14-Nov-2014

170 views

Category:

Documents


0 download

DESCRIPTION

Java – VS -DotNET

TRANSCRIPT

Page 1: Java – VS -DotNET

.NETSoftPro India Computer Technologies

Pvt. Ltd

Page 2: Java – VS -DotNET
Page 3: Java – VS -DotNET

BCPL

C

C++

ANSI C

OAK

JAVA

ANSIC++

C#

B

Martin Richards

1967

Ken Thompson

1970

Dennis Ritchie

Bjjrane Stroustrup

ANSI Committee

James Gosling

Sun Microsystems

ANSI Committee

Microsoft

1972

1983

1987

1991

1995

1996

2000

Page 4: Java – VS -DotNET
Page 5: Java – VS -DotNET

Machine Code(100110101)

Source Code

Compilation

Page 6: Java – VS -DotNET

The Problem

Machine Code(100110101)

Source Code

Compiled on Intel

Intel(100110101)

Motorola(110100111)

Execute

Fails

Page 7: Java – VS -DotNET

James Gosling

Page 8: Java – VS -DotNET

ProgramExecute

Execute

Execute

Execute

Page 9: Java – VS -DotNET

Solution

Intermediate Code

(XXXXXXXXX)

Source Code

Compiler

Intel(100110101)

Motorola(110100111)

Fails

Fails

Page 10: Java – VS -DotNET
Page 11: Java – VS -DotNET

Intermediate Code(XXXXXXXXX)

Source Code

Compiled

Intel(100110101)

Motorola(110100111)

Specific Agent

Specific Agent

Intermediate Code

(XXXXXXXXX)

Runtime

Compilation

Execute

Execute

Page 12: Java – VS -DotNET
Page 13: Java – VS -DotNET
Page 14: Java – VS -DotNET

Intermediate Code(XXXXXXXXX)

Source Code

Java Compiler

Intel(100110101)

Motorola(110100111)

JVM

JVM

Intermediate Code

(XXXXXXXXX)

Runtime

Interpreter

Execute

Execute

Page 15: Java – VS -DotNET
Page 16: Java – VS -DotNET
Page 17: Java – VS -DotNET

.NET History.NET History

In July 2000, Microsoft announced a whole new software development framework for Windows called .NET in the Professional Developer Conference (PDC).

Finally, in March 2002 Microsoft released final version of the .NET framework.

Page 18: Java – VS -DotNET
Page 19: Java – VS -DotNET

MSIL(XXXXXXXXX)

Source Code

Language

Specific

Compiler

Intel(100110101)

Motorola(110100111)

CLR

CLR

MSIL(XXXXXXXXX

)

Runtime

Compilation

Execute

Execute

Page 20: Java – VS -DotNET

What type of applications can I develop?What type of applications can I develop?

1. ASP.NET Web applications.2. Windows Form based applications.3. Console applications.4. Component Libraries.5. Windows Custom Controls.6. Web Custom Controls.7. Web services. 8. Windows Services.

Page 21: Java – VS -DotNET

Features of .NET

• Rich Class libraries.

• Easy development of web applications.

• OOPs Support.

• Multi-Language Support.

• Multi-Device Support.

• Automatic memory management.

• Compatibility with COM and COM+.

• No more DLL Hell.

• Strong XML support.

• Security.

Page 22: Java – VS -DotNET

.NET Platform Architecture

Page 23: Java – VS -DotNET

VB.NET C# C++ ………

Web Services Web Forms Windows Form

ADO.NET (Data & XML)

Base Class Libraries

Operating System (Windows)

Visual Studio

Page 24: Java – VS -DotNET

Similarities: Java & .NETSimilarities: Java & .NET

• Platform independence .

• Compile once run any where.

• Runtime required.

• Focuses Object oriented programming.

• Open source and free to use.

• Intermediate code generation.

• Runtime compilation.

Page 25: Java – VS -DotNET

Differences: Java & .NETDifferences: Java & .NET

• Java the only language, where as .NET languages.

• Java is available for all OS, .NET only for Windows.

• Introduced concept of web services.

• Cross language integration.

Page 26: Java – VS -DotNET

Comparing the stacksComparing the stacksV

isu

al S

tud

io.n

et

Win32

MSMQ, COM+, IIS, WMI, Indexing, UDDI, etc.

CLRCLR

Base Class LibraryBase Class Library

ADO.NETADO.NET

ASP.NetASP.Net

P&P blocksP&P blocks

Win32, Unix, Linux

JMS Apache

J2EE App Servers Websphere, Weblogic, Tomcat, etc.

Java runtimeJava runtime

J2EE Class LibraryJ2EE Class Library

Third party extensionsThird party extensions

JDBCJDBC

Servlets Servlets

JSP JSP

StrutsStruts

ExtensionsExtensions: : Phoenix, Tiles, Java FacesPhoenix, Tiles, Java Faces

Enterprise solutionsEnterprise solutionsB

EA

Web

log

icW

eb

sh

pere

Stu

dio

Eclip

se

… Java

VB

C+

+C

#P

erl

Pyth

on

Page 27: Java – VS -DotNET

ADO.NET ARCHITECTUREADO.NET ARCHITECTURE

Page 28: Java – VS -DotNET

Providers for ADO.NET

OleDb – The generic provider to connect the any database.

SqlClient – Optimized for Microsoft Sql Server

Connection String

Provider (e.g. MS Access, MS Sql Server, Oracle and Mysql etc. )

Data Source (e.g. Machine Name and Server Name).

Authentication Information (e.g. User ID and Password).

Database Name (e.g. Abc etc).

Page 29: Java – VS -DotNET

Thank You!!Thank You!!