In 2010 Oracle bought Sun microsystems ie all the assets of Sun microsystems

In 2010 oracle bought sun microsystems ie all the

This preview shows page 21 - 30 out of 43 pages.

In 2010, Oracle bought Sun microsystems i.e. all the assets of Sun microsystems including the java programming language became a part of oracle. And now Oracle corporation manages Java long with 11/08/2019 OBJECT ORIENTED PROGRAMMING 21
Image of page 21

Subscribe to view the full document.

Programming Languages Machine Language: A computer’s native language, which differs among different types of computers, is its machine language. For example, to add two numbers, you might have to write an instruction in binary code, like this: 1101101010011010 Assembly Language: Assembly language uses a short descriptive word, known as a mnemonic, to represent each of the machine-language instructions. For example, the mnemonic add typically means to add numbers and sub means to subtract numbers. To add the numbers 2 and 3 and get the result, you might write an instruction in assembly code like this add 2, 3, result Assembly language is referred to as a low-level language. An assembler translates assembly- language instructions into machine code. 11/08/2019 OBJECT ORIENTED PROGRAMMING 22
Image of page 22
Assembler Assembly Language: 11/08/2019 OBJECT ORIENTED PROGRAMMING 23
Image of page 23

Subscribe to view the full document.

Programming Languages High-Level Language: are platform independent, which means that you can write a program in a high level language and run it in different types of machines. High-level languages are English-like and easy to learn and use. The instructions in a high-level programming language are called statements. Here, for example, is a high-level language statement that computes the area of a circle with a radius of 5 . area = 5 * 5 * 3.14159; 11/08/2019 OBJECT ORIENTED PROGRAMMING 24
Image of page 24
Interpreter An interpreter reads one statement from the source code, translates it to the machine code or virtual machine code, and then executes it right away 11/08/2019 OBJECT ORIENTED PROGRAMMING 25
Image of page 25

Subscribe to view the full document.

Compiler A compiler translates the entire source code into a machine-code file, and the machine-code file is then executed 11/08/2019 OBJECT ORIENTED PROGRAMMING 26
Image of page 26
Interpreter and Compiler Difference Between Interpreter and Compiler 11/08/2019 OBJECT ORIENTED PROGRAMMING 27
Image of page 27

Subscribe to view the full document.

Java Java is a “C Style” language Programmers of these languages will recognize the basic syntax i. C ii. C++ iii. C# iv. JavaScript v. PHP Java looks really different from i. Visual Basic ii. ColdFusion Markup Language iii. VB.net iv. Assembly 11/08/2019 OBJECT ORIENTED PROGRAMMING 28
Image of page 28
C++ Vs Java C++ Java Compatible with C Not compatible with previous languages Compiled to native machine language Compiled to bytecode Write once, compile anywhere Write once, run anywhere Explicit memory management and pointers.
Image of page 29

Subscribe to view the full document.

Image of page 30
  • Fall '14
  • Dr Haroon

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes