Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Vocabulary.

Similar presentations


Presentation on theme: "Programming Vocabulary."— Presentation transcript:

1 Programming Vocabulary

2 Source Code A text editor used to type your program.

3 Syntax A specific format used to create your program.

4 Import Includes other libraries.
import cs1.keyboard- another class or library that allows you to use other key words.

5 // Comments - Used to write notes about the program.
/* - this is one content that spans several lines. */

6 Public Class (Name of program):
The #include directive is a special instruction for the java compiler that tells the compiler to include the contents of another file.

7 Public static void main (string [] args)
Void main is the name of a function. A function is simply a block of code that performs a task.

8 { } The braces mark the beginning and the end of the code block.

9 Variables Variables are simply memory locations that the program will use while it is running.

10 ; Variables are considered a statement and therefore ends in a semicolon.

11 Keyboard.readInt() Input statement
Keyboard.readInt() pauses the program to allow the user to enter the current weekly pay.

12 System.out.print System.out.pirntin returns to a new line.

13 * / + - These symbols are used in mathematical equations Multiply *
Divide / Add + Subtract -

14 White Space White Space is used to separate the word and symbols used in a program.

15 Complier A program that translates code in one language to equivalent code in another language.

16 IDE IDEs combine an editor, compiler, and other Java support tools into a single application.

17 Three Types of Errors Compile-time error Runtime error Logical error

18 Java Developed by Sun Microsystem High-Level programming language
One reason for its wide-spread use is the ability to create platform independent applications.

19 Object, Classes, & Packages
An object consists of related data and the instructions for performing actions on that data A class defines the type of data actions on that will be associated with an object of that class. A package, sometimes calle a library is a group of related classes.

20 Object, Classes, & Packages
Library Fiction Biography Classes Name of Book Name of Book Object

21 Code Conventions An introductory comment should begin a program
Package names should begin with a lowercase Class names should be nouns and beginwith an Uppercase letter A comment block should be included before each class.

22 Code Conventions Comments should not repeat what is clear for looking a the code Statements in a method should be indented. An oopen curly brace { should be placed on the same line as the class or method declaration.


Download ppt "Programming Vocabulary."

Similar presentations


Ads by Google