Upgrade to remove ads
Chapter 2 Dictionary
Terms in this set (27)
(portable) if any program created In that language on one computer will work and have the exact same output on any other computer
Is a intermediate code created by the java compiler. It's a low level code file that cannot execute as a regular machine code.
The environment where you type your code. A text editor to write Java program source code
To translate source code into bytecode.
To translate and execute bytecode
A java program designed to operate inside a web page is called an applet
A java program designed to operate in a stand-alone environment is called an application.
Java Development kit (JDK) this has to be installed to compile and run a program. With JDK, you can do both.
(Java Runtime Environment) This allows you to execute Java programs, but it does not allow you to compile them.
Print generates an output display of characters contained between double quotes.
System.out.println The println command adds a "line feed" after the output display.
Keywords in Java are case-sensitive.
A Java keyword is a word that has a special meaning in the program ore performs a special function. This means that System is a Java keywork, which is not the same as system
One or more keywords combine to make a program statement.
File Names and Class Names
The external file name of your program needs to be identical to the public class name inside your program minus the java extension (.java).
If you use the public class "Howdy" in your program then you need to save the program with the file name Howdy.java
There are 2 types of comments//
// This is a single-line comment.
System.out.println("Hello!"); //So is this
/*This is a
\n placed inside quotations in a System.out
\n performs a carriage-return and a line-feed
\t placed inside quotations in a System.out
\t performs a horizontal tab
\r placed inside quotations in a System.out
\r performs only a carriage-return without a line-feed
\b placed inside quotations in a System.out
\b performs a backspace
\\ placed inside quotations in a System.out
\\ displays a single backslash
\" placed inside quotations in a System.out
\" displays double quotes
\' placed inside quotations in a System.out
\' displays a single quote
Is a special program that has these two qualities: 1. The ability to duplicate itself to spread to other systems.Is a special program that has these two qualities: 1. The ability to duplicate itself to spread to other systems.
2. Program that will do some type of harm to the computer.
Protect your computer from improper Access
• Don't leave your computer unattended and logged in
• Information can easily be copied or erased from an unattended computer
• Unattended laptops are easily stolen
• Label and guard your stuff
Ethical Use of Computer Software
Copying copyrighted software is illegal. Companies have been sued and people have been arrested for not taking this seriously.
Attempting to hack into a computer or network is a misdemeanor, and if you successfully get in you have committed a felony.
• Physical computer vandalism is bad, but typically not a problem in high school
• You also need to make sure you do not alter any setting on the computer or install any software unless directed to do so by your teacher
• Altering settings can prevent the computer from working properly
• Downloading software has legal issues and can also cause the spread of viruses
Sets with similar terms
Chapter 2 CP
computer science chapter 1
Exercises 04.03-06, 04.07-10
Other sets by this creator
Lesson 5 Launching
GameMaker-Lesson 1-Garrett Tristan
What is Programming