JVM versus NET NET vs Java Runtime environment

  • Slides: 15
Download presentation
JVM versus. NET

JVM versus. NET

. NET vs. Java Runtime environment. NET CLR Java JVM Intermediate Code. NET MSIL

. NET vs. Java Runtime environment. NET CLR Java JVM Intermediate Code. NET MSIL Java Byte Code Support. NET Multiple Languages, Multiple Platform Java Single Language, Multiple Platform

. NET Framework Overview Applications written in J#. NET, VB. NET, or C# FCL

. NET Framework Overview Applications written in J#. NET, VB. NET, or C# FCL CLR Windows API Windows Operating System (Windows ME, 98, 2000, XP etc)

Major Components CLR Common Language Runtime a runtime environment concept similar to JVM FCL

Major Components CLR Common Language Runtime a runtime environment concept similar to JVM FCL Framework Class Library built on top of the CLR provide services for modern applications

CLR Load and execute the C # program Compile the MSIL into native code

CLR Load and execute the C # program Compile the MSIL into native code use Just-in-Time (JIT) compilers Garbage Collection use Garbage Collector (GC) Security Management Exception Handling

FCL concept similar to MFC for Windows programming FCL classes are grouped by namespaces

FCL concept similar to MFC for Windows programming FCL classes are grouped by namespaces and exported by assemblies namespace similar to Java package assembly similar to. dll

FCL Some Namespaces in FCL (has hierarchy) System. IO System. Windows. Forms System. Drawing

FCL Some Namespaces in FCL (has hierarchy) System. IO System. Windows. Forms System. Drawing Example: System. Windows. Forms is located in System. Windows. Forms. dll

MSIL Microsoft Intermediate Language a CPU independent set of instructions. NET compliant language compile

MSIL Microsoft Intermediate Language a CPU independent set of instructions. NET compliant language compile into MSIL similar to Java Byte Code sometimes abbreviated as IL

Java Byte Code JVM do this Linux native code Windows native code Mac OS

Java Byte Code JVM do this Linux native code Windows native code Mac OS native code

C# VB. NET Visual J#. NET Compile into MSIL CLR do this Linux native

C# VB. NET Visual J#. NET Compile into MSIL CLR do this Linux native code Windows native code Will Support soon Support now Mac OS native code Will Support soon

Anders Hejlsberg Creator of C# Turbo Pascal Delphi Anders studied engineering at the Technical

Anders Hejlsberg Creator of C# Turbo Pascal Delphi Anders studied engineering at the Technical University of Denmark, previously worked for Borland, now works for Microsoft.