Lecture02 - Java Language and SW Devt Programming Languages...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Java Language and SW Dev’t Programming Languages Java Program Structure Problem Solving Object-Oriented Programming Reading for this class: L&L, 1.4-1.6
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Programming Languages Computer programmers write programs for computers using one or more programming languages Some languages are better for one type of program or one style of user interface than for others You may have heard of some programming languages: COBOL, Basic, Pascal, C/C++, Java, Assembly Language, and Others
Background image of page 2
Programming Languages A programming language specifies the words and symbols that we can use to write a program A programming language employs a set of rules that dictate how the words and symbols can be put together to form valid program statements A programming language has both syntax and semantics
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Syntax and Semantics The syntax rules of a language define how we can put together symbols, reserved words, and identifiers to make a valid program The semantics of a program statement define what that statement means (its purpose or role in a program) A program that is syntactically correct is not necessarily logically (semantically) correct A program will always do what we tell it to do, not what we meant to tell it to do
Background image of page 4
5 Language Levels There are four programming language levels: machine language assembly language high-level language fourth-generation language Each type of CPU has its own specific machine language The other levels were created to make it easier for a human being to read and write programs
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Programming Languages Each type of CPU executes only a particular machine language A program must be translated into machine language before it can be executed A compiler is a software tool which translates source code into a specific target language Often, that target language is the machine language for a particular type of CPU The Java approach is somewhat different
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 22

Lecture02 - Java Language and SW Devt Programming Languages...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online