Preview

Java

Satisfactory Essays
Open Document
Open Document
1218 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java
2/21/2013

SKJ2413 OBJECT ORIENTED PROGRAMMING
Chapter 1 2013

Mohd Fadzli Marhusin PhD (CompSc) UNSW (Cyber Security) Master (Info Tech) CompSc UKM BSc Info Studies (Info Systems Mgnt) UiTM American Associate Degree (Mgnt Info Systems) KYPM MCSE & MCTS Microsoft Faculty of Science and Technology (Information Security & Assurance Program) Universiti Sains Islam Malaysia Bandar Baru Nilai, 71800 Nilai, Negeri Sembilan, Malaysia fadzli@usim.edu.my +606 798 8000 ext 6663

1

Copyright Reserved. Mohd Fadzli Marhusin.

Computer Instruction
A computer program is a set of instruction that tell computer what to do. Computer Instruction is in the form of on and off switches. Often this is represented by a binary form of 1s and 0s. For instance: a = 97 = 1100001 b = 98 = 1100010 For additional examples please refer to http://www.asciitable.com/ & http://www.branah.com/ascii-converter.

Copyright Reserved. Mohd Fadzli Marhusin.

2

1

2/21/2013

Computer Instruction : Execution Flow
Any program you execute .e.g., a calculator, will be loaded first into RAM, then when the CPU is ready to execute, instructions will be transferred part by part from RAM into the CPU. The CPU is divided into Logic Unit – to deal with general execution (in and out) and Arithmetic Logic Unit – to deal with instruction related to mathematical calculation. The CPU also has a set of memory/cache hierarchy usually referred to as register, L1 and L2. From programmer point of view, the details of CPU architecture and the memory and how they work are not important as long as a program written execute well without any errors. .

Copyright Reserved. Mohd Fadzli Marhusin.

3

Computer Instruction : Cont’
You write a computer program using a high-level programming language, e.g. java. The java compiler and interpreter responsible to converting the code you write into form of on and off switches. When you execute a java program, the program is run within a contained environment

You May Also Find These Documents Helpful

  • Good Essays

    Java

    • 5076 Words
    • 21 Pages

    Explanation: D) The program is first loaded from secondary memory into main memory before it is executed so that the processor is not slowed down by reading each instruction. This idea of executing programs stored in memory is called the Stored Program Computer and was pioneered by John Von Neumann in the 1940s.…

    • 5076 Words
    • 21 Pages
    Good Essays
  • Good Essays

    Java

    • 490 Words
    • 3 Pages

    Write a Java program to demonstrate using bitmaps and bitwise operators to sort and remove duplicates from a file of random phone numbers. Do not confuse the term bitmap used for compressing data into smaller spaces with the bitmap that has come to mean a graphic image.…

    • 490 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Java

    • 827 Words
    • 4 Pages

    9. The withholding tax on a weekly salary (let us assume) is computed as follows: 14% of the difference between a person's gross pay and $13 times the number of dependents he or she claims. Read the values for the gross pay and the number of dependents; print the withholding tax.…

    • 827 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Von Neuuman

    • 2383 Words
    • 10 Pages

    Computer programs are a list of and data, and are represented as binary strings. We can produce a list of high level requirements that a Central Processing Unit (CPU) could execute. This then leads us to a list of functional units that implement the high-level functionality.…

    • 2383 Words
    • 10 Pages
    Better Essays
  • Satisfactory Essays

    Java

    • 762 Words
    • 4 Pages

    In the long distant future, in the year 2016, the cable news empire has fallen, and former talking heads have stooped to running for political office. In fact, five former talk show stars are running for President of the United States, and locked in a close race.…

    • 762 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    java

    • 258 Words
    • 2 Pages

    Standard Ed. 7 Prev ClassNext ClassFramesNo FramesAll ClassesSummary: Nested | Field | Constr | MethodDetail: Field | Constr | Method…

    • 258 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Inroduction to Java

    • 536 Words
    • 3 Pages

    1. A programming language – can create all kinds of applications that you could create using any conventional programming language.…

    • 536 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Advanced Java

    • 60547 Words
    • 243 Pages

    Advanced Programming for the Java(TM) 2 Platform Training Index Advanced Programming for the Java 2 Platform TM By Calvin Austin and Monica Pawlan November 1999 [CONTENTS] [NEXT>>] [DOWNLOAD] Requires login Early Access Downloads…

    • 60547 Words
    • 243 Pages
    Powerful Essays
  • Satisfactory Essays

    Java Coding Sample

    • 627 Words
    • 3 Pages

    Program to create ASCII frequency table from file and url. Demonstration of try / catch blocks. The CIA 2008 Factbook may be downloaded from Project Gutenberg.…

    • 627 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Java Code

    • 511 Words
    • 3 Pages

    Dim sizepizza, crust, drinks, tops1, tops2, tops3, tops4, tops5, tops6, pricepizza, pricetops, pricedrink, totprice As Single…

    • 511 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    The basic difference in Object Oriented programming (OOP) is that the program is organized around the…

    • 4099 Words
    • 17 Pages
    Better Essays
  • Powerful Essays

    Lecture 1 Introduction Copy

    • 1329 Words
    • 19 Pages

    on - Program is a sequence of instructions, written to perform a specified task with a computer. -It is any physical device, something that you are able to touch. - Various devices comprising computer, E.g. (Keyboard, disks, memory, CD-ROM, processing units). 10 Programming Languages  Used to write sequence of instructions that instruct computers to perform specific tasks.…

    • 1329 Words
    • 19 Pages
    Powerful Essays
  • Satisfactory Essays

    For example, the MIPS architecture instruction set always has instructions that are 32 bits long. Other architectures (such as the x86, which you are likely using) have instructions that can be a variable length. For example, here is a x86 machine language instruction: 10110000 01100001 Second, each set of binary digits is translated by the CPU into an instruction that tells it to do a very specific job, such ascompare these two numbers, or put this number in that memory location. Different types of CPUs will typically have different instruction sets, so instructions that would run on a Pentium 4 would not run on a Macintosh PowerPC based computer. Back when computers were first invented, programmers had to write programs directly in machine language, which was a very difficult and time consuming thing to do.…

    • 5520 Words
    • 23 Pages
    Satisfactory Essays
  • Good Essays

    Have you ever wondered how your electronic devices work? Well most likely your electronic devise is programmed by a computer language called Java. Java is one of the most popular languages for application development. It is going to continue to be one of the most popular languages because it’s free, it runs on any modern operating system, and Java is open source software so it can evolve to fit the needs of programmers. Java allows you to play online games, chat with people around the world, do calculations, and view images in 3D, just to name a few. It's also integral to the intranet applications and other e-business solutions that are the foundation of corporate computing (Java, par. 1). There are three types of programs you can create with Java they include: applications, applets, and servlets. These can work together or independently to make programs work.…

    • 768 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Program- set (finite) of instructions properly sequenced that can be executed by the computer will lead to the desired output…

    • 847 Words
    • 4 Pages
    Satisfactory Essays

Related Topics