Microsoft.NET Vs Sun JAVA

Slides:



Advertisements
Similar presentations
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Advertisements

CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
.NET Technology.
Introduction to.NET What is.NET?  A vision Web sites will be joined by Web services New smart devices will join the PC User interfaces will become more.
Object Orientated Programming
ISYS 546 Client/Server Database Application Development.
Programming Our First Java Program Yingcai Xiao. What to Do Set up for Java Programming Write our first Java Program with IDE Write our first Java Program.
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
Introducing the Common Language Runtime for.NET. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution.
.net Microsofts ’ Platform for Web Services Naveed Arshad.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
.NET Framework Introduction Nouman Qureshi
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
CIS205 Part 1 dbg --- Getting Acquainted with Visual Studio.NET and C#
Lecture 2: An Introduction to J# and.NET. 2 MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET 2-2 Objectives “Microsoft.NET is based on the.NET.
Microsoft.Net vs. J2EE Suresh Ramachandran Duke Energy.
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
ISYS 350 Business Application Development
Introduction to Java Tonga Institute of Higher Education.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Introduction to .Net Framework
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
.NET Framework & C#.
Introduction to .NET Rui Ye.
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
CSC 494/594 C# and ASP.NET Programming. C# 2012 C# Object-oriented language with syntax that is similar to Java.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
Overview of System Development. Overview Selecting a Windows Embedded Operating System The Windows CE Platform Development Cycle The Application Development.
CS795/895: Introduction. Topics Distributed Systems –Availability –Performance –Web Services Security –Authentication –Authorization –Confidentiality.
Component-Based Software Engineering Introduction to.NET Paul Krause.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Basic Security: Java vs.NET Master Seminar Advanced Software Engineering Topics Prof. Jacques Pasquier-Rocha Software Engineering Group Department of Informatics.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
1.NET FRAMEWORK CE-105 Spring 2007 Engr. Faisal ur Rehman.
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
ISYS 350 Business Application Development David Chao.
Microsoft.NET Norman White Stern School of Business.
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Module 1: Overview of the Microsoft .NET Framework
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
.NET Jeremy Stoltzfus Web Programming MWRF. Origins of.NET.NET originally called NGWS “Next Generation Windows Services” The term NGWS was used for Microsoft’s.
Microsoft .NET A platform that can be used for building and running windows and web applications such that the software is platform and device-independent.
Microsoft.Net vs. J2EE. J2EE – Enterprise Java  J2EE: Java 2 Enterprise Edition  Superset of Java 2 Standard Edition (J2SE)  Adds enterprise features.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
Java – in context Main Features From Sun Microsystems ‘White Paper’
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Introduction to Programming 1 1 2Introduction to Java.
Sung-Dong Kim Dept. of Computer Engineering, Hansung University Chapter 3 Programming Tools.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Suresh Ramachandran Duke Energy
Object Oriented Programming in
C# and the .NET Framework
Introducing the .NET Framework
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

Microsoft.NET Vs Sun JAVA BY S.Kartikeyan

MOTTO Microsoft.NET Software to Connect Information, People,Systems and Devices Bill Gates JAVA Write Once ,Run Anywhere Bill Joy

DESIGN GOAL Classic Application .NET Application Your Application Windows OS Scanner .NET Framework Internet Devices Monitor Keyboard Mouse Cell Laptop Palmtop (Contd…)

Microsoft Operating Systems Java Applications .NET Applications JVM JVM JVM .NET Framework Microsoft Operating Systems Win2000,WinServer2003, Windows XP Win OS Linux Apple Hard Ware Hard Ware Hard Ware Hardware

Why is .NET Microsoft Wanted an alternative to maintain different libraries being written for VC++,VB,ASP etc. Address Emergence of XML and Web Services Provide Something New Compete with JAVA world by providing free compilers Integrate all this in the next version of Visual Studio

Myths About C# ,.NET and Java Microsoft.NET is a Platform and C# is a language on it just like C is for UNIX.There are many other language on .NET like VB,VC++ When people talk about Java they don’t know whether they mean Java Language or Java Compiler or Java Virtual Machine

