Copmuter Languages


Published on

Submitted by Act Academy

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Copmuter Languages

  1. 1. Types of Computer Language  Low - Level Languages  High – Level Languages
  2. 2. S.No Platform Developer Year 1 C Dennis Ritchie 1972 2 C++ Bjarne Strousstrup 1980 3 JAVA James Gosling (Sun Microsystem) 1995 4 PHP Rasmus Ledorf 1995 5 VB 6.0 Microsoft 1998 6 C# Microsoft June 26th, 2000 S.No Platform Developer Year 1 .NET Microsoft 13 February 2002
  3. 3. POP Features OOPS Feature Importance is given to the sequence of things to be done i.e. algorithm Importance is given to the data Larger programs are divided into functions Larger programs are divided into objects. Data move freely around the system from function to function In OOP mostly the data is private and only functions inside the object can access the data. POP follows a top down approach in problem solving OOP follows a bottom up approach. In POP, there is no access specifier There are public, private and protected specifier. In POP, operator cannot be overloaded in OOP operator can be overloaded.
  4. 4.  C is Procedure Oriented Programming Language (POP). C++ is Object Oriented Programming Language (OOP).  WE use for Structure programming concept in c. and We use Class programming concept in C++.  We unable to reuse code of c language, whenever in c++ we can reuse the code of c++ language.  C is the father of C++.  To save file we use .c in c whenever in c++ we use .cpp.  C++ is more powerful language instance of c. • C is function-driven. while C++ is object-driven.
  5. 5.  Source Code  Source code, often referred to as simply the "source" of a program, contains variable declarations, instructions, functions, loops, and other statements that tell the program how to function.  Byte Code  Bytecode is platform-independent, bytecodes compiled by a compiler running in windows will still run in linux/unix/mac.  Exe Code  Machine code is platform-specific, if it is compiled in windows, it will run ONLY in windows.
  6. 6.  C – Language & C++ Language Source Code  Exe Code JAVA & .NET Source Code Byte Code Exe Code
  7. 7. Platform Dependent Platform Independent Platform dependent requires the application to be run on specific hardware. Platform independent will run on many kinds of hardware. The source code is compiled by the compiler and that compiled code is made according to operating system. If a source code is made compiled code according a operating system then that code will execute only that A operating system, nothing else. eg:- C, C++, FORTRAN, PASCAL The source code is compiled by the compiler and the compiled code can execute on any operating system. eg:- Java, .NET
  8. 8. Difference Between Java & .NET Platform JAVA .NET Java is developed by Sun Microsystems .NET is developed by Microsoft Corporation. Java is a light weight language and can be run on almost all the OS(it require less hardware) .NET needs a very heavy framework to be installed which have higher Hardware requirements too compared to Java. Java you need to confirm it that all the objects are destroyed before application quits. .Net garbage collector runs at a certain interval and see is there is any memory occupied by any object whose parent is now finished processing (for eg. you closed an application), in this case the garbage collector automatically removes the reference of that object and free up the memory Java is a language plus a runtime .NET is a runtime framework that supports multiple languages, Visual Basic and C# (the .Net language most similar to Java) among them.
  9. 9. Java is more platform independent, it runs on several operating systems including Windows, Mac and Linux. .NET is primarily for Windows. The open source project Mono is developing a multi-platform runtime for .NET, so this is less of an issue than it used to be. Java has no standard tool is available. .NET a standard development IDE is Although, many third party IDEs are available that is Microsoft Visual Studio available Java is a programming language designed to be run on many different platforms, and so uses a common language which has to be compiled and run on different platforms (eg. windows, mac and linux).Any OS which is able to install JVM Java can be used to write programs for many different operating systems .NET, takes on a different approach, by allowing you to program in any language you choose,but has compilers for many different languages that generates a platform specific code (i.e.Microsoft or Windows).
  10. 10. C# / C++ Feature C# C++ Override Keyword Declaring override methods requires the override keyword. does not require Foreach Loop The foreach keyword allows you to iterate through arrays and collections. C++ does not have that feature Include other file The using directive is used to reference types in other namespaces without fully qualifying the type names. C++ allows header files and other class files to be included using the #include keyword. Class definition termination Semicolon not requires Semicolon Requires Pointers C# support but in unsafe mode. C++ Supports Multiple Inheritance Supported Not Supported Objects Creation Using new Keyword Objects Create without using new Keyword
  11. 11. C# / JAVA C# JAVA All methods are non-virtual All methods are by default virtual and you can override them C# includes delegates Java does not C# has the feature of Operator Overloading Java does not include operator overloading C# has the ability to alias namespaces Java does not in C#, We are not restricted only to void we can also have int. In Java the return type of main() is void Pointers are allowed in C# but only in unsafe mode. In Java pointers does not exist C# has support for output parameters, adding in the return of multiple values Java does not
  12. 12. C# / VB Feature C# VB Case Adjust No Auto Case adjust Auto Case Adjust {} Requires No line Terminators Programming Rules Enforces Require Begin and End Variable declaration Dim x as string string x ; Pointer Pointer Supported Pointer Not Supported
  13. 13. VB6.0 / VB.NET VB6 VB.NET Not OOPs Based VB .NET is Object-Oriented now. VB6 was not a type-safe language VB.NET is a type safe language VB6 used ‘On Error Goto’ syntax to handle exceptions at runtime VB.NET uses the Try…Catch…Finally syntax to handle exceptions at runtime. VB6 does not allow developing the multithreaded applications VB.NET you can create multithreaded applications.; VB6 was only considered good for desktop windows application VB.NET you can also develop web applications, distributed applications, create .NET windows and web controls and components, write windows and web services.
  14. 14. Reflection not supported in VB6 In VB.NET, you can also use reflections to read the meta-data of types and using reflection emit you can also generate code to define and invoke types at runtime. VB6 used ASP to build web applications VB.NET uses ASP.NET to build web applications. VB6 used ADODB and record-sets to implement data access applications VB.NET uses ADO.NET and datasets to build data access applications. The ADO.NET also supports the disconnected data access.
  15. 15. ASP / ASP.NET ASP ASP.NET ASP does not have such facility to separate programming logic from design. ASP.Net web forms have a code behind file which contains all event handling code. ASP does not have the concept of inheritance ASP.Net web forms inherit the class written in code behind. ASP pages use scripting language. ASP.Net web forms use full fledged programming language ASP applications are not. ASP.Net web applications are configurable (web.config) ASP.Net webforms can use custom controls It is not available with ASP. through the @ register directive ASP.Net web forms have ADO.Net which supports XML integration and integration of data from two or more data sources while ASP has ADO which is a simple COM object with limited facilities.
  16. 16. Data Access Methods Control Full Forms RDO Remote Data Objects DAO Direct Access Objects ADO ActiveX Data Objects OLE DB Object Linking and Embedding, Database ODBC Open Database Connectivity JDBC Java Database Connectivity
  17. 17. DAO - Data Access Objects (1-tier) • DAO (Data Access Objects) was the first object-oriented interface that exposed the Microsoft Jet database engine (used by Microsoft Access) and allowed Visual Basic developers to directly connect to Access tables - as well as other databases through ODBC. DAO is suited best for either single-system applications or for small, local deployments. RDO - Remote Data Objects (2-tier) RDO (Remote Data Objects) is an object-oriented data access interface to ODBC combined with the easy-to-use style of DAO, providing an interface that exposes virtually all of ODBC’s low-level power and flexibility. RDO is limited, though, in that it doesn't access Jet or ISAM databases very well, and that it can access relational databases only through existing ODBC drivers. However, RDO has proven to be the interface of choice for a large number of SQL Server, Oracle, and other large relational database developers. RDO provides the objects, properties, and methods needed to access the more complex aspects of stored procedures and complex resultsets.
  18. 18. Open Database Connectivity (ODBC) • Open Database Connectivity (ODBC) is a common framework for accessing and altering the contents of databases. It allows developers to use the same coding conventions regardless of the actual database platform implemented on the backend. When a new database type is installed, administrators merely need to install an ODBC driver that supports that platform and existing ODBC software should function normally. OLE DB data provider OLE DB is Microsoft's successor to ODBC that utilizes a set of COM interfaces for accessing and manipulating of data. OLE DB interfaces provide applications with uniform access to data stored in diverse information sources, or data stores. These interfaces support the amount of database management system (DBMS) functionality appropriate to the data store, enabling it to share its data.
  19. 19. JDBC • Java DataBase Connectivity, commonly referred to as JDBC, is an API for the Java programming language that defines how a client may access a database. It provides methods for querying and updating data in a database. JDBC is oriented towards relational databases. A JDBC-to-ODBC bridge enables connections to any ODBC-accessible data source in the JVM host environment. ADO - ActiveX Data Objects (1 to n-tier) Allow VB/Other Web Tools (Browsers) to interface with different kinds of data sources. ADO is a more recent Microsoft Data Access technology designed to replace DAO and RDO. ADO is designed to be simpler to use and more powerful than DAO/RDO. Serves an interface to Microsoft's new OLE-DB technology (thinner than ODBC). Can be used to access all sorts of "non traditional data" (e.g., web pages/documents, etc.).ADO is automatically installed with Microsoft IIS
  20. 20. ADO .NET • ADO.NET (ActiveX Data Object for .NET) is a set of computer software components that programmers can use to access data and data services. It is a part of the base class library that is included with the Microsoft .NET Framework. It is commonly used by programmers to access and modify data stored in relational database systems, though it can also access data in non-relational sources. ADO.NET is sometimes considered an evolution of ActiveX Data Objects (ADO) technology, but was changed so extensively that it can be considered an entirely new product.. Difference Between ADO and ADO.NET ADO ADO.NET ADO works with connected data. This means that when you access data, such as viewing and updating data, it is real-time, with a connection being used all the time. ADO.NET uses data in a disconnected fashion. When you access data, ADO.NET makes a copy of the data using XML. ADO.NET only holds the connection open long enough to either pull down the data or to make any requested updates. This makes ADO.NET efficient to use for Web applications. It's also decent for desktop applications.
  21. 21. VB C++ C# JScript … Common Language Specification Windows Windows Forms Forms ADO.NET: Data and XML Base Class Library Common Language Runtime Visual Studio.NET ASP.NET: Web Services and Web Forms
  22. 22. Visual Studio Versions Description Version Version Number Release Date Visual Studio 1.0 1.0.3705.0 2002-02-13 Visual Studio .NET 1.1 1.1.4322.573 2003-04-24 Visual Studio .NET 2003 2.0 2.0.50727.42 2005-11-07 Visual Studio 2005 3.0 3.0.4506.30 2006-11-06 3.5 3.5.21022.8 2007-11-19 Visual Studio 2008 4.0 4.0.30319.1 2010-04-12 Visual Studio 2010 4.5.40805 2011-09-13 (Developer Preview) Visual Studio '11' 4.5
  23. 23. Types Of Application in .NET Console Application  Windows Application  Web Application  Mobile Application 
  24. 24. Console Application
  25. 25. Windows Application
  26. 26. Web Application
  27. 27. Mobile Application
  28. 28. CLR: Execution Model Source code C# C++ Compiler Managed code VB Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Common Language Runtime JIT Compiler Native Code Operating System Services Unmanaged Component
  29. 29. Databases A database is any organized collection of data. DataBase First Release Stable Release Developer MS Access 1.0 / 13 November 1992; 2010 (14.0) / April 28, 2010; Microsoft Oracle 1977 2007: Oracle Database 11g Oracle Corporation SQL Server 1.0 / 1989 SQL Server 2011 October 11 Microsoft My SQL May 23, 1995 5.5.17 (October 21, 2011 MySQL (A subsidiary of Oracle) DB2 1983 DB2 Latest Version IBM is 9.5 On October 31, 2007