Different Levels and Terminology Language Level Distinguishing C# and Java features Compiling level How to locate the libraries and other dependencies Runtime Level CLR Vs JVM and Runtime Libraries At a developer level what are the differences At the Enterprise Level what differences can be noticed Finally what does the End User get out of both Future of both the technologies Managed Exe or Dll means that which are run by Common Language Runtime of .NET(mscoree.dll)

Language Level James Gosling Java is called a better C++ though some of the useful features like operating overloading was removed for no clear reasons C# retains all the good features of C++ including operator overloading Pointers considered the most useful feature and dangerous feature of C++ is completely removed in Java C# has a special block called unsafe{}. You have to use pointers only in these blocks. C# provides all security access levels of the code which Java provides

C# switch statement is more matured than Java switch statement which Java designers call themselves NONSENSE C SWITCH SYNTAX Class files in Java are similar to C# Managed Dlls Jar files in Java which are usually collection of class files such as servlet.jar are somewhat similar to .NET asp_net.dll C# is object and component oriented where as Java is object oriented. To support component oriented programming C# supports adding attributes to types which will be understood by compiler to generate corresponding IL code. C# dll’s or exes (managed) can call COM components and COM components can call C# Dll’s and exec's. That is contrary to Java where it uses a package called beans Example of attributes [STAThread] public static void Main(){} Java applets has no C# equivalent. So writing Java Browser plugins is more easier than C# components ( ActiveX controls)

Compiler Level Source Files Libraries C:\winnt\GAC Source Files Compile Time Libraries C:\jdk\lib CSC JAVAC XYZ.dll Or XYZ.exe XYZ.class

Runtime Java Virtual Machine is called java.exe JVM understands byte codes in class files Runtime libraries exist in JRE directory Running a program or class file is shell:>java.exe xyz Java.exe calls xyz.Main() Applies some permission objects and policy files and runs xyz in a sandbox .NET Virtual Machine is mscoree.dll It is also called common language runtime (CLR) JVM understands MSIL in dlls and executable files Runtime libraries exist in C:\winnt\GAC Running a program is just shell:\>xyz.exe no explicit invocation of CLR CLR calls the xyz.Main() Applies some permission objects and config files and runs xyz in a sandbox

Loading of CLR in Managed exe C# compiler places JMP _CORExeMain in CODE Section mscoree.dll in IDATA section of abc.exe(say) In Unix to know the .so files a exe refers try sh:>ldd /bin/bash You invoke abc.exe from a shell in the case of Managed exe Windows Loader checks the IDATA section and attaches Mscoree.dll to the process address space. Then it fixes the _CORExeMain function address in CODE Section . The _CORExeMain function does the invocation of JITCompiler Which translates MSIL to Native. Native code then executes

Loading of CLR in Managed Dll In the case of Managed dll being loaded at runtime you typically Use LoadLibrary() Method passing the name of the Managed dll file Windows Loader calls the DllMain() function of the Managed dll DllMain() Loads MSCorEE.dll DllMain() of MSCorEE.dll calls _CORDllMain() function _CORDllMain performs all the tasks what _CORExeMain does The _CORDllMain function does the invocation of JITCompiler JITCompiler translates MSIL to Native. Native code then executes

Developer Level In Java you have no option than to program in JAVA language In .NET there are some 10 languages as of now ,of which the prominent one is C#. All Language compilers compile their code to MSIL This is possible as all adhere to the Common Type System(CTS) of .NET Visual Studio.NET IDE is better than any JAVA IDE available today It can be possible in JAVA if someone writes a new language compiler in for JVM which translates sources files to JVM compatible class files Users in .NET now has the option of having any language to generate a library and it can be reused from any language

Enterprise Level Presentation Tier (ASP.NET Vs JSP) Middle Tier ( Web Services, DCOM Vs Web Services and Beans) ADO.NET JDBC Database Tier(SQL Server Vs ____)

End User Level Microsoft.NET Passport is one of the services end-users are getting advantage as of now More are expected to come

Future and Marketing Elements Microsoft has good Marketing expertise than SUN Visual Studio.NET IDE is an added advantage to Microsoft Java world has to wait for such an IDE Microsoft is spending a lot of money in .Net R&D On the other hand IBM is spending 10 times more than SUN to promote JAVA . The support for XML in Microsoft.Net is Fundamental where is in JAVA it is an API based As Microsoft.Net and Java support XML Web Services ,developers has the choice of either platforms

Thank